Closed ijdickinson closed 5 years ago
Do you have solargraph.useBundler
set to true? That would cause the error if you open a folder that doesn't have a Gemfile. (Paradoxically, it might work if you open an individual file instead of a folder.)
@castwide That setting was initially off, but I did try with it set to true
. It didn't change the behaviour I was seeing.
Okay. I was able to reproduce the error by opening a file that contains either require 'bundler/require'
or Bundler.require
. That makes the server look for gem dependencies to add to the map. If it doesn't find a Gemfile, you get the error.
I'll release a patch later today.
Great, thanks @castwide
Fix pushed in gem v0.34.1.
Confirmed fixed. Thanks for the quick response!
Solagraph has been working fine for me in VsCode, up to this morning when it installed the 0.34.0 update. Now, I get an error message
Couldn't start client Ruby Language Server
, and console output:Developer tools has:
Solargaph does seem to be installed OK, and working from the command line:
Manually reverting to Solargraph 0.33.0 (and disabling the version check in VsCode settings) has got me back to a working version.
I'm running Ubuntu 19.04 with Ruby 2.5.5.