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 fails when gems contain a rbi directory #2732

Closed
donaldong opened this issue Mar 2, 2020 · 1 comment
Closed

LSP fails when gems contain a rbi directory #2732

donaldong opened this issue Mar 2, 2020 · 1 comment
Labels
bug Something isn't working IDE Relating to Sorbet's LSP server or VS Code extension

Comments

@donaldong
Copy link
Contributor

donaldong commented Mar 2, 2020

Input

With Gemfile:

gem 'sorbet'
gem 'sorbet-runtime
gem 'sorbet-coerce', '0.2.3'
bundle exec srb tc --lsp 

Observed output

Sorbet's language server requires a single input directory.

chanzuckerberg/sorbet-coerce#38

Expected behavior

No errors.

For people running into the same issue, here is the workaround we currently use:

$(bundle show sorbet-static)/libexec/sorbet --lsp
@donaldong donaldong added bug Something isn't working unconfirmed This issue has not yet been confirmed by the Sorbet team labels Mar 2, 2020
phansch added a commit to phansch/dotfiles that referenced this issue Mar 7, 2020
This explains the high CPU usage of coc.vim. It was constantly trying to
start the sorbet LSP, but failed.

This can be reverted when sorbet/sorbet#2732
is resolved.
@elliottt elliottt removed the unconfirmed This issue has not yet been confirmed by the Sorbet team label Mar 15, 2020
@DarkDimius DarkDimius added the IDE Relating to Sorbet's LSP server or VS Code extension label Apr 2, 2020
@froydnj
Copy link
Contributor

froydnj commented Jan 31, 2022

This is a duplicate of #2496.

@froydnj froydnj closed this as completed Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working IDE Relating to Sorbet's LSP server or VS Code extension
Projects
None yet
Development

No branches or pull requests

4 participants