jirb problem w/ .irb_history
----------------------------
Key: JRUBY-960
URL: http://jira.codehaus.org/browse/JRUBY-960
Project: JRuby
Issue Type: Bug
Components: Application Error
Affects Versions: JRuby 1.0.0RC2
Environment: $ uname -a
Linux strider 2.6.21 #1 PREEMPT Fri May 18 08:29:34 CEST 2007 i686 GNU/Linux
$ java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
Reporter: Thomas Quas
jirb won't start if there is an existing ~/.irb_history, either created by Ruby
irb or jirb in a previous session. Only after deleting this file, jirb will
come up. The message I get is
$ jirb
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:78:in
`method_missing': undefined method `<<' for #<Object:0xda18ac> or inaccessible
method `<<' for #<Object:0xda18ac> (NoMethodError)
from
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:78:in
`load_history'
from
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:70:in `each'
from
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:79:in
`load_history'
from
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:70:in `open'
from
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:80:in
`load_history'
from
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:70:in
`extended'
from
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:24:in
`init_save_history'
from
/home/tom/projects/jruby-svn/lib/ruby/1.8/irb/ext/save-history.rb:37:in
`save_history='
from (eval):5:in `send'
from (eval):5:in `save_history='
from /home/tom/projects/jruby-svn/lib/ruby/1.8/irb/context.rb:87:in
`initialize'
from /home/tom/projects/jruby-svn/lib/ruby/1.8/irb.rb:92:in `new'
from /home/tom/projects/jruby-svn/lib/ruby/1.8/irb.rb:92:in `initialize'
from /home/tom/projects/jruby-svn/lib/ruby/1.8/irb.rb:59:in `new'
from /home/tom/projects/jruby-svn/lib/ruby/1.8/irb.rb:59:in `start'
from :-1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email