Rubymine7 may or may not be able to find a routing declaration to go

Rubymine7 may or may not be able to find a routing declaration to go.

Before, I think rubymine7(or 6?) could find a routing declaration when I point xxx_path(rails routing) literal and use Navigate > Declaration.
But now, rubymine can not find...

How can I fix it?

7 comments
Comment actions Permalink

I think render partial might have same ploblem.

```
= render partial: 'aaa/bbb' # Before, I think I could find declaration to go (aaa.html.erb)
```

0
Comment actions Permalink

Hi,

could you please try to invalidate caches File|Invalidate Caches, if this will not work please provide  RubyMine's logs (Help|Show Log in ...)

Regards, Oleg.

0
Comment actions Permalink
I tried to invalidate caches and restart. But that won't change anything.
I attach a log file.

I tried above procedure on this rails application.
https://github.com/ts-3156/rails_base


Attachment(s):
idea.log.zip
0
Comment actions Permalink

Hi,

do you mean that you can not go to "form" at line https://github.com/ts-3156/rails_base/blob/master/app/views/users/new.html.haml#L4?
If so, could you please file ticket with the information in our tracker (https://youtrack.jetbrains.com/issues/RUBY)

Regards, Oleg.

0
Comment actions Permalink

>> do you mean that you can not go to "form" at line https://github.com/ts-3156/rails_base/blob/master/app/views/users/new.html.haml#L4?

Yes. On my one pc rubymine can find declaration but on my another pc rubymine cannot find it.
I try to find the cause of it and I might find it.

I think when I mark vendor/bundle as excluded, rubymine cannot find declaration of render partial: 'form'.
Is the directory important for rubymine to analyze code syntax?

Suppose it' correct, I have another question.

The reason why I mark the directory as excluded is to filter files when using Navigate > File.
If I don't mark the directory, Navigate > File show me too many files like attached screenshot.

What would be the best thing to avoid this too many file problem?



Attachment(s):
screenshot.png
0
Comment actions Permalink

Well, yes, if you keep all your gems in vendor/bundle then you should not exclude it.
The problem with go to file you have is similar to https://youtrack.jetbrains.com/issue/RUBY-14701.

Regargds, Oleg.

0
Comment actions Permalink

I see. Thank you for replying.

I am looking forward to be implemented this.
https://youtrack.jetbrains.com/issue/RUBY-14701

0

Please sign in to leave a comment.