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

LSP does not like anything 'above' #lang #101

Closed
Release-Candidate opened this issue Apr 2, 2023 · 2 comments
Closed

LSP does not like anything 'above' #lang #101

Release-Candidate opened this issue Apr 2, 2023 · 2 comments

Comments

@Release-Candidate
Copy link

Anything before #lang in a file causes an exception. It does not matter whether there is a comment, an empty line,... -

Example - adding an empty line (which isn't visible in the rendered Markdown) above #lang:

#lang racket

Exception:

Caught exn in request "textDocument/documentSymbol"
rest: contract violation
  expected: (and/c list? (not/c empty?))
  given: #<void>
  context...:
   /Users/roland/Library/Racket/8.8/pkgs/racket-langserver/text-document.rkt:232:0: get-symbols
   /Users/roland/Library/Racket/8.8/pkgs/racket-langserver/text-document.rkt:463:0: document-symbol
   /Applications/Racket v8.8/collects/racket/contract/private/arrow-val-first.rkt:486:18
   /Users/roland/Library/Racket/8.8/pkgs/racket-langserver/methods.rkt:26:0: process-message
   /Applications/Racket v8.8/collects/racket/contract/private/arrow-val-first.rkt:486:18
   /Users/roland/Library/Racket/8.8/pkgs/racket-langserver/main.rkt:60:2: consume

[Error - 21:37:57] Request textDocument/documentSymbol failed.
  Message: internal error in method "textDocument/documentSymbol"
  Code: -32603 
@dannypsnl
Copy link
Contributor

This should be fixed, @Release-Candidate would you like to check it?

@Release-Candidate
Copy link
Author

Yes, thanks. This works for me with the latest LSP version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants