JakeBecker/ide-elixir

Elixir not found in path only when Atom starts

Closed this issue · 1 comments

Hi everybody,

Package error at startup :

"'elixir' command not found in path. Ensure Elixir is installed and available in path"

But when package is disable and enable again, all is good.
If I check with nodeJs, I have elixir in path with which command :

shell.which("elixir");

[String: '/Users/tanguydeleage/.asdf/installs/elixir/1.10.2/bin/elixir'] {
stdout: '/Users/tanguydeleage/.asdf/installs/elixir/1.10.2/bin/elixir',
stderr: null,
code: 0,
cat: [Function: bound ],
exec: [Function: bound ],
grep: [Function: bound ],
head: [Function: bound ],
sed: [Function: bound ],
sort: [Function: bound ],
tail: [Function: bound ],
to: [Function: bound ],
toEnd: [Function: bound ],
uniq: [Function: bound ]
}

Thanks a lot !

If other people have the same problem, I have found solution from an other package :

Let me guess. You're using OSX. This happens when starting atom from Finder. Finder-started applications have no access to PATH variable. To go around that make sure to set "Elixir Path" in package configuration to Your absolute elixir executable path or start atom from command line instead.