Problems integrating with the Elm language server #10274
Replies: 5 comments
-
I just tried to replicate the videos above in Sublime Text but failed to do so. I do not get the parsing error diagnostic when performing the same operations in Sublime Text. |
Beta Was this translation helpful? Give feedback.
-
Does this only happen from formatting? Or can you replicate only by typing too? |
Beta Was this translation helpful? Give feedback.
-
I have not been able to reproduce it when formatting isn't taking place. |
Beta Was this translation helpful? Give feedback.
-
There's also #1364, maybe we need to double check our formatting implementation. |
Beta Was this translation helpful? Give feedback.
-
Could it be that the Elm LSP isn't expecting In your logs, this is the changes we get from the formatting request
Then we apply them and report them back
The changes seem identical to me to what we got from the LSP so I don't see how helix could be wrong. |
Beta Was this translation helpful? Give feedback.
-
When writing Elm code, sometimes the LSP integration becomes erratic/broken and generates diagnostics for problems that don't exist. E.g., only partially interpreting identifiers, generating parsing errors and what not. Initially I thought it was due to incremental synchronziation, see elm-tooling/elm-language-server#503, but I don't believe that's the case any more.
Video of me making some edits and saving the file, triggering a formatting request.
https://asciinema.org/a/dexV5nWbBn5sQ9iDRD5X2r9qB and here's the associated log.
Vide of me making some edits and saving the file. Then manually triggering formatting.
https://asciinema.org/a/Bh47XkiludVBgxK6U8b5LuJal and here's the associated log.
The videos above were recorded using the
master
build of Helix, Elm 0.19.1, elm-language-server 2.4.0 and Node v17.3.0.I've reported the issue to elm-language-server as well.
Beta Was this translation helpful? Give feedback.
All reactions