humio / atom-elm-format

Run elm-format in atom
https://atom.io/packages/elm-format
Apache License 2.0
10 stars 8 forks source link

Still not working on windows (code 3221225477) #27

Open 3nigm4 opened 5 years ago

3nigm4 commented 5 years ago

Hi, thanks for your work on elm tooling / elm format, it is a wonderful tool! Please help me with this: Over the last year I have tried several times to set up elm-format on windows (we have to use windows 7 at work), but I just can't make it work in atom:

I get ("elm-format exited with code 3221225477") in atom: elm format

I have tried all sorts of solutions.

  1. Installing node via nvm for windows, and then installing elm / elm-format via npm to avoid permission problems -> did not help
  2. using elm-platform -> extracting elm-format binary to folder elm.exe folder -> did not help
  3. running atom in admin mode -> did not help

I also checked and elm-format has the same permissions as elm.exe

elm3

BUT: elm-format works from command line (see below) ... !?!? how can i make it also work in atom? elm2

aparent-emgs commented 5 years ago

+1 I have the same exact error. Using Windows 7 Premium. I don't get the error when I rollback to the last version of the CLI elm-format (npm install -g elm-format@0.7.0-exp) and run it on a 0.18 project.

edkelly303 commented 5 years ago

I have this error too. Windows 7 Home Premium, Elm 0.19, elm-format 0.8.1.

The previous version of elm-format worked fine with the atom-elm-format plugin on both Elm 0.18 and Elm 0.19 projects - it seems to be v0.8.1 that is the problem.

avh4 commented 5 years ago

elm-format 0.8.1 and later require that either elm-format be invoked with the cwd set to the folder that contains your elm.json or elm-package.json, or that you provide the --elm-version= argument. In general, plugins need to be updated to work with this. (However, the next version of elm-format will make the auto-detection a bit smarter, which might solve this anyway: https://github.com/avh4/elm-format/issues/561)