Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Support goto definition for bundled gems ? #111

Closed
adamluzsi opened this issue Jan 17, 2017 · 11 comments
Closed

Support goto definition for bundled gems ? #111

adamluzsi opened this issue Jan 17, 2017 · 11 comments
Labels
autocomplete feature-request Adds currently unsupported functionality

Comments

@adamluzsi
Copy link

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.

@rebornix rebornix added the feature-request Adds currently unsupported functionality label Aug 13, 2017
@pnagaraja1
Copy link

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.

@adamluzsi
Copy link
Author

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.

@zouchao
Copy link

zouchao commented Dec 27, 2017

I have the same problem

@wingrunr21
Copy link
Collaborator

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

@stefansedich
Copy link
Contributor

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.

@rajagopalsubhash
Copy link

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

@stefansedich
Copy link
Contributor

@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: #350

@Nowaker
Copy link

Nowaker commented Jun 28, 2019

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

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

image

image

@batamire
Copy link

please reopen issue/feature request...

@ndan
Copy link

ndan commented Nov 22, 2019

Install solargraph, follow the instruction here

@loohawe
Copy link

loohawe commented Jan 21, 2020

please reopen issue/feature request...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autocomplete feature-request Adds currently unsupported functionality
Projects
None yet
Development

No branches or pull requests