Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error with Comments Above #lang line #34

Closed
AlexMaclean opened this issue Jan 28, 2021 · 3 comments
Closed

Internal Server Error with Comments Above #lang line #34

AlexMaclean opened this issue Jan 28, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@AlexMaclean
Copy link

Environment

  • OS: Windows
  • OS Version: 10
  • VS Code Version: 1.52.1
  • Racket version 7.9
  • Racket Langserver checksum: 68206e30ecdeedabc97f121b0493ffe2af11e99f
  • Magic Racket version: 0.5.7

Error message

Caught exn in request "textDocument/documentSymbol"
get-lexer: 'before-lang-line

[Error - 3:29:48 PM] Request textDocument/documentSymbol failed.
  Message: internal error in method "textDocument/documentSymbol"
  Code: -32603 
@AlexMaclean AlexMaclean added the bug Something isn't working label Jan 28, 2021
@Eugleo
Copy link
Owner

Eugleo commented Jan 30, 2021

Thanks for the report. Can you send me the faulty file?

@AlexMaclean
Copy link
Author

@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

@Eugleo
Copy link
Owner

Eugleo commented Jan 30, 2021

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.

@Eugleo Eugleo closed this as completed Jan 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants