Closed mrattner closed 5 years ago
Hi! Can you check the value of executablePath
, args
, and projectDirectory
at line 111?
Thanks!
I'm getting the same error. In my case:
executablePath
is /Users/gampleman/Programming/fmap/project/client/node_modules/.bin/elm
which seems correct.
args
is ["make", "--report=json", "--output=/dev/null", "/Users/gampleman/Programming/fmap/project/client/src/Main.elm"]
projectDirectory
is /Users/gampleman/Programming/fmap/project/client
@gampleman, @mrattner, can you try uncommenting // env: process.env,
? Thanks!
Sure.
After the promise resolves,
data.stderr
is "env: node: No such file or directory"
I haven't had the time to dig into this error, so thanks @gampleman for providing more info. That "node: No such file or directory" error you're seeing reminds me of a problem I've run into a couple of times, because of how the Node binary is named in some package managers (nodejs
vs node
--see this stackoverflow post for more info). Even though I installed Node via n-install, I had to create a symlink from node
to nodejs
after I upgraded my Linux distro. Maybe that's related to this problem?
@gampleman, @mrattner, I created a branch (sb-exec-local
) that uses the local
option of sb-exec
(https://github.com/steelbrain/exec#optionslocal) when Elm Path
is node_modules/.bin/elm
. Not sure if it will make any difference since I didn't encounter compile issues without it :)
Did it work @mrattner ? :slightly_smiling_face:
Yes, it worked! thanks! :tada:
The changes are in v9.9.3. Thanks!
In elmjutsu config, my value for Elm Path is
node_modules/.bin/elm
. When I run the linter in an Elm file, I get "Error parsing output. Please check the value ofElm Path
and/orElm Test Path
in the Settings view."Looking at the Atom debugger, I see that the Elm executable's full path is expanded correctly to
/home/marcy/elm-project/node_modules/.bin/elm
, but the spawned process exits with code 127 (command not found). When I recreate the command myself from within the same working directory, in my system terminal:the Elm compiler executes successfully. Any advice?