In the irb of ruby 2.3.7 (the version that comes with Macos) the “source“ command allows ruby code to be fed to irb as if it were typed in by hand. This has a advantage over the “load” command because variables can be setup not just fun...rsharman (Richard Sharman)
Another way the problem can happen is displaying an EN DASH character, such as in a CSV file produced by LibreOffice. When a shell is running inside emacs, including the case of running inf-ruby, ANSI sequences are not honoured. In most...rsharman (Richard Sharman)
In https://github.com/ruby/reline/pull/224 there is a test program ``` require "reline" p Reline::Unicode.calculate_width("√") ``` as a test case for bug #17405. This program hangs when called from an emacs shell. The prob...rsharman (Richard Sharman)
Sorry not to have checked back recently. The patch mentioned above works great for me. I doubt if this is required now but here it is: irb(main):001:0> irb_info => Ruby version: 2.7.2 IRB version: irb 1.2.6 (2020-09-14) InputMeth...rsharman (Richard Sharman)
When using the debugger, as in ruby -r debug, it seems that breakpoints sometimes are honoured and sometimes not. It turns out that it matters how the program is invoked. For example, when debugging test.rb, if invoked as ruby -...rsharman (Richard Sharman)
When irb is called with the --nomultiline option (for example, when called from emacs), then if the output contains some special characters (such as the square root sign, or a single quotation mark), then irb gets an exception. Withou...rsharman (Richard Sharman)