racket-langserver icon indicating copy to clipboard operation
racket-langserver copied to clipboard

Integrate with vim(vim-lsp)

Open gn0uchat opened this issue 5 years ago • 4 comments

Want to integrated with vim/vim-lsp. I have no idea how to use this package. May I ask where to start?

gn0uchat avatar Oct 04 '20 15:10 gn0uchat

You install the package with raco pkg, then set racket -l racket-langserver as the LSP command.

jeapostrophe avatar Oct 04 '20 17:10 jeapostrophe

This command is also useful for nvim-lspconfig perhaps this command could be documented in the readme?

Lazerbeak12345 avatar Oct 25 '20 21:10 Lazerbeak12345

Interesting note: when I run that command in my terminal, here's what I get:

/usr/racket/share/pkgs/gui-lib/framework/private/preferences.rkt:581:19: string-
constant: autoload-automatically-reload is not a known string constant
  in: (string-constant autoload-automatically-reload)
  location...:
   /usr/racket/share/pkgs/gui-lib/framework/private/preferences.rkt:581:19
  context...:
   do-raise-syntax-error
   /usr/racket/share/pkgs/string-constants-lib/string-constants/string-constant.
rkt:228:0: string-constant
   apply-transformer-in-context
   apply-transformer52
   dispatch-transformer41
   for-loop
   [repeats 2 more times]
   loop
   [repeats 3 more times]
   finish-expanding-body33
   lambda-clause-expander
   for-loop
   [repeats 1 more time]
   finish-bodys
   lambda-clause-expander
   loop
   ...

I believe this is preventing it from working at all. Should I make a seperate issue for this? (I'd be happy to) Or perhaps did I miss a configuration step?

EDIT: I was on racket 7.5 On racket 7.8 it's fine

Lazerbeak12345 avatar Oct 25 '20 22:10 Lazerbeak12345

That problem is a mismatch between the string-constants package and the gui-lib package. My guess is that on your Racket 7.5, just one of them got updated, but in your Racket 7.8, they were aligned.

jeapostrophe avatar Oct 26 '20 13:10 jeapostrophe