I can't run IRB console in #820 under Windows 2003

After clicking the 'Run IRB console' menu,it raise these errors:

D:\ruby\bin\ruby.exe -e "STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)" -x D:/ruby/bin/irb.bat --prompt simple
-e:1:in `load': D:/ruby/bin/irb.bat:1: syntax error, unexpected tIDENTIFIER, expecting $end (SyntaxError)
    from -e:1

Process finished with exit code 1

and this is my irb.bat file:
@echo off
@if not "%~d0" == "~d0" goto WinNT
\bin\ruby -x "/bin/irb.bat" %1 %2 %3 %4 %5 %6 %7 %8 %9
@goto endofruby
:WinNT
"%~dp0ruby" -x "%~f0" %*
@goto endofruby
#!/bin/ruby
#
#   irb.rb - intaractive ruby
#       $Release Version: 0.9.5 $
#       $Revision: 11708 $
#       $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
#       by Keiju ISHITSUKA(keiju@ruby-lang.org)
#

require "irb"
require "irb/completion"
require "rubygems"
require "active_support"

if __FILE__ == $0
  IRB.start(__FILE__)
else
  # check -e option
  if /^-e$/ =~ $0
    IRB.start(__FILE__)
  else
    IRB.setup(__FILE__)
  end
end
__END__
:endofruby

what's wrong with my problem? Must I modify the irb.bat file?If so,how can I do this?Thanks!

4 comments
Comment actions Permalink

I've created issue for the problem. Feel free to subscribe to http://www.jetbrains.net/jira/browse/RUBY-3538 issue and track it's status

0
Comment actions Permalink

Wu junchen,
Which version of Ruby do you use?

0
Comment actions Permalink

ruby 1.8.7 (2008-05-31 patchlevel 0) [i386-mswin32]

0
Comment actions Permalink

The problem is fixed. Please, see bug comment for workaround until next version of RubyMine is released

0

Please sign in to leave a comment.