castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
425 stars 23 forks source link

Request textDocument/formatting failed. Message: [Bundler::GemNotFound] Could not find racc-1.5.2 in any of the sources #226

Open cymen opened 3 years ago

cymen commented 3 years ago

I've been getting this error when saving .rb files in VS Code:

[Error - 10:24:00 PM] Request textDocument/formatting failed.
  Message: [Bundler::GemNotFound] Could not find racc-1.5.2 in any of the sources
  Code: -32603 

I tried adding the racc gem with that version to my Gemfile but it didn't seem to help.

johnflux commented 3 years ago

I got the same issue.

castwide commented 3 years ago

I'm not sure what the root cause is, but my first suspicion is that it has something to do with a deep dependency in RuboCop. Solargraph doesn't use racc directly.

What version of the Solargraph gem and what version of Ruby are you using?

You might also be able to get a detailed error message with a stack trace in the developer console (Help -> Toggle Developer Tools).