Ruby file runs in Terminal but not RubyMine

Warning: I am new to Ruby, RubyMine and programming in general

When I run the attached file in Terminal, it runs fine but when I use any of RubyMine's Run commands, I see this error:

-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)

How can I correct this?

1 comment
Comment actions Permalink

First of all make sure that RubyMine uses right Ruby version. Open Preferences -> Languages & Frameworks -> Ruby SDK and Gems. Also the message you provided it is not an error, it is arguments of ruby. Output is that comes after that line


Please sign in to leave a comment.