Friday, 4 October 2013

__rvm_date syntax error: unexpected end of file

When running rspec tests inside RubyMine, you may see something like this:

 sh: __rvm_date: line 1: syntax error: unexpected end of file
 sh: error importing function definition for `__rvm_date'

What worked for me is to shutdown RubyMine and edit the

 /Applications/RubyMine.app/bin/idea.properties

file and add:

 rubymine.console.environment=disabled

To the end of it.

Apparently there is a bug for it at:

 http://youtrack.jetbrains.com/issue/RUBY-14308

Something to do with loading rvm through shell inside RubyMine.

No comments:

Post a Comment