Closed AlexMaclean closed 3 years ago
Thanks for the report. Can you send me the faulty file?
@Eugleo, Here's a copy of a file and the errors I'm seeing:
example.rkt:
;;Comment
#lang racket
(+ 3 4)
Output:
Caught exn in request "textDocument/documentSymbol"
get-lexer: 'before-lang-line
[Error - 1:09:15 PM] Request textDocument/documentSymbol failed.
Message: internal error in method "textDocument/documentSymbol"
Code: -32603
Caught exn in request "textDocument/documentSymbol"
get-lexer: 'before-lang-line
[Error - 1:09:23 PM] Request textDocument/documentSymbol failed.
Message: internal error in method "textDocument/documentSymbol"
Code: -32603
Caught exn in request "textDocument/documentSymbol"
get-lexer: 'before-lang-line
[Error - 1:09:26 PM] Request textDocument/documentSymbol failed.
Message: internal error in method "textDocument/documentSymbol"
Code: -32603
Caught exn in request "textDocument/documentSymbol"
get-lexer: 'before-lang-line
[Error - 1:09:28 PM] Request textDocument/documentSymbol failed.
Message: internal error in method "textDocument/documentSymbol"
Code: -32603
Thanks. This is a well-known problem with the langserver; for now, the #lang
has to be declared on the very first line in the file. Please follow this issue for updates.
Environment
Error message