ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

Launcher mode issues

Open vinistock opened this issue 1 year ago • 8 comments

We're experimenting with a new launching mechanism that is aimed to allow the Ruby LSP to be more resilient to Bundler related issues. The rollout is currently at 5% of users.

If you encounter any issues, please report it here, so that we can address it and continue the gradual rollout.

If necessary, you can turn off the launcher mode temporarily by adding this to the VS Code's JSON settings:

{
  "rubyLsp.featureFlags": {
    "launcher": false,
  }
}

vinistock avatar Dec 12 '24 18:12 vinistock

@ske7 the bug you reported regarding launcher mode on Windows should be fixed in https://github.com/Shopify/ruby-lsp/pull/2979.

vinistock avatar Dec 12 '24 19:12 vinistock

Since it isn't documented here yet (but it is mentioned issue #2936), I'm noting that my LSP failed to start up with this error:

2024-12-18 15:30:04.182 [info] (dashboard) <internal:/Users/naveg/.asdf/installs/ruby/3.1.6/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- ruby_lsp/load_sorbet (LoadError)

The fix suggested in the issue description worked as advertised.

naveg avatar Dec 18 '24 23:12 naveg

@naveg when you see that error, is there anything else printed to the output tab? Any Bundler installation or setup issues?

vinistock avatar Jan 02 '25 21:01 vinistock

@vinistock I realized that my lsp was stuck on an old version because rbs was being pinned at an old version due to another gem. After forcing a ruby-lsp upgrade, everything works.

naveg avatar Jan 14 '25 06:01 naveg

Could https://github.com/Shopify/ruby-lsp/issues/3196 be related to launcher mode?

siebertm avatar Feb 21 '25 12:02 siebertm

This issue is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar Apr 22 '25 12:04 github-actions[bot]

This issue is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar Jun 22 '25 12:06 github-actions[bot]

This issue is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar Aug 23 '25 12:08 github-actions[bot]