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

0

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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


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
Avatar
Permanently deleted user

Exactly, but it appears disabled.

0

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

请先登录再写评论。