Elm.tmLanguage icon indicating copy to clipboard operation
Elm.tmLanguage copied to clipboard

Build error w/ 0.18

Open rchangmh opened this issue 8 years ago • 3 comments

I get the following error when running build on Sublime Text 3 when trying to build:

[WinError 2] The system cannot find the file specified [cmd: ['elm-make', 'foo.elm', '--output=build\foo.html', '--report=json', '--yes']] [dir: ~\elm] [path: ~\AppData\Roaming\npm] [Finished] (Replaced directory paths with ~)

I got this error both on my home PC and work PC, both are running Windows 10, so it doesn't seem to be unique to my setup. Spent a frustrating hour figuring out why it wasn't working -- I needed to tweak 'Elm Make.sublime-build' and edit 'elm-make' to 'elm-make.cmd'. It's odd because just 'elm-make' works perfectly fine in Powershell.

rchangmh avatar Jan 09 '17 15:01 rchangmh

The official version of Elm language support for Sublime Text is now at https://github.com/elm-community/Elm.tmLanguage. This is the version you’ll get if you install the package using Package Control’s main package repository.

Can you check and see if you still have this issue with this version? I’m the new maintainer on the project, and would like to get it fixed if this is still a problem.

sentience avatar Jan 19 '17 11:01 sentience

Unfortunately, yes.

[WinError 2] The system cannot find the file specified
[cmd: ['elm-make', '~elm\\foo.elm', '--output=/dev/null', '--report=json', '--yes']]
[dir: ~\elm]
[path: ~\npm]
[Finished]

However, it works if I add '.cmd' to the end of 'elm-make' in the build file.

...
    "cmd":
    [
        "elm-make.cmd",
        "$file",
        "--output={null}",
        "--report=json",
        "--yes"
    ],
...

rchangmh avatar Jan 19 '17 22:01 rchangmh

Hello, I have the same error on Windows 10. Had to fix it using the same hack as rchangmh.

nachoba avatar Apr 28 '17 15:04 nachoba