vscode-ruby version: 0.15.0Make sure you have ruby, ruby-debug-ide and ruby-debug-basex19 installed before submitting your issue -- thank you !
Right-clicking or a class or method and selecting go to definition should direct me to the file where the definition exists.
CMD+ selecting a class, module or method should highlight and take you to the definition.
After right-clicking and selecting go to definition, the definition is never found. You get a response saying "no definition found for... "
Hovering over a class, module or method and pressing down on CMD does not highlight the string and you are unable to select it trigger the go to definition.
Open any ruby file (*.rb) and find a method, module or class that you know is defined in another file and attempt to either right-click or CMD+click it and observe the actual behavior mentioned above
Any feedback on this issue?
I think you mistyped:
$ gem install ruby-debug-basex19
ERROR: Could not find a valid gem 'ruby-debug-basex19' (>= 0) in any repository
ERROR: Possible alternatives: ruby-debug-base19, ruby-debug-base19x, ruby-debug-base193, ruby-debug-base, ruby-debug-ide19
This is broken for me as well.
Any updates on this? I am on VS code version 1.19.3 and on vscode-ruby version 0.16.0 and go to definition still does not work!
https://github.com/rubyide/vscode-ruby/pull/248 is a step toward resolving this issue. The next version of the Solargraph extension will include support for going to a definition in any file in the workspace.
Doesn't work in 1.21.1 for me
Or the latest insiders build
It doesn't work for me too! You can install https://github.com/MiguelSavignano/vs-code-ruby-symbols but it works only for file :(
Check which option you're using for ruby.intellisense. If it's solargraph, make sure you have the solargraph gem installed. More information here: https://github.com/castwide/vscode-solargraph
If you use rubyLocate, you might need to configure the include and exclude settings. See this extension's README for configuration.
A related solargraph bug due to character encoding issues is being tracked at https://github.com/castwide/vscode-solargraph/issues/32.
@castwide I use solargraph, I'll wait fixing of related bug that you provided. Thank you
I fixed this by installing the rails vscode extension, which has support for Go to definition
Gem version 0.17.4 is published. It resolves the character encoding bug that caused "go to definition" to stop working in some workspaces.
It still shows 0.17.0 in the Extensions Marketplace.
Sorry, I meant version 0.17.4 of the Solargraph gem. It only applies if you're using solargraph for the ruby.intellisense or ruby.codeCompletion settings.
I updated solargraph to latest version but "go to definition" doesn't work
Closing for issue cleanup. Apologies if this is still an issue. We are working to improve the core extension experience.
Most helpful comment
Any updates on this? I am on VS code version 1.19.3 and on
vscode-rubyversion 0.16.0 and go to definition still does not work!