Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No routes are loaded #51

Open
texpert opened this issue Feb 4, 2021 · 10 comments
Open

No routes are loaded #51

texpert opened this issue Feb 4, 2021 · 10 comments

Comments

@texpert
Copy link

texpert commented Feb 4, 2021

Hello!

I'm on RubyMine 2021.EAP RM-211-5538.3, Rails 4.1

Opening Routes panel, I could see the 'Running 'rake routes'text displayed, and in RubyMines status there is also aUpdating route list for module..., but it ends with a blank list and 'Nothing to show text.

The only log item found is:

2021-02-04 13:42:56,269 [72718478]   WARN - com.intellij.util.xmlb.Binding - no accessors for net.bitpot.railways.routesView.RoutesView$State 
@JayeshB92
Copy link

Yes, It runs and displays 'Nothing to Show'..!!

RubyMine Details:
RubyMine 2020.3.2
Build #RM-203.7148.67, built on January 26, 2021
Runtime version: 11.0.9.1+11-b1145.77 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 725M
Cores: 12
Registry: terminal.buffer.max.lines.count=15000
Non-Bundled Plugins: Gitflow, Railways

Can we have solution for the problem..?

@basgren
Copy link
Owner

basgren commented Feb 15, 2021

Hi.
I tried to use the plugin with the most recent RubyMine (even rebuilt it with the latest IntelliJ planform SDK) and I couldn't reproduce the issue.
Possibly there are some issues with routes parsing. Could you please send me your rails routes output to my email for investigation?

@texpert
Copy link
Author

texpert commented Feb 15, 2021

Hi.
I tried to use the plugin with the most recent RubyMine (even rebuilt it with the latest IntelliJ planform SDK) and I couldn't reproduce the issue.
Possibly there are some issues with routes parsing. Could you please send me your rails routes output to my email for investigation?

Hi, @basgren !

Output sent by email.

@JayeshB92
Copy link

Hi.
I tried to use the plugin with the most recent RubyMine (even rebuilt it with the latest IntelliJ planform SDK) and I couldn't reproduce the issue.
Possibly there are some issues with routes parsing. Could you please send me your rails routes output to my email for investigation?

Hi @basgren,

Console logs PDF sent by email.

However, when checked with other project, It worked. But unfortunately it fails for some projects. Logs for one of them sent by email.

@faelin
Copy link

faelin commented Mar 19, 2021

Bumping this thread, as I am also seeings no routes load.
RubyMine 2020.3.3, Rails 4.2

I am not seeing any errors in the log, and running the routes task via the RubyMine actions menu correctly outputs a Routes list. I will email you what I am seeing.

@TheChessSchool
Copy link

On RubyMine 2021.1 now and still having this problem.

@Azeem838
Copy link

For Rubymine 2021.1, I can confirm the following:

Rails 6.1 - It's working
Rails 4.2 - Not working

@falegk
Copy link

falegk commented May 31, 2021

I think that the problem appeared after this update #48 (#49 PR)
because the rake routes changed to rails routes that does not exist in rails < 5.

So, a possible solution is to check the current rails version or add a select option in the plugin configurations.

@xzile
Copy link

xzile commented Jul 11, 2021

Forked and reverted the change @falegk mentioned to use the rake command instead of rails. Seems to be working for an old rails 4.2 app. https://github.com/xzile/railways/releases/tag/0.8.17-rake

@esparratacus
Copy link

Hi! Any idea when the change is going to be applied. Running a project in rails 4.2 and it seems to be using the rails command instead of rake.
log from railways.cache

Error: Command 'routes' not recognized
Did you mean: `$ rake routes` ?

Usage: rails COMMAND [ARGS]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants