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

`with_server` helper should not use `stubs` for the `stub_no_typechecker` option

Open st0012 opened this issue 1 year ago • 1 comments

Description

stubs comes from Mocha, which is not a dependency of ruby-lsp. So if the addon doesn't use Mocha but sets stub_no_typechecker to true, this line will cause NoMethodError:

     NoMethodError:
       undefined method `stubs' for an instance of RubyLsp::GlobalState

st0012 avatar Jun 15 '24 11:06 st0012

We could probably refactor so that it's an option passed to RubyLsp::Server.new, then no stubbing would be needed.

andyw8 avatar Jun 17 '24 13:06 andyw8

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

github-actions[bot] avatar Aug 17 '24 12:08 github-actions[bot]