Does not work in IRB
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 155
- Forks
- 37
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by investigating RubyVM::AST.of and how Kernel#eval source is represented when used from IRB. Review the related Ruby issue 16983 for context on retaining evaluated source code. Done means error_highlight can retain the eval'ed source and show highlight lines for IRB errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100