#246 √ hold
Peter

merb -i (console) autocompletion error

Reported by Peter | April 4th, 2008 @ 09:06 AM

I'm getting error with merb -i auto completion

Version 0.9.2

merb -i

merb.show_ro -> TAB

Error:

irb(main):001:0> merb.sho/usr/local/lib/ruby/1.8/irb/completion.rb:159: can't convert Symbol into String (TypeError)
        from /usr/local/lib/ruby/1.8/irb/completion.rb:152:in `each_object'
        from /usr/local/lib/ruby/1.8/irb/completion.rb:152
        from /usr/local/lib/ruby/1.8/irb/input-method.rb:97:in `call'
        from /usr/local/lib/ruby/1.8/irb/input-method.rb:97:in `readline'
        from /usr/local/lib/ruby/1.8/irb/input-method.rb:97:in `gets'
        from /usr/local/lib/ruby/1.8/irb.rb:132:in `eval_input'
        from /usr/local/lib/ruby/1.8/irb.rb:259:in `signal_status'
        from /usr/local/lib/ruby/1.8/irb.rb:131:in `eval_input'
         ... 18 levels...
        from /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.2/lib/merb-core.rb:29:in `start'
        from /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.2/bin/merb:8
        from /usr/local/bin/merb:19:in `load'
        from /usr/local/bin/merb:19

Comments and changes to this ticket

  • Jonathan Younger (daikini)

    Jonathan Younger (daikini) April 4th, 2008 @ 08:36 PM

    I've been unable to reproduce this error in 2 different installs of Merb (OS X and Linux) with the latest merb gems (0.9.2).

    Perhaps there is something in your ~/.irbrc file that is being loaded that causes this error?

  • Peter

    Peter April 6th, 2008 @ 08:03 AM

    Hi Jonathan,

    Thanks for your reply, I don't have that file in my mac. This is happening in any merb app that I add this in init.rb

    require 'merb-action-args'
    or
    require 'merb-more'
    

    Any other suggestion?

    Thanks,

    Peter.

  • Jonathan Younger (daikini)

    Jonathan Younger (daikini) April 7th, 2008 @ 05:06 PM

    Hi Peter,

    I've been able to reproduce your error by requiring 'merb-action-args'. I'll see about getting it fixed when I have some free time.

    -Jonathan

  • Jonathan Younger (daikini)

    Jonathan Younger (daikini) April 7th, 2008 @ 06:12 PM

    I think I've traced the error to either ruby2ruby or to Ruby's own completion.rb library. Not sure which is the culprit. merb-action-args uses ruby2ruby which is why you see the error when requiring that library or merb-more (which includes merb-action-args).

    I'm not exactly sure what the fix is since I'm guessing it isn't a merb specific issue.

  • Ezra Zygmuntowicz

    Ezra Zygmuntowicz April 18th, 2008 @ 12:42 AM

    • → State changed from “new” to “hold”

    Yeah this seems to be a ruby2ruby problem , I'll put this ticket on hold until i can get an answer form them.

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »