rake context menu disabled

I'm using IJ 8.0.1 and the Ruby plugin.  In my rails project, the Rake context menu is greyed out.  What does this mean?  How can I run rake tasks from IJ?

thanks

6 comments
Comment actions Permalink

Hi phil,

This menu may be disabled when you open menu in context without ruby/jruby module. E.g when your right-click in script from Ruby sdk library. For files under module directory this menu will be enabled.

At first in module settings check that "Ruby/JRuby On Rails" facet is attached to your Ruby module(or JRuby facet). Also check that
* in case of Ruby module - Ruby sdk is set for your module
* in case of java module + JRuby facet - Ruby SDK is set in JRuby facet settings.

May be when you created new project/changed ruby sdk rails wasn't able to get list of available rake tasks/generators. To fix it you should run actions:
* Main Menu | Tools |  Ruby On Rails | Reload rake tasks
* Main Menu | Tools |  Ruby On Rails | Reload Generators

0
Comment actions Permalink

I'm seeing the same disabled RSpec context menu item.

My project is pure ruby - no rails - biut I use RSpec for tests.  Do I need to add the Rails Facet for this?

0
Comment actions Permalink

I should also add Main Menu | Tools |  Ruby On Rails | Reload rake tasks is also disabled and it is the only item in the menu,

0
Comment actions Permalink


I'm seeing the same disabled RSpec context menu item.

Jim, what do you mean? As far as I understand your pure ruby project contains rake file with RSpec rake tasks and you expect to see rake context menu for your rake tasks, right?

0
Comment actions Permalink

Exactly, but it appears disabled.

0
Comment actions Permalink

It is known issue, we provide support for rake tasks menu only for Rails projects. It will be fixed in future. And now you can create run configuration for fast executing your Rake task in RubyMine.

0

Please sign in to leave a comment.