New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bash profile command breaks pub in Dart Editor #17127
Comments
This comment was originally written by sme...@gmail.com Sorry not quite accurate. here is a better process:
--- 26/02/2014 11:52:28 AM Running pub build ... --- FIX: |
This comment was originally written by sme...@gmail.com command line pub commands work fine |
This comment was originally written by smer...@gmail.com God I am stupid today. Apologies:
|
Added Area-Editor, Triaged labels. |
Set owner to @keertip. |
@smerzlia, The editor shells out and calls pub build. When it does, it sets the working directory to the project. But if you have a "cd" into some directory at the end of your shell script, that then becomes the working dir and pub cannot find a pubspec in there. Is there a reason to do a cd in your bash profile? |
This comment was originally written by smerz...@gmail.com Not really. I only do it occasionally, to get new terminals to open in a particular directory. |
@smerzlia, The workaround here would be to remove the cd command from bash profile. The editor cannot do much in this situation as it has no control over user's terminal settings. Added WontFix label. |
This issue was originally filed by smerzlia...@gmail.com
It seems that the Dart Editor is accessing may bash profile config in .bash_profile
Did this on my Mac (running Mavericks):
serge/.bash_profile: line 55: cd: /some/directory: No such file or directory
FIX:
remove CD command from .bash_profile and retry pub get in Dart Editor - problem goes away
The text was updated successfully, but these errors were encountered: