Anyone else experience this? I've had to kill the language server repeatedly cuz it keeps tanking my CPU over the last 24 hours...
Screenshot-2024-05-13-at-08.45.19.png
how recently have you updated? @Eli Dowling shipped an update related to preventing that a few weeks ago
My roc version is May 13
Lang server should be updated side-by-side... I'm using the tarball and not the git repo, but I don't think that should matter...
output from roc version:
roc nightly pre-release, built from commit e5ea6dc4617 on Mon May 13 10:47:45 UTC 2024
Screenshot-2024-06-19-at-15.32.24.png
Screenshot-2024-06-19-at-15.32.33.png
I was having this issue a little while back. This PR resolved it https://github.com/roc-lang/roc/pull/6792
From the notes, it mentions we default to main.roc, just wondering if maybe that could be related?
Or maybe the latest nightly doesn't include this change?
Ooh, whoops, I see I don't have the latest nightly. Just pulled that in...
I believe there are other issues that cause lang server hangs, but that PR fixed one of the most common
Luke Boswell said:
From the notes, it mentions we default to
main.roc, just wondering if maybe that could be related?
If it doesn't find main.roc, it will show an error instead of hanging
Yeah, I was on the June 1 build. I think the PR came in about a week later. I did run a roc check on a Module prior to noticing my computer performance take a nose dive (and then realize the language server had hung). So that was almost certainly the cause. I'm assuming that the June 19 nightly I just pulled down incorporates #6792.
Side note... I didn't realize till just now that Zulip auto hyperlinks #number to the corresponding issue/PR on the roc repo.
Keep us updated on this, I can definitely do some investigating if it's still an issue :)
Last updated: Nov 09 2025 at 12:14 UTC