Unable to reload rake tasks

It's actually Idea 15 with the Ruby plugin.  I have a Ruby on Rails project that used to work fine (in the sense it loads into the editor and I can run it.)  Now, it still works but all the rake tasks have disappeared so that's stymied running things like db:migrate etc.  All I can do when I want to run a rake task is [reload rake tasks lists].  If i do that, I get an error:

2015-12-07 18:15:42,005 [69875808]   WARN - ugins.ruby.tasks.rake.RakeUtil - rake aborted!
LoadError: cannot load such file -- action_view/tasks/dependencies.rake
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `block in load'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in `load'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/actionview-4.2.5/lib/action_view/railtie.rb:46:in `block in <class:Railtie>'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/railtie.rb:237:in `instance_exec'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/railtie.rb:237:in `block in run_tasks_blocks'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/railtie.rb:245:in `each'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/railtie.rb:245:in `each_registered_block'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/railtie.rb:237:in `run_tasks_blocks'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/application.rb:451:in `block in run_tasks_blocks'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/engine/railties.rb:13:in `each'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/engine/railties.rb:13:in `each'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/application.rb:451:in `run_tasks_blocks'
/Users/Andrew/.rvm/gems/ruby-2.2.3@global/gems/railties-4.2.5/lib/rails/engine.rb:453:in `load_tasks'

[..snip..]

It's just this project; another one I have loads and builds the rake task list fine.

Thanks
9 comments
Comment actions Permalink

Andrew, could you please check how it goes with the latest IDEA EAP and Ruby plugin (version 8.0.0.20151202)? In addition what Ruby SDK is set and what language level is shown? (this problem might be related to another one mentioned by you in a different thread)

0
Comment actions Permalink

Could be Olga.  I've responded on that other thread - basically, the language level reported for 2.2.3 is 2.2 not 2.0.0.  But this problem only occurs on one project that actually used to be fine.  All the others that I've created have loaded rake tasks just fine, but for some reason this one has started failing with that error.

The ruby sdk in use is rvm: ruby-2.2.3 language level 2.2  (as are all the projects I've got created at the moment.)

Regards

Andrew

0
Comment actions Permalink

Downloaded and installed EAP but there is no difference.

Regards

0
Comment actions Permalink

Hi Andrew,

since it's the only project with such a problem, would it be possible for you to share it?

0
Comment actions Permalink

I can do - what's the best way to do that for you so that you get everything you need?

Since installing the EAP version and the Ruby plugin my "stable" release version no longer recognises any Ruby project.  Is it as simple as dragging the IDEA 15 EAP to trash and re-installing the plugin in the stable version to fix?

0
Comment actions Permalink

Hi Olga,

no reply since Thursday and I'm a bit frustrated with this.

  1. I installed EAP and the newer version of Ruby plugin but now my stable production version of IDEA won't work for me because it's incompatible with the Ruby plugin.  How do I backout the EAP version and re-install a version of the plugin that will work on the production version?
  2. I've lost the will to live on the other problem with Rake as I'm making no progress on it at all and it's not important enough (it was only a simple test project.)  It's probably something I've done but I've no idea what because the error messages don't help narrow the problem down at all.  Also, it does seem that there are a number of issues with the Ruby plugin so who knows, maybe this is just another one.


Regards,

A

0
Comment actions Permalink

Hi Andrew,

please excuse me for such a delay! So, regarding your project, you can attach it here or send me it to the support (since you have a ticket opened there as well).

I installed EAP and the newer version of Ruby plugin but now my stable production version of IDEA won't work for me because it's incompatible with the Ruby plugin.  How do I backout the EAP version and re-install a version of the plugin that will work on the production version?


Could you please specify what IDEA and Ruby plugins versions are currently installed (EAP and your production version). The last released IDEA version is 15.0.2 (build 143.1184), which is compatible with Ruby plugin 8.0.0.20151202 (https://plugins.jetbrains.com/plugin/1293?pr=)

0
Comment actions Permalink

The production stable version I have installed is:
IDEA 15.0.1  Build: IU-143.382;  Ruby plugin is version: 8.0.0.20151202   [which seems to have been installed when I did so for the EAP version of IDEA]

The EAP version is:
IDEA 15.0.2  Build: IU-143.1183;  Ruby plugin is version: 8.0.0.20151202.

Both these IDEA installs are reporting a new version available.  With the Stable Version it reports that the new version is 15.0.2 RC build 143.382 (so just a release candidate) and if I click on Download it takes me to the EAP page where what is available is 15.0.2 build 143.1184

What I'd prefer is to work on the stable version and wait for the officially released version to come out before upgrading, including the plugins.  But since downloading the EAP version and then installing the updated Ruby plugin that doesn't seem possible as it isn't compatible.


>>>  Ok I've got it now.  Ignoring what the above is saying and just downloading from the EAP update takes me to the official Download page which overwrites the old stable version and everything is ok.

I've uploaded the RoR project as a zip on the opened ticket.

thanks

Andrew

Message was edited by: Andrew Johnson.  Finally worked out to ignore what the dialogs are telling me!

0
Comment actions Permalink

I upgraded to RubyMine 8 soon after release and have not been able to run a rake task in the usual manner since.

Whether the task selector is opened via the "Run Rake Task" menu item or the Alt+R shortcut, the only entry shown is "[Reload rake tasks list]". Selecting this causes a "Generating rake tasks hierarchy" process to run, but the list is not updated. Rake tasks will run correctly if entered manually using the console or via a Run Configuration, and I have verified that the "rake -T" command is working.

I wasn't sure if it was just me, however my colleague also upgraded to RubyMine 8 yesterday and is experiencing the same problem. Rake tasks are a huge part of Rails development and I'm surprised that this has been left broken for 2 months now.

We're both using OS X 10.11, and I've experienced the problem on RubyMine versions 8.0.0 to 8.0.3 inclusive.

0

Please sign in to leave a comment.