RSpec and Cucumber are not working in 3.2 RC

Hi,

I have installed 3.2 RC and when I try to run rspec or cucumber I got error message saying:

RSpec support is disabled because it is not acitvated

and

Cucumber support is disabled because 'cucumber' gem or Cucumber Rails plugin is missing'

Both cucumber and rspec gems are installed

BR

Ulf

14 comments
Comment actions Permalink

same issue on ubuntu 11.04, rubymine 3.2, rvm, rspec 2.6.0, ruby 1.9.2

0
Comment actions Permalink

+1 here


I even downloaded romans sample app, which isn't working either.

0
Comment actions Permalink

+1

Same here. 3.2.1.

Installed on OSX.  Using RVM.

ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin10.7.0]

cucumber (1.0.0, 0.10.0)


No luck after installed cucumber via RM:

2011-07-08 11:20:57,110 [ 523248]   INFO - lugins.ruby.gem.GemInstallUtil - Installed gem: cucumber (1.0.0)


Also - cucumber (1.0.0., 0.10.0) correctly is displayed in the Ruby SDK and Gems project settings.

One odd thing: there's three SDK's.  All three are named the same, except the last two have "[global]" suffixed.  The [global] SDK's only have rake installed gem.  Removing the [global] and rerunning does not fix the issue.

Also - I can choose the cucumber version in my Run configuration, default/1.0.0/0.10.0.  No joy.

0
Comment actions Permalink

LOL solution:

In Run/Debug Configurations' Ruby SDK radio-button area manually set "Use other SDK and 'cucumber' gem: ... then select your SDK.

Some kind of bug in the "Use project SDK: RVM: ruby-1.8.7-p352"...!

:p  Not my fault!!!

0
Comment actions Permalink

this solution is not working for me. does it have to be 1.8.*? I only have 1.9.2 installed right now.

0
Comment actions Permalink

Dunno - I only have 1.8 :)

0
Comment actions Permalink

to answer my own question just installed 1.8.7 with rvm and i still have the same issue.  are using a non-rvm ruby?

0
Comment actions Permalink

another work around, of course, is to use a rake task

0
Comment actions Permalink

Good to try it though.

I'm using RVM  /Users/nick/.rvm/gems/ruby-1.8.7-p352/

There's no indicator of the failure cause, to my eyes, in the RubyMine log file.Screen shot 2011-07-08 at 1.22.19 PM.png

0
Comment actions Permalink

That helped me too, if I select Use other SDK... and select the same SDK then it works

0
Comment actions Permalink

Do you use bundler? Could you attach a screenshot of "Libraries" node in Project View? Bundler & Gem file is highly desired for RubyMine 3.2 because we dropped our "attach" gems dialog and now RubyMine considers gems mentioned in gemfile. There is support for rails 2.3.x and plain ruby applications. In rails 2.3.x rubymine parses environment rb in plain ruby project - analyzes "gem 'foo'" commands. But bundler+gemfile works more stable and predictable.

0
Comment actions Permalink

No, I am not using bundler

But when I tried with bundler and created a gemfile and added rspec then it worked for me

0
Comment actions Permalink

My workaround (radio-button select the SDK) doesn't improve / fix how the right-click Action menu fails to execute the currently focused file, btw.

Are there more logs I can provide?  Should this be logged in a bug database?

0

Please sign in to leave a comment.