vscode-solargraph
vscode-solargraph copied to clipboard
Request textDocument/formatting failed. Message: [Bundler::GemNotFound] Could not find racc-1.5.2 in any of the sources
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.
I got the same issue.
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).