Stream: beginners

Topic: lsp


view this post on Zulip Albert (Jan 06 2025 at 03:49):

which editor has the best ROC LSP atm? The VSCode one does not work for me.

view this post on Zulip Anthony Bullard (Jan 06 2025 at 03:51):

The LSP is the same (versions may be slightly different)

view this post on Zulip Anthony Bullard (Jan 06 2025 at 03:51):

But the way the editor handles the LSP does differ

view this post on Zulip Anthony Bullard (Jan 06 2025 at 03:52):

I will say that the LSP can have some ups and downs

view this post on Zulip Anthony Bullard (Jan 06 2025 at 03:52):

But I have a pretty good time with it in Neovim

view this post on Zulip Sam Mohr (Jan 06 2025 at 03:53):

If the LSP stops working, I'd recommend running roc check on the file that saw the crash

view this post on Zulip Sam Mohr (Jan 06 2025 at 03:53):

Odds are good that the compiler crashed

view this post on Zulip Anthony Bullard (Jan 06 2025 at 03:53):

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

view this post on Zulip Anthony Bullard (Jan 06 2025 at 03:53):

And yes, what Sam said

view this post on Zulip Anthony Bullard (Jan 06 2025 at 03:54):

Being pre-v0.1.0 the compiler is prone to crashing, which is not helpful for a Language Server :-)

view this post on Zulip Sam Mohr (Jan 06 2025 at 03:54):

We are working to (almost) never crash the compiler for all future development, but current Roc still has some fragility to it

view this post on Zulip Ian McLerran (Jan 07 2025 at 19:50):

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.

view this post on Zulip Anthony Bullard (Jan 07 2025 at 20:42):

Every editor does different things with the LSP data

view this post on Zulip Anton (Jan 08 2025 at 10:02):

give types for idents on mouseover

I get that on vscode as well


Last updated: Jul 06 2025 at 12:14 UTC