vscode-solargraph icon indicating copy to clipboard operation
vscode-solargraph copied to clipboard

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

Open cymen opened this issue 4 years ago • 2 comments

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.

cymen avatar Jul 28 '21 02:07 cymen

I got the same issue.

johnflux avatar Aug 19 '21 05:08 johnflux

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).

castwide avatar Sep 19 '21 17:09 castwide