Skip to content

[symbols] error in ranges #1560

@correnson

Description

@correnson

With version 1.23.0 (under VSCode) I encountered the following issue from the LSP:

[Error - 11:03:16] Request textDocument/documentSymbol failed.
Error: selectionRange must be contained in fullRange
	at Rf.validate (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:26806)
	at new Rf (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:27014)
	at he0 (/Users/correnson/.vscode/extensions/ocamllabs.ocaml-platform-1.32.3/dist/vscode_ocaml_platform.bc.js:35:80046)
	at he0 (/Users/correnson/.vscode/extensions/ocamllabs.ocaml-platform-1.32.3/dist/vscode_ocaml_platform.bc.js:35:80257)
	at c00 (/Users/correnson/.vscode/extensions/ocamllabs.ocaml-platform-1.32.3/dist/vscode_ocaml_platform.bc.js:35:50811)
	at Object.t40 [as map] (/Users/correnson/.vscode/extensions/ocamllabs.ocaml-platform-1.32.3/dist/vscode_ocaml_platform.bc.js:35:50913)
	at Object.Pe0 [as asDocumentSymbols] (/Users/correnson/.vscode/extensions/ocamllabs.ocaml-platform-1.32.3/dist/vscode_ocaml_platform.bc.js:35:80003)
	at o00 (/Users/correnson/.vscode/extensions/ocamllabs.ocaml-platform-1.32.3/dist/vscode_ocaml_platform.bc.js:39:62011)
	at async JP.provideDocumentSymbols

The bug does not occurs with version 1.22.0

This is not for all modules, of course !
Although is not that easy to minimize my example to locate precisely the bug.
I'll provide additional information when available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions