RubyMine Go To Definition isn't working
Asked Answered
E

3

9

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?

Enlarger answered 21/8, 2013 at 23:28 Comment(1)
Have you tried to reproduce your issue in RubyMine EAP?Rocketeer
C
18

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.

Centrifugate answered 11/10, 2013 at 8:38 Comment(2)
This also fixed a problem with Go To File, on version 6.3. Thanks!Catchpole
Fixed the problem with Go To File on version 7.0 for me too.Generatrix
R
0

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)

Robrobaina answered 24/6, 2020 at 15:36 Comment(0)
E
0

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.

Egor answered 25/10, 2021 at 6:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.