Reputation: 2780
I'm having trouble with Rubymine in that I cannot Go to Declaration of files that I once was able to go to before (these aren't dynamic classes or methods). I'm not sure if it's related to the fact that I have some scopes for file coloring or for some other reason, but this feature doesn't seem to be working properly.
The version of RubyMine is 5.4.3.2.1 on Windows. Does anyone know the problem or a solution?
Upvotes: 9
Views: 3648
Reputation: 531
My RubyMine was just pointing at the wrong Ruby version where the gems weren't installed. I fixed this by going to Preferences > Languages and Frameworks > Ruby SDK and Gems
and selecting the Ruby version I bundled my Rails app with.
Upvotes: 1
Reputation: 41
I had a similar issue after updating to 2020.1.2. My project root was removed for some reason. I had to re-add it by doing the below. This was not very obvious...
RubyMine > Preferences > Project Structure > + Add Content Root (path to your project)
Upvotes: 0
Reputation: 1057
Did you try?
File | Invalidate Caches... > Invalidate and Restart
I had the same problem in the same version, but after invalidating the caches "Go to Declaration" works again.
Upvotes: 18