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 crashes #60

Closed ImmaculatePine closed 5 years ago

ImmaculatePine commented 5 years ago

I'm using Elm 0.19 with this plugin and today it started to throw some Python errors when I run "Run elm-format" command:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1072, in run_
    return self.run(edit)
  File "/Users/aleksandrborovykh/Library/Application Support/Sublime Text 3/Installed Packages/Elm Language Support.sublime-package/elm_format.py", line 27, in run
  File "./python3.3/subprocess.py", line 819, in __init__
  File "./python3.3/subprocess.py", line 1386, in _execute_child
TypeError: Can't convert 'NoneType' object to str implicitly

Everything was perfect yesterday.

I have already tried to install just this plugin on a clean Sublime setup but got the same behaviour.

ImmaculatePine commented 5 years ago

Okay, I was not using the latest beta version of the package with Elm 0.19 support. I upgraded the package and everything works just fine. But I'm still curious why was it working for a long time and suddenly stopped today on the default version?

sentience commented 5 years ago

@ImmaculatePine How odd. I'm not sure how the old package could have been working with Elm 0.19 at all. Oh well!