Stream: beginners

Topic: editors


view this post on Zulip Rayyan (Apr 13 2026 at 03:51):

hey! i'm just getting started with Roc and im exploring editors to use. I've used both Zed and VSCode so far, and I'm just wondering, is there no auto-indentation support as of now? and additionally, im not sure if this is just how it is, but the syntax highlighting sometimes colors everything, and then other times it only colors keywords.

view this post on Zulip Luke Boswell (Apr 13 2026 at 03:55):

There is an LSP built into the roc cli which provides semantic tokens for nicer highlighting. I know VS Code supports that, but I haven't tested it on the Zed extension.

Auto indentation should work... isn't that just using the format document action which delegates to roc fmt? I'm not sure I haven't looked to closely at that in a while.

view this post on Zulip Luke Boswell (Apr 13 2026 at 03:56):

Also -- it depends on if you are talking about the old rust or new zig compiler... :sweat_smile:

view this post on Zulip Rayyan (Apr 13 2026 at 18:57):

mm, whatever i installed from the archives on the website. im guessing the old rust compiler?

view this post on Zulip Rayyan (Apr 13 2026 at 21:12):

also, does the new language server work with vscode?

view this post on Zulip Anton (Apr 14 2026 at 12:19):

Looks like we need to make a new extension for that, can you confirm @Eli Dowling?

view this post on Zulip Luke Boswell (Apr 14 2026 at 12:20):

A new exention for vs code? ... I have been using @Ivan Demchenko's https://github.com/ivan-demchenko/roc-vscode-unofficial/pull/50

view this post on Zulip Anton (Apr 14 2026 at 12:24):

Should I just use path/roc experimental-lsp for the exe path in the extension settings?

view this post on Zulip Luke Boswell (Apr 14 2026 at 12:25):

I think that was basically the main change... and adding support for the --debug flag arguments our cli accepts

view this post on Zulip Anton (Apr 14 2026 at 13:44):

I get the following error:

LS executable path: Some(/Users/username/gitrepos/temp/roc_nightly-macos_apple_silicon-2026-04-14-c4161ad/roc experimental-lsp)
LS debug executable path: None
You are ready to Roc!Error: roc experimental-lsp received an unexpected argument: `--stdio`
[Error - 3:42:06 PM] Server process exited with code 1.
[Error - 3:42:06 PM] Server initialization failed.

Last updated: May 01 2026 at 12:45 UTC