Project

General

Profile

Bug #14913

IRB console colours not configured with wirb 2.x

Added by Dominic Cleal about 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Rails
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Since #14876, the console colours when using wirb 2.x are not working. It appears that Wirb.start isn't configured correctly during the console setup sequence, but it works when called from the started IRB session.


Related issues

Related to Foreman - Refactor #14876: Permit wirb 2.x on Ruby 2.0 or higherClosed2016-04-29

Associated revisions

Revision b28c934b (diff)
Added by Dominic Cleal almost 6 years ago

fixes #14913 - configure Hirb/Wirb via irbrc

Wirb 2.x can't be started before the IRB session itself, so use an irbrc
file per its docs to activate it and Hirb when starting a console.

Revision 300dd8a7 (diff)
Added by Dominic Cleal almost 6 years ago

fixes #14913 - configure Hirb/Wirb via irbrc

Wirb 2.x can't be started before the IRB session itself, so use an irbrc
file per its docs to activate it and Hirb when starting a console.

(cherry picked from commit b28c934be39bce48a2e7ed48d3093557903193d6)

History

#1 Updated by Dominic Cleal about 6 years ago

#2 Updated by Dominic Cleal about 6 years ago

I filed https://github.com/janlelis/wirb/issues/12 for the issue, but I think using an irbrc might be the more reliable option - e.g. replace Wirb.start with ENV['IRBRC'] = 'config/irbrc', as IRB will call it at the correct time.

It looks like the inspect mode set by Wirb.start will always get overwritten by IRB.start, and it's not easy to change the order.

#3 Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal
  • Pull request https://github.com/theforeman/foreman/pull/3585 added

#4 Updated by Dominic Cleal almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF