Closed bitranch closed 7 years ago
@mostafaeweda can you take a look?
@bitranch could you check Atom console for a more detailed error message?
Seems to be there's some hg
call failure, could you have an old mercurial installed?
Where do I find the Atom console? The Nuclide -> console just says "Uncaught Error".
Mercurial is:
% hg --version
Mercurial Distributed SCM (version 3.9.2)
CMD+ALT+I --> it will open the chrome dev tools
Looks like it can't find hg:
[2016-11-10T21:11:25.672Z] [ERROR] nuclide - HgService cannot fetch statuses ProcessSystemError: "hg" failed with code ENOENT(…)
The path in its environment is wrong:
PATH: "/usr/bin:/bin:/usr/sbin:/sbin"
That should include "/usr/local/bin" (which is where hg along with almost everything else I use lives). Since it was working until recently, something must have changed either in Atom or in my system. (No major system updates in a while, so...)
@bitranch, from the Atom console (in the devtools), does process.env.SHELL
match the shell you have configured to setup the right PATH
? If not, then that's your issue. Atom shells out to your default shell, reads the environment, and patches itself. So if for example, you use zsh
and your PATH
is set in a .zshrc
, but the OS thinks your default is bash
- then Atom won't start the right shell, and you won't have the right PATH
.
It's using the correct shell (/bin/tcsh
). It seems to only be picking up the global .tcshrc
and not the one in my user dir. And I'm starting Atom under my user, so it should be finding the right stuff.
This is what Atom does to patch the environment https://github.com/atom/atom/blob/master/src/update-process-env.js. I tried /bin/tcsh -ilc command env
- which is what Atom does - and that doesn't work. Seems like they don't support, tcsh
. I recommend that you file an issue in the Atom repo.
Mercurial is usually installed in /usr/local/bin/
which I can't find in your PATH
- hence causing this error.
The traceback has a "logAndThrowHgError" which implies it's logging an hg error, but I can't find any location where that error is written.
Atom Version: 1.12.0 Electron Version: 1.3.6 System: Mac OS X 10.11.6 Thrown From: nuclide package, v0.181.0
Stack Trace
Uncaught Error
Commands
Config
Installed Packages