Skip to content

error 'Request textDocument/documentHighlight failed' in vscode #21300

@pdeva

Description

@pdeva

seeing this error in both vscode and cursor. using latest stable verison of everything.

2025-12-18T08:40:02.932953583Z  WARN notify error: No path was found. about ["/home/pdeva/.config/rust-analyzer/rust-analyzer.toml"]
2025-12-18T08:40:03.298267959Z  WARN notify error: No path was found. about ["/home/pdeva/.config/rust-analyzer/rust-analyzer.toml"]
2025-12-18T08:40:11.208950807Z  WARN overly long loop turn took 287.974029ms (event handling took 287.953856ms): PrimeCaches(Report(ParallelPrimeCachesProgress { crates_currently_indexing: ["bollard_stubs"], crates_total: 572, crates_done: 522, work_type: "Indexing" }))
2025-12-18T08:40:13.513847059Z  WARN overly long loop turn took 216.203789ms (event handling took 216.14092ms): PrimeCaches(End { cancelled: false })
2025-12-18T09:15:07.827697857Z  WARN overly long loop turn took 101.25686ms (event handling took 52.46µs): Notification { method: "textDocument/didChange" }
2025-12-18T09:23:53.121989209Z  WARN overly long loop turn took 347.551911ms (event handling took 63.963µs): Notification { method: "textDocument/didChange" }
[Error - 10:00:09 AM] Request textDocument/documentHighlight failed.
  Message: Invalid offset LineCol { line: 54, col: 8 } (line index length: 1350)
  Code: -32603 
Image

rust-analyzer version: 0.3.2719

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions