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 doesn't work: virtual-statement: no such table: documented #72

Open
Origami404 opened this issue Feb 20, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Origami404
Copy link

Environment

  • OS: Archlinux on WSL2
  • OS Version: Linux O4 5.10.60.1-microsoft-standard-WSL2 Here Strings incorrect? #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 GNU/Linux
  • VS Code Version: 1.64.2
  • Racket version: 8.4
    • run: racket -v
  • Racket Langserver checksum: a1141f0871a55c036949d0bb0179fddbf86a97cd
    • run: raco pkg show --full-checksum racket-langserver
  • Magic Racket version: v0.6.3

Error message

virtual-statement: no such table: documented
  error code: 1
  context...:
   /usr/share/racket/collects/db/private/sqlite3/connection.rkt:515:0: handle-status*
   /usr/share/racket/collects/db/private/sqlite3/connection.rkt:474:8
   /usr/share/racket/collects/db/private/sqlite3/connection.rkt:273:4: prepare1* method in connection%
   /usr/share/racket/collects/db/private/generic/common.rkt:215:18
   /usr/share/racket/collects/db/private/generic/common.rkt:180:8
   /usr/share/racket/collects/db/private/generic/common.rkt:209:4: call-with-lock* method in locking%
   /usr/share/racket/collects/db/private/generic/functions.rkt:38:2
   /usr/share/racket/collects/db/private/generic/functions.rkt:90:0: compose-statement
   /usr/share/racket/collects/db/private/generic/functions.rkt:119:0: query-rows0
   /usr/share/racket/collects/setup/doc-db.rkt:94:3
   /usr/share/racket/collects/setup/doc-db.rkt:519:11
   /usr/share/racket/collects/setup/doc-db.rkt:503:2: loop
   /usr/share/racket/collects/setup/doc-db.rkt:71:0: call-with-database
   /home/origami/.local/share/racket/8.4/pkgs/racket-index/setup/xref.rkt:126:6: try
   /home/origami/.local/share/racket/8.4/pkgs/racket-index/setup/xref.rkt:122:2
   /home/origami/.local/share/racket/8.4/pkgs/scribble-lib/scribble/xref.rkt:68:19: send-arg69
   ...

Additional context

Magic racket works well when I first use it. But after I close the file and then open a workspace, the autocomplete stop working. Even if I reload/close VSCode and then reopen the same file I opened first time, the problem still exists.

I can start the LSP without any error message by this command (which is as same as I set in VSCode's settings file):

racket --lib racket-langserver

And when I open a rkt file, I could see there is a LSP process running by ps aux.


The first file I have opened:

#lang r5rs

(define (f x)
  (if (> x 0)
      x
      (- x)))

(define (g x)
  (* x x))

The second file:

#lang racket

(define (f x)
  (* x x))
@Origami404 Origami404 added the bug Something isn't working label Feb 20, 2022
@Origami404
Copy link
Author

Reinstall magic racket doesn't help.

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

1 participant