Restart LSP when it's stale #3726

Open
opened 2026-02-16 17:41:14 -05:00 by yindo · 1 comment
Owner

Originally created by @hicder on GitHub (Dec 21, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

rust-analyzer gets stale easily, especially when there are a lot of edits that it couldn't catch up. In that case, we should just restart the LSP.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @hicder on GitHub (Dec 21, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description rust-analyzer gets stale easily, especially when there are a lot of edits that it couldn't catch up. In that case, we should just restart the LSP. ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:41:14 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 21, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2156: Stale LSP errors - discusses how stale error diagnostics from LSP confuse Claude when it can't see the actual state
  • #2694: stale rust-analyzer errors during edits - addresses the same problem of stale warnings/errors from rust-analyzer not resolving until rebuild

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 21, 2025): This issue might be a duplicate of existing issues. Please check: - #2156: Stale LSP errors - discusses how stale error diagnostics from LSP confuse Claude when it can't see the actual state - #2694: stale rust-analyzer errors during edits - addresses the same problem of stale warnings/errors from rust-analyzer not resolving until rebuild Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3726