Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elm-make: ‘The system cannot find the file specified’ on Windows #12

Open
sentience opened this issue Jan 19, 2017 · 6 comments
Open

Comments

@sentience
Copy link

From deadfoxygrandpa#113:

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.

@bholtbholt
Copy link

I installed Elm Language Support on a new computer yesterday and had this error as well. I'm unsure whether it's exactly the same problem because the computer was a Mac, but I determined it was because I didn't have Elm installed globally.

This package relies on global npm packages (Elm, elm-oracle, elm-format) in order to fully-function. It would be nice if we could rely on local npm packages, though I'm not sure what that would take to support 🙏

@sentience
Copy link
Author

@bholtbholt Definitely a different issue. I've opened #38 to track this request.

@thesobercoder
Copy link

Thanks Kevin, spent almost more than two hours trying to figure this out. This was really frustrating. Hope it gets resolved soon, but am making do with elm-make.cmd hack.

@viktorce
Copy link

For elm-format you would need to edit the user settings and change "elm_format_binary" to "elm-format.cmd"

@20iahazban
Copy link

on windows there is no elm-make command if you install elm with Windows — installer
the proper command is "elm make"

@sentience
Copy link
Author

@20iahazban Are you using Elm 0.19, and if so have you upgraded to the beta version of the package that supports Elm 0.19? See the instructions in the README file for this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants