Stream: bugs

Topic: LSP does not work after latest nightly


view this post on Zulip notramo (Oct 09 2026 at 14:41):

I found this in Helix log:

2026-10-09T16:38:29.278 helix_lsp::transport [ERROR] roc-experimental <- ServerError(-32803): Semantic features require initializationOptions.trustedWorkspace: true; restart the server after granting trust.

view this post on Zulip notramo (Oct 09 2026 at 14:41):

This is very bad UX.

view this post on Zulip notramo (Oct 09 2026 at 14:42):

I don't see anything in the Helix interface, I have to dig through logs.

view this post on Zulip notramo (Oct 09 2026 at 14:42):

I don't even know whether it's some Roc setting to tweak, or a Helix setting.

view this post on Zulip notramo (Oct 09 2026 at 14:44):

Is there some documentation about it?

view this post on Zulip notramo (Oct 09 2026 at 14:45):

It's in a project that I developed from scratch, not something I downloaded.

view this post on Zulip Jonathan (Oct 09 2026 at 15:51):

It's probably to do with this PR. I don't use Helix, but I suspect the command :workspace-trust might be what you need

view this post on Zulip Luke Boswell (Oct 09 2026 at 17:07):

Yes I picked this up in a review of CVE's as something we should fix to prevent untrusted codebases doing nefarious things through the LSP

view this post on Zulip notramo (Oct 09 2026 at 17:07):

Thanks, @Jonathan. That's it. I'm using the stable release of Helix, which does not have this feature yet, so it was not showing the trust modal nor the warning sign.

view this post on Zulip notramo (Oct 09 2026 at 19:32):

Is it possible to detect the editor name from the LSP?

view this post on Zulip notramo (Oct 09 2026 at 19:33):

Since many users are using the latest stable Helix, which does not have the "workspace trust" feature, maybe a window/showMessage could help them understand what's happening, and how they can resolve it.

view this post on Zulip Richard Feldman (Oct 09 2026 at 20:34):

I'm using the stable release of Helix, which does not have this feature yet, so it was not showing the trust modal nor the warning sign.

there might be some way in LSP to do feature detection?

view this post on Zulip notramo (Oct 09 2026 at 20:35):

There is, but I think this workspace trust thing is not detectable via that.

view this post on Zulip notramo (Oct 09 2026 at 20:40):

The unfortunate thing is that Helix has been abandoned by its original author, so no new releases can be expected, and I don't know how much time it takes for Linux distros to switch to a maintained fork.

view this post on Zulip Richard Feldman (Oct 09 2026 at 20:45):

ok so let's say we communicate it via a message...what would Helix users be able to do?

view this post on Zulip notramo (Oct 09 2026 at 20:46):

I just hardcoded the trust value into the Roc LSP initial settings:

[language-server.roc-experimental]
command = "roc"
args = ["experimental-lsp"]
config = { "trustedWorkspace" = true }

view this post on Zulip notramo (Oct 09 2026 at 20:47):

Explaining this is not doable via a simple message. I recommend directing them towards some kind of documentation page.

view this post on Zulip notramo (Oct 09 2026 at 20:48):

Helix does not support workspace trusting yet. Compile Helix from the master branch, or see https://roc-lang.org/helix for workaround on stable release.

view this post on Zulip notramo (Oct 09 2026 at 20:50):

But this is too long, maybe just print the link:

To enable semantic analysis, see https://roc-lang.org/helix for instructions.

view this post on Zulip Richard Feldman (Oct 09 2026 at 20:51):

that seems reasonable, although I'd like to have the link go somewhere else...I don't really want to have a roc-lang.org/helix page indefinitely :sweat_smile:

view this post on Zulip notramo (Oct 09 2026 at 20:52):

Not needed indefinitely, just until a new Helix release or most of the distros switching to the maintained unofficial fork.

view this post on Zulip notramo (Oct 09 2026 at 20:52):

But I understand the concern.

view this post on Zulip notramo (Oct 09 2026 at 20:52):

Could use any URL shortener instead, pointed to a GitHub Pages link.

view this post on Zulip notramo (Oct 09 2026 at 20:52):

But the official domain signals trust.

view this post on Zulip notramo (Oct 09 2026 at 20:55):

Is there any “editor support” page at all in the documentation?

view this post on Zulip notramo (Oct 09 2026 at 20:55):

New tools/languages usually include one.

view this post on Zulip Richard Feldman (Oct 09 2026 at 20:55):

not currently, but I guess we could add a section

view this post on Zulip notramo (Oct 09 2026 at 20:56):

See these for example:
https://biomejs.dev/configuration/editors/
https://zine-ssg.io/docs/editors/

view this post on Zulip notramo (Oct 09 2026 at 20:57):

Would you better agree to a https://roc-lang.org/editors/helix link?

view this post on Zulip Richard Feldman (Oct 09 2026 at 21:00):

I guess N is pretty small for total number of editors we'd have on there, so yeah let's go for it :thumbs_up:

view this post on Zulip notramo (Oct 09 2026 at 21:03):

I'll put together a guide for Helix.

view this post on Zulip Luke Boswell (Oct 09 2026 at 21:03):

@notramo we could add something to https://github.com/lukewilliamboswell/roc-awesome

view this post on Zulip notramo (Oct 09 2026 at 21:07):

The lack of development activity around Helix is quite annoying, and many users feel this way. Unfortunately, it's putting the burden on projects like Roc and other languages.

view this post on Zulip notramo (Oct 09 2026 at 21:08):

Setting up Roc on a clean Helix config is a task on its own.

view this post on Zulip Richard Feldman (Oct 09 2026 at 23:03):

probably worth adding to the new page then!

view this post on Zulip Richard Feldman (Oct 09 2026 at 23:03):

if anyone wants to make a PR to the website to just get some information up there, we can figure out the styling etc in follow-ups


Last updated: Oct 15 2026 at 17:56 UTC