ycm-core / lsp-examples

Use any language server with YouCompleteMe.
https://ycm-core.github.io/YouCompleteMe
Apache License 2.0
82 stars 26 forks source link

add racket lsp config for ycm #39

Closed kanitkameh closed 11 months ago

kanitkameh commented 11 months ago

Requires racket to be installed and the raco command to be present on the system so the lsp can be installed.


This change is Reviewable

kanitkameh commented 11 months ago

The git was a mistake because I copied code from other lsp install examples. I changed the code to use subprocess.check_call however I catch the exception thrown by it because when the package is already installed it returns 1 as return code.

kanitkameh commented 11 months ago

Good news! After reading the raco documentation I found that you can ignore already installed packages thus return status code 0. Everything works as expected now. I also updated the README.md to include Racket.

bstaletic commented 11 months ago

Thanks for the pull request.