Project

General

Profile

Actions

Bug #25431

closed

Rail console runtime exception `NoMethodError: undefined method 'display_width' for "false":String`

Added by Peter Lehwess over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development tools
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Trying to perform any command on the rails console causes the following exception to be thrown:

NoMethodError: undefined method `display_width' for "false":String
Did you mean?  display
  from ~/.rvm/gems/ruby-2.4.1/gems/hirb-unicode-steakknife-0.0.8/lib/hirb/unicode/string_util.rb:5:in `size'
  from ~/.rvm/gems/ruby-2.4.1/gems/hirb-0.7.3/lib/hirb/pager.rb:89:in `activated_by?'
  from ~/.rvm/gems/ruby-2.4.1/gems/hirb-0.7.3/lib/hirb/view.rb:219:in `page_output'
  from ~/.rvm/gems/ruby-2.4.1/gems/hirb-0.7.3/lib/hirb/view.rb:201:in `view_or_page_output'
  from ~/.rvm/gems/ruby-2.4.1/gems/hirb-0.7.3/lib/hirb/view.rb:187:in `output_value'
  from ~/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/irb.rb:494:in `block (2 levels) in eval_input'
  from ~/.
Actions #1

Updated by Peter Lehwess over 5 years ago

This seems to be coming from the gem `hirb-unicode-steakknife`. Removing this solves the problem.

The gem itself looks to be outdated and no longer maintained. I suggest removing it all together.

Actions #2

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
  • Pull request https://github.com/theforeman/foreman/pull/6237 added
Actions #3

Updated by Ohad Levy over 5 years ago

  • Status changed from Ready For Testing to New
  • Assignee deleted (Marek Hulán)
  • Pull request deleted (https://github.com/theforeman/foreman/pull/6237)
Actions #4

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Tomer Brisker
  • Pull request https://github.com/theforeman/foreman/pull/6249 added
Actions #5

Updated by Tomer Brisker over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #6

Updated by Marek Hulán over 5 years ago

  • Fixed in Releases 1.21.0 added
Actions #7

Updated by Tomer Brisker over 5 years ago

  • Category set to Development tools
Actions

Also available in: Atom PDF