Open Syntaf opened 4 years ago
Do you still get this error with gem 0.39.14? I haven't been able to reproduce it.
@castwide I tried updating to 0.39.14 but no luck it seems.
After updating, I ran Solargraph: Rebuild all Gem Documenation
but still had the issue, so I went into the terminal and ran solargraph bundle
but that also didn't seem to work.
I thought maybe my rails.rb
file was the issue so I also removed that, but it still seems to error trying to load solargraph:/document?query%3DActiveRecord%3A%3ABase
I did notice these errors on my ruby language server
output tab when I visited the definition file (i.e. /usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/base.rb
)
[Error - 10:33:46 PM] Request textDocument/definition failed.
Message: [Solargraph::Parser::SyntaxError] syntax error, unexpected `do'
Code: -32603
[Error - 10:33:46 PM] Request textDocument/hover failed.
Message: [Solargraph::Parser::SyntaxError] syntax error, unexpected `do'
Code: -32603
[Error - 10:33:47 PM] Request textDocument/hover failed.
Message: [Solargraph::Parser::SyntaxError] syntax error, unexpected `in'
Code: -32603
Seems like something inside this file is causing the language server to have issues maybe
I'm running the latest solargraph gem version (0.39.13) and noticed the language server responds with an error when trying to query for the
ActiveRecord::Base
document:Any ideas? Here's my
.solargraph.yml
file:And here's my
rails.rb
file: