Closed rtxm closed 6 years ago
@rtxm My best guess without drilling into the code too deeply is that Sublime Text is failing to find elm-make
on your system. On Linux, Sublime uses this path to search for it (from Elm Make.sublime-build):
"path": "$HOME/.cabal/bin:/usr/local/bin:$PATH"
Can you check where elm-make
is installed on your system? Also, can you confirm that you installed Elm with npm -g i elm
as instructed in the README for this package?
Thanks for answering.
My path seems ok: elm-oracle (autocomplete) and elm-format work from sublime 3, build building with elm-make does not. They're all in the same location. elm-make
works on the command line.
I've found the problem in elm_make.py: the data received by the on_data
method is already decoded by sublime, so the buffer must be str
not bytes
. I can submit a PR if you wish.
@rtxm A PR would be much appreciated, thanks!
Fixed in 0.22.1 🎉
Platform:
Linux
Sublime version
Sublime Text 3, build 3156 (latest)
Description
When trying to build with Elm build System, nothing happens. The sublime console shows this error:
If I try to "make run", I get another error, of the same kind: