Eugleo / magic-racket

The best coding experience for Racket in VS Code
https://marketplace.visualstudio.com/items?itemName=evzen-wybitul.magic-racket
GNU General Public License v3.0
199 stars 29 forks source link

Collection not found for module path: (lib "racket-langserver") #81

Closed zhoulaifu closed 1 year ago

zhoulaifu commented 1 year ago

It seems that I cannot use magic racket out of the box.

#lang racket/base
"Hello, World!"

Any ideas how to solve this issue below? I am on a Mac using vscode with Racket 8.4 installed and its path has been set.

standard-module-name-resolver: collection not found
  for module path: (lib "racket-langserver")
  collection: "racket-langserver"
  in collection directories:
   /Users/zhofu/Library/Racket/8.6/collects
   /Applications/Racket/collects/
   ... [169 additional linked and package directories]
[Info  - 9:49:57 AM] Connection to server got closed. Server will restart.
standard-module-name-resolver: collection not found
  for module path: (lib "racket-langserver")
  collection: "racket-langserver"
  in collection directories:
   /Users/zhofu/Library/Racket/8.6/collects
   /Applications/Racket/collects/
   ... [169 additional linked and package directories]
[Info  - 9:49:57 AM] Connection to server got closed. Server will restart.
standard-module-name-resolver: collection not found
  for module path: (lib "racket-langserver")
  collection: "racket-langserver"
  in collection directories:
   /Users/zhofu/Library/Racket/8.6/collects
   /Applications/Racket/collects/
   ... [169 additional linked and package directories]
[Info  - 9:49:57 AM] Connection to server got closed. Server will restart.
standard-module-name-resolver: collection not found
  for module path: (lib "racket-langserver")
  collection: "racket-langserver"
  in collection directories:
   /Users/zhofu/Library/Racket/8.6/collects
   /Applications/Racket/collects/
   ... [169 additional linked and package directories]
[Info  - 9:49:58 AM] Connection to server got closed. Server will restart.
standard-module-name-resolver: collection not found
  for module path: (lib "racket-langserver")
  collection: "racket-langserver"
  in collection directories:
   /Users/zhofu/Library/Racket/8.6/collects
   /Applications/Racket/collects/
   ... [169 additional linked and package directories]
[Error - 9:49:58 AM] Connection to server got closed. Server will not be restarted.
zhoulaifu commented 1 year ago

I realized

raco pkg install racket-langserver

solved the problem. Sorry for the question.