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

Integrate with vim(vim-lsp) #21

Open
gn0uchat opened this issue Oct 4, 2020 · 4 comments
Open

Integrate with vim(vim-lsp) #21

gn0uchat opened this issue Oct 4, 2020 · 4 comments

Comments

@gn0uchat
Copy link

gn0uchat commented Oct 4, 2020

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

@jeapostrophe
Copy link
Owner

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

@Lazerbeak12345
Copy link

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

@Lazerbeak12345
Copy link

Lazerbeak12345 commented Oct 25, 2020

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

@jeapostrophe
Copy link
Owner

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.

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

3 participants