module Main exposing (…) was automatically added even if the file had a module line
random text formatting (new lines added)
random code truncation
elm-analyse was reporting some non-specific error
ran “npm install -g elm-test elm-format” and it seemed to have fixed the problem but most likely the problems temporarily went away because I also restarted VS Code. After a short use the problems restarted.
I then speculated that the culprit might be the recent VS Code update so I rolled back VS Code and I reinstalled Elm Plugin and noticed the hot fix so I ended with:
VS Code 1.41.1
Elm Plugin 0.9.1
In this configuration the code formatting did not seem to work at all (I did not perform a clean VS Code uninstall) so I allowed VS Code to update again to 1.42.1.
I am now at:
VS Code 1.42.1
Elm Plugin 0.9.1
and everything seems to be working just fine. (tested for about 20 min by opening different files and doing some edits/saves).
I’ve been experiencing the same issue with format-on-save, where random characters are getting deleted from code. I just updated to the hotfix and reinstalled elm-format. It appears that installing the hotfix has resolved the issue for me.
First of all, @razze: Great work! Keeps getting better and better.
For info: I also had the same issue with random characters beeing removed all over the file on save yesterday ( with format on save turned on ).
Seems fine now with 0.9.1
Ah, I remember noticing a while back that multiline strings suddenly started auto-closing correctly, glad I wasn’t imagining things =) Thanks so much for all your work on this!