elm-community / SublimeElmLanguageSupport

Elm language syntax highlighting and tool integration for ST2/3.
https://packagecontrol.io/packages/Elm%20Language%20Support
MIT License
33 stars 12 forks source link

elm-format unable to determine elm version #53

Closed ghost closed 6 years ago

ghost commented 6 years ago

Nothing was working with this package in ST3, so I enabled debug mode and opened the console.

The latest version of elm-format (0.8.1-rc2) is throwing this:

Elm Language Support: (elm-format) b"I couldn't figure out what version of Elm you are using!\n\nYou should either run elm-format from the directory containing\nyour elm.json (for Elm 0.19) or elm-package.json (for Elm 0.18),\nor tell me which version of Elm with --elm-version=0.19 or --elm-version=0.18" 

I have no way to specify which version of elm my project is using (0.19) and it's not picking up on it automatically (maybe it's not being executed in the correct path?). I've downgraded to elm-format-0.19-0.8.0 which is working.

sentience commented 6 years ago

Thanks for the report! I'll try to find some time to take a look at this during the coming week.

sentience commented 6 years ago

This is fixed in 1.0.0 beta 2.