-
Notifications
You must be signed in to change notification settings - Fork 178
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
$PATH
only present when Atom is launched from command line
#150
Comments
This happens to me whether or not i open from command line. Atom 136 and OS 10.10 GM3. |
Same here. Atom 136 and 10.10 (14a388b). |
Now I have suppressed the error by reinstalling the gems. But the scss On Tuesday, October 14, 2014, Ryan Leary [email protected] wrote:
|
Is anyone working on this? It makes the linter-shellcheck plugin useless since everytime a file is opened the console opens up with the error. |
I upgraded to Yosemite and now Atom doesn't seem to inherit the I started working on it a while ago but never finished it. But since my linter is now broken, I'll fix this issue on the weekend. |
As a workaround for electron/electron#550, consider: commandString = 'your command to run a linter';
if (process.platform === 'darwin') {
// OS X apps don't inherit PATH, so reconstruct it. This is a bug, filed
// against Atom here: https://github.com/atom/atom-shell/issues/550
commandString = 'eval `/usr/libexec/path_helper -s` && ' + commandString;
} |
Atom v0.142.0 fixed the issue where opening from the command line didn't inherit |
I am on ubuntu and the error fire even when launched from command line, even after adding the : process.env.PATH = ["/usr/local/bin", process.env.PATH].join(":") line in init.coffee |
If I launch Atom from the command line, I don't have any issues. But I usually launch it from GitHub for Mac, which causes problems—specifically with rubocop. |
This still occurs when launching from Terminal or Gui on Mac OS (Yosemite) Uncaught BufferedProcessError: Failed to spawn command /Users/MyMacUsername/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:100 |
Some thing happens for me as Jacebot above. Uncaught BufferedProcessError: Failed to spawn command |
I also just encountered this issue. Using: OSX Mavericks 10.9.5, Atom 0.165.0 I launched Atom initially from the dock and edited some files. I then opened another file in Atom from the command line
|
Confirmed as well, Ubuntu 14.10 on MacBook Air 2013 |
Hey guys,
also tried
to my ~/.atom/init.coffee didn't work. I also noted that Atom when started from command line works fine but didn't when started from my Xubuntu panel, so I edited the Atom shortcut (laucher) in my panel and changed the command from /opt/atom/atom %F to bash --login -c "atom", as suggested above. Now all my ruby related packages are working! |
@Trefex THANK YOUUUU. YOU HAVE SOLVED MY LIFELONG STRUGGLE WITH THIS EDITOR. |
It seems that |
I'm running OS X 10.10.5 and Atom 1.0.9 and I'm having this issue both launching from GUI and terminal. Are there any other solutions other than editing the |
@rennsport why not specify a path to the executable in linter config? |
@steelbrain So my linter directory is /Users/[user]/.atom/packages/linter what file would I need to edit because none are standing directly out as a config file. |
@rennsport You won't need to edit any file for this, just goto settings view, the linter provider you want to specify executable for, and there should be a field for it. |
@steelbrain My linter provider doesn't seem to have those options in settings |
@rennsport that is the base linter you are pointing at, by a "provider", I meant packages like "linter-jshint", "linter-eslint" and "linter-flake8" |
@steelbrain I feel slightly less capable now as I linked this project within the project itself without realizing it haha. Sadly however, the actual linter provider does not have such settings unless I'm missing something obvious again. Edit: Under the configuration I am told I need to set the Executable Path, but there is no option for that and I'm not sure what file I would add it to. |
@rennsport It does have that setting and it's called
|
@steelbrain I now see said settings. Maybe the theme I was using hid them? Anyways I have now gotten around the first error, and I have a second (I apologize for my novice understand of this). Error: "Traceback (most recent call last):" I can show the full error in a pastebin or something similar. |
@rennsport can we please chat in the atom slack or at least in a separate issue, I have to open up this super-long page each time and tons of people are notified each time via email/push. |
In linter-rubycop plugin, I have rubocop command set like this.
But when I open Ruby project from Atom menu
But when I open project from command like like My Atom version is 1.3.2 and I am using El Capitan. |
This is an issue that is planning on being solved in Atom (see atom/atom#4126), with a temporary workaround planned in steelbrain/atom-linter#62 for linter plugins that utilize the I'm locking this issue as it hasn't been the proper repository for this issue for a very long time in the first place, and any further work on resolving the issues presented here will be done in the linked issues. For any users on OS X until a workaround for Apple's "interesting" decision is put in place, the simplest method is to launch Atom from a terminal that has a full environment set up using |
Here's an announcement for you, we have recently published a release of |
When Atom is launched from the command line with
atom
, it has access to$PATH
as defined by the shell so the linter can often find executables.But if Atom is launched via the dock, Spotlight, Applications folder, or other GUI method, it does not inherit
$PATH
. This means that linters will fail to find their executables. I bet this problem is behind a lot of the bug reports that see thespawn ENOENT
message.The text was updated successfully, but these errors were encountered: