NEWS.md: Add error_highlight section

This commit is contained in:
Yusuke Endoh 2021-10-20 11:05:05 +09:00
parent 07b87f7979
commit 7c01cf4908
1 changed files with 21 additions and 0 deletions

21
NEWS.md
View File

@ -218,6 +218,9 @@ Excluding feature bug fixes.
### TypeProf ### TypeProf
* [Experimental IDE support](https://github.com/ruby/typeprof/blob/master/doc/ide.md) has been implemented.
* Many bug fixes and performance improvements since Ruby 3.0.0.
## Debugger ## Debugger
* A new debugger [debug.gem](https://github.com/ruby/debug) is bundled. * A new debugger [debug.gem](https://github.com/ruby/debug) is bundled.
@ -228,6 +231,24 @@ Excluding feature bug fixes.
* `rdbg` command is also installed into `bin/` directory to start and control * `rdbg` command is also installed into `bin/` directory to start and control
debugging execution. debugging execution.
## error_highlight
A built-in gem, error_highlight, has been introduced.
It includes fine-grained error location in backtrace:
```
$ ruby test.rb
test.rb:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError)
1.time {}
^^^^^
Did you mean? times
```
This gem is enabled by default.
You can disable it by using a command-line option `--disable-error_highlight`.
See [the repository](https://github.com/ruby/error_highlight) in detail.
## Miscellaneous changes ## Miscellaneous changes
* lib/objspace/trace.rb is added, which is a tool for tracing the object * lib/objspace/trace.rb is added, which is a tool for tracing the object