summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-10-20 11:05:05 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-10-20 11:05:05 +0900
commit7c01cf49083992bc61ec9703b6fb4bc588701c00 (patch)
treeac47a82a91884f39daa35c527a5773025fe635c1 /NEWS.md
parent07b87f79797c8716f0ee36f3c32879194717ccd6 (diff)
NEWS.md: Add error_highlight section
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 2bc3ccb48a..59628a8c02 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -218,6 +218,9 @@ Excluding feature bug fixes.
### 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
* 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
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
* lib/objspace/trace.rb is added, which is a tool for tracing the object