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

‘hash-ref: no value found for key’ for certain files #97

Open
bluebear94 opened this issue Mar 14, 2023 · 1 comment
Open

‘hash-ref: no value found for key’ for certain files #97

bluebear94 opened this issue Mar 14, 2023 · 1 comment

Comments

@bluebear94
Copy link

Steps to reproduce (using Magic Racket extension for VSCode):

Expected behavior: hovering shows a tooltip for the text (if applicable)

Actual behavior: the language server gives the following errors:

Caught exn:
standard-module-name-resolver: contract violation
  expected: module-path?
  given: '(just-space #f (rename scribble/manual racketmodlink racketmodlink))
  context...:
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/autocomplete.rkt:106:0: walk-module
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/check-syntax.rkt:111:10
   /usr/share/racket/collects/racket/logging.rkt:43:0: with-intercepted-logging
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/check-syntax.rkt:77:0: check-syntax
   /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/text-document.rkt:68:0: did-open!
   /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18
   [repeats 1 more time]
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/main.rkt:60:2: consume

Caught exn in request "textDocument/documentSymbol"
hash-ref: no value found for key
  key: 'file:///home/felirovas/conlang/ncv9/pollen/pollen/render.rkt
  context...:
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/text-document.rkt:463:0: document-symbol
   /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/methods.rkt:26:0: process-message
   /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/main.rkt:60:2: consume

[Error - 3:09:20 AM] Request textDocument/documentSymbol failed.
  Message: internal error in method "textDocument/documentSymbol"
  Code: -32603 
Caught exn in request "textDocument/hover"
hash-ref: no value found for key
  key: 'file:///home/felirovas/conlang/ncv9/pollen/pollen/render.rkt
  context...:
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/text-document.rkt:117:0: hover
   /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/methods.rkt:26:0: process-message
   /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:486:18
   /home/felirovas/.local/share/racket/8.7/pkgs/racket-langserver/main.rkt:60:2: consume
@6cdh
Copy link
Contributor

6cdh commented Jul 12, 2023

The subsequent error in documentSymbol should be fixed now.
The first error that occurs in autocomplete.rkt can be fixed in the future.

The error might occurs here:

((current-module-name-resolver) mod #f #f #t))

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