castwide / vscode-solargraph

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

Request textDocument/definition failed when clicking on require #273

Closed jirutka closed 11 months ago

jirutka commented 12 months ago

I’m getting the following error when trying to Ctrl + click on a require

[Error - 1:34:57 PM] Request textDocument/definition failed.
  Message: [NoMethodError] undefined method `filename' for ["/home/user/project/lib"]:Array

          uri: file_to_uri(dloc.filename),
                               ^^^^^^^^^
  Code: -32603 

castwide commented 12 months ago

This is an issue with the Solargraph gem that was reported in https://github.com/castwide/solargraph/issues/675. The fix will be included in this week's release.

castwide commented 11 months ago

The fix is released in gem v0.50.0. Please refer to https://github.com/castwide/solargraph/issues/675 for more information.