Skip to content

Frequent hover errors in a file that opened before the plugin loaded #108

@Reilithion

Description

@Reilithion

Sometimes I notice that any time I move my mouse within a Racket source file in VSCodium an error pops up in the Output pane. It gets quite annoying after a while. I've noticed this behavior in files that were open before the plugin loaded - for example, files that were open when I last closed the program and therefore opened automatically when I relaunched it.

Based on the error message I suspect this is a simple oversight in the handling of cases when an entry in a hash table is absent, but I'm happy to reproduce the error with more debug info on if needed.

Environment

  • OS: Windows 10
  • OS Version: 10.0.19045 Build 19045
  • VS Code Version: VSCodium Version: 1.77.3 (system setup)
    Release: 23102
    Commit: 650fc437e02159df39d99355a91b2e3b1f1220c5
    Date: 2023-04-12T18:28:14.437Z
    Electron: 19.1.9
    Chromium: 102.0.5005.167
    Node.js: 16.14.2
    V8: 10.2.154.15-electron.0
    OS: Windows_NT x64 10.0.19045
    Sandboxed: No
  • Racket version: 8.9 [cs]
  • Racket Langserver checksum: racket-langserver 570b19570db40647c5ae69c73a67d3a05466a465 catalog...erver.git
  • Magic Racket version: v0.6.2

Error message

[Error - 4:44:21 PM] Request textDocument/hover failed.
Message: internal error in method "textDocument/hover"
Code: -32603
Caught exn in request "textDocument/hover"
hash-ref: no value found for key
key: 'file:///c:/Users/Lucas/ETCETERA/myfile.rkt'
context...:
C:\Users\Lucas\AppData\Roaming\Racket\8.9\pkgs\racket-langserver\text-document.rkt:117:0: hover
C:\Program Files\Racket\collects\racket\contract\private\arrow-val-first.rkt:486:18
C:\Users\Lucas\AppData\Roaming\Racket\8.9\pkgs\racket-langserver\methods.rkt:26:0: process-message
C:\Program Files\Racket\collects\racket\contract\private\arrow-val-first.rkt:486:18
C:\Users\Lucas\AppData\Roaming\Racket\8.9\pkgs\racket-langserver\main.rkt:60:2: consume

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions