which editor has the best ROC LSP atm? The VSCode one does not work for me.
The LSP is the same (versions may be slightly different)
But the way the editor handles the LSP does differ
I will say that the LSP can have some ups and downs
But I have a pretty good time with it in Neovim
If the LSP stops working, I'd recommend running roc check
on the file that saw the crash
Odds are good that the compiler crashed
I recommend (if you can) using latest by building from source (with --target release) and then put all the binaries from the /target/release/ directory into somewhere early in your path
And yes, what Sam said
Being pre-v0.1.0 the compiler is prone to crashing, which is not helpful for a Language Server :-)
We are working to (almost) never crash the compiler for all future development, but current Roc still has some fragility to it
I have noticed that zed actually uses the LSP to give types for idents on mouseover, and inlines some error messages as well, which is something VS code doesn't do.
Every editor does different things with the LSP data
give types for idents on mouseover
I get that on vscode as well
Last updated: Jul 06 2025 at 12:14 UTC