Vscode-ruby: Support goto definition for bundled gems ?

Created on 17 Jan 2017  路  11Comments  路  Source: rubyide/vscode-ruby

Your environment

  • vscode-ruby version:
  • Ruby version: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
  • bundler version: 1.12.5
  • VS Code version: 1.8.1
  • Operating System: macOS Sierra

Expected behavior

it would be nice to have some way to make the goto definition work with bundled gems
such as using the bundle list --paths paths to scan references in gems or anything like that.

autocomplete feature-request

Most helpful comment

@wingrunr21 Please reopen, this is a valid feature request.

@stefansedich It doesn't seem to be usable at this moment:

image

image

All 11 comments

Is there a way to navigate to the external gem libraries outside workspace for methods and classes. i.e the gem libraries which are inside ruby installed folders.

I usually have 3 way for this

with Bundler

$ bundle show "GEM_NAME_HERE" 
#=> returns path to the used requested gem + click on it in the vscode terminal

with ruby built in Object#method

p object_that_method_intrests_me.method(:method_name_here).source_location

Ruby Ripper

This is a little more complex, it's a core package that allows you to parse ruby sources, and with that you can search between the tokens that includes the definition representation too.

I have the same problem

Closing for issue cleanup. Apologies if this is still an issue. We are working to improve the core extension experience.

Is there any intention to fix this? I have just run into it, the way I have gotten around it is to set BUNDLE_PATH and GEM_HOME to vendor/bundle and ensure the gems are installed within the workspace root, but this is not ideal.

I think its a really important feature. Is there any plan to open it?

@rajagopalsubhash I had a PR merged a while ago now that should have fixed the issue of stepping into gems installed outside the workspace root: https://github.com/rubyide/vscode-ruby/pull/350

@wingrunr21 Please reopen, this is a valid feature request.

@stefansedich It doesn't seem to be usable at this moment:

image

image

please reopen issue/feature request...

Install solargraph, follow the instruction here

please reopen issue/feature request...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rebornix picture rebornix  路  3Comments

rachsmithcodes picture rachsmithcodes  路  5Comments

Snake-Sanders picture Snake-Sanders  路  4Comments

archfish picture archfish  路  5Comments

atracy picture atracy  路  3Comments