yast / yast-ruby-bindings

YaST module ruby-bindings
http://en.opensuse.org/Portal:YaST
GNU General Public License v2.0
6 stars 14 forks source link

Distinguish parsing errors from internal errors (bsc#1174198) #249

Closed mvidner closed 4 years ago

mvidner commented 4 years ago

Snímek obrazovky_2020-09-17_cfa-error

mvidner commented 4 years ago

When byebug is not installed (or the newly recognized Y2DEBUGGER=0 is in effect) a richtext window is used instead, showing a wrapped text:

distinguish-rich

mvidner commented 4 years ago

The rich text will nicely wrap lines, but it will not escape angle brackets:

$ cat raise_angle_brackets.rb
Class.new.no_such_method
$ /usr/sbin/yast2 ./raise_angle_brackets.rb  # question, plain text
$ Y2DEBUGGER=0 /usr/sbin/yast2 ./raise_angle_brackets.rb  # message, rich text

raise-question raise-rich

schubi2 commented 4 years ago

We are beginning with SLES15-SP2: https://github.com/yast/yast-ruby-bindings/pull/253 And merging this one in the next step for master.