Errors in rubymine console running cucumber tests after updating to latest rvm / ruby

I just updated rvm and ruby to the latest stable version (2.0.0p247).

When I run cucumber tests in rubymine 5.4 I see the following messages in the output console. I didn't see the "sh: __rvm_date" messages before the update.

Anyone have any ideas what's going on here?

I think it's related to the teamcity stuff as I don't see these messages when I run from the command line. We're not using teamcity so it would be great to be able to turn off that formatting- does anyone know a way to do that?

Thanks,
Nick



##teamcity[testSuiteStarted name = 'Scenario: BlahBlah' locationHint = 'file:///Blah.feature:4' timestamp = '2013-09-10T10:07:12.503+0100']

##teamcity[customProgressStatus type = 'testStarted' timestamp = '2013-09-10T10:07:12.503+0100']
sh: __rvm_date: line 1: syntax error: unexpected end of file
sh: error importing function definition for `__rvm_date'
sh: __rvm_date: line 1: syntax error: unexpected end of file
sh: error importing function definition for `__rvm_date'
sh: __rvm_date: line 1: syntax error: unexpected end of file
sh: error importing function definition for `__rvm_date'
sh: __rvm_date: line 1: syntax error: unexpected end of file
sh: error importing function definition for `__rvm_date'
sh: __rvm_date: line 1: syntax error: unexpected end of file
sh: error importing function definition for `__rvm_date'
sh: __rvm_date: line 1: syntax error: unexpected end of file
sh: error importing function definition for `__rvm_date'

sh: __rvm_date: line 1: syntax error: unexpected end of file
### Starting on simulator

16 comments

I'd say that you either have some problem with rvm's installation or you need to restart RM to get updated version of rvm in its shell.

Let me know if this help.

Regards, Oleg.

0

Thanks for the input Oleg.

I've restarted RM and I get the same messages.

As for rvm's installation- I didn't have any issues/errors installing rvm, and it seems to be working ok for selecting ruby version etc.

Any other ideas?

0

OK- so I re-traced my steps and rolled back to an old version of rvm. Seems as though this error appeared with rvm version 1.22.4 (I don't see any such errors with 1.22.3). So looks to be a problem with rvm >v1.22.4

0

I've just updated rvm to the latest stable (1.22.6) and tried to run cucumber test from RM 5.4.3.2.1 and everything works fine on my Linux :(

What exact version of RM are you using? What os? How are you executing cucumber (run one file, all features in folder, or  rake task)?
Also does the problem reproducible for any project?  Could you please provide test project which demonstrates the problem.

Regards, Oleg.

0

I am on RM 5.4.3.2.1,
OS: mac osx 10.8.4
I am executing cucumber using run one file (and all features in folder)
Seems to be any project. I can repro using the calabash simple example project:
https://github.com/calabash/calabash-ios-example

0

I will try to reproduce the problem on Mac tomorrow.

0

We have tried this today on Mac (with one of our cucumber project) and everything works fine.
The project you have pointed out is not a ruby project thus we were unable to use it :(
If you have some ruby project which reproduce the problem please provide it.

Regards, Oleg.

0

Nick, I have the same issue and setup.  I got past this issue by typing this onto the terminal window: rvm reinstall ruby-2.0.0-p247.

0

Thank you for information.  Hope this will help to Nick.

Regards, Oleg.

0

Thanks- I tried this but it didn't help unfortunately.

Just to clarify the steps:
- rvm get stable
- rvm reinstall ruby-2.0.0-p247

I end up with the same issue. I've rolled back rvm again to 1.22.3.

Cheers,
Nick

0

Hi Oleg,

Sorry- I don't have a ruby project that I can share. Do you have any simple, sample projects out there on github that would be easy to set up and test? Thanks

0

Hi,

here is a simple project with cucumber features.

Oleg.



Attachment(s):
cucumber-test-12124.zip
0

Thanks for this. I cannot repro with that project- so must be something calabash-cucumber specific? Weird that I only see those messages in rubymine and not when I run cucumber from the command line....

0

It might be our formatter which calls something but w/o reproducible test I cannot help you :(

Oleg.

0

Today the errors came back for some reason so we are in the same boat again.  Think this might be relevant?: http://developer.appcelerator.com/question/157074/cant-get-titanium-up-and-running-for-android.  I am going to roll back my version as well.

0

I'm also having this problem with the following rvm setup:

  system:
    uname:       "Darwin klee.lan 12.4.0 Darwin Kernel Version 12.4.0: Wed May  1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64"
    system:      "osx/10.8/x86_64"
    bash:        "/usr/local/bin/bash => GNU bash, version 4.2.42(2)-release (i386-apple-darwin12.2.0)"
    zsh:         "/bin/zsh => zsh 4.3.11 (i386-apple-darwin12.0)"

  rvm:
    version:      "rvm 1.22.13 (latest) by Wayne E. Seguin, Michal Papis [https://rvm.io/]"
    updated:      "3 seconds ago"
    path:         "/Users/nikosd/.rvm"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p392"
    date:         "2013-02-22"
    platform:     "x86_64-darwin12.2.0"
    patchlevel:   "2013-02-22 revision 39386"
    full_version: "ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2.0]"

0

Please sign in to leave a comment.