basgren / railways

A plugin for RubyMine and IntelliJ IDEA Ultimate that adds a panel with routes of Ruby on Rails application.
MIT License
46 stars 18 forks source link

No routes are loaded #51

Open texpert opened 3 years ago

texpert commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

On RubyMine 2021.1 now and still having this problem.

Azeem838 commented 3 years ago

For Rubymine 2021.1, I can confirm the following:

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

falegk commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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]