railways icon indicating copy to clipboard operation
railways copied to clipboard

No routes are loaded

Open texpert opened this issue 4 years ago • 10 comments

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 

texpert avatar Feb 04 '21 11:02 texpert

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..?

JayeshB92 avatar Feb 11 '21 08:02 JayeshB92

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?

basgren avatar Feb 15 '21 09:02 basgren

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.

texpert avatar Feb 15 '21 14:02 texpert

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.

JayeshB92 avatar Feb 15 '21 15:02 JayeshB92

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.

faelin avatar Mar 19 '21 16:03 faelin

On RubyMine 2021.1 now and still having this problem.

TheChessSchool avatar Apr 22 '21 15:04 TheChessSchool

For Rubymine 2021.1, I can confirm the following:

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

Azeem838 avatar Apr 28 '21 09:04 Azeem838

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.

falegk avatar May 31 '21 14:05 falegk

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

xzile avatar Jul 11 '21 03:07 xzile

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]

esparratacus avatar Apr 13 '22 01:04 esparratacus