ruby / error_highlight

The gem enhances Exception#message by adding a short explanation where the exception is raised

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work in IRB

mame opened this issue · comments

Due to the design limitation of the ruby internal API (RubyVM::AST.of), error_highlight cannot get the code snippet evaluated by Kernel#eval, etc. This means that error_highlight cannot show highlight lines for IRB.

This is a very tough issue. We need to design how to keep the eval'ed source code.

Slightly related to: https://bugs.ruby-lang.org/issues/16983