bsermons / flycheck-elm

Flycheck support for the elm language
GNU General Public License v3.0
18 stars 8 forks source link

elm-make: elm-package.json: openBinaryFile: does not exist (No such file or directory) #15

Open nadeemkhedr opened 7 years ago

nadeemkhedr commented 7 years ago

My issue is when running the linting on a file from emacs C-c ! C-c I get the following

-*- mode: compilation; default-directory: "~/work/elm-starter/src/elm/" -*-
Compilation started at Wed Oct  5 22:12:13

elm-make --report\=json /Users/nadeem/work/elm-starter/src/elm/Main.elm --output\=/dev/null
elm-make: elm-package.json: openBinaryFile: does not exist (No such file or directory)

Compilation exited abnormally with code 1 at Wed Oct  5 22:12:13

but if I run the following from the command line

elm-make --report\=json /Users/nadeem/work/elm-starter/src/elm/Main.elm --output\=/dev/null

I get

[{"tag":"TYPE MISMATCH","overview":"The argument to function `class` is causing a mismatch.","subregion":{"start":{"line":62,"column":17},"end":{"line":62,"column":18}},"details":"Function `class` is expecting the argument to be:\n\n    String\n\nBut it is:\n\n    number","region":{"start":{"line":62,"column":11},"end":{"line":62,"column":18}},"type":"error","file":"/Users/nadeem/work/elm-starter/src/elm/Main.elm"}]
ar1a commented 6 years ago

I, too, experience this.

bsermons commented 6 years ago

Sorry, I haven't used elm in a while but just trying now it seems to work for me on Windows. Which OS are you using? Is the default-directory it is picking up the same one that has the elm-package.json? It looks like it be using the wrong directory than your base project directory but that is just a guess.

purcell commented 5 years ago

Please can someone provide a minimal reproduction case for this? There's not enough to go on here, and this is not a problem that most other users - including myself - are seeing.