<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/error_highlight, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/error_highlight] Bump version</title>
<updated>2023-12-09T08:34:08+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2023-12-09T08:31:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=edb8fc24d4a51e58f283a6e7fd1b18b43739fa05'/>
<id>edb8fc24d4a51e58f283a6e7fd1b18b43739fa05</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/942a723d32
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/942a723d32
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Identify which node in `Foo::Bar::Baz` causes a NameError</title>
<updated>2023-01-13T08:25:09+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2023-01-13T08:02:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=94d6d6d93fa40b5f8dcdda6aa0e4b300ee61085c'/>
<id>94d6d6d93fa40b5f8dcdda6aa0e4b300ee61085c</id>
<content type='text'>
In Ruby 3.2 or later, a nested constant access like `Foo::Bar::Baz` is
compiled to one instruction by the optimization https://github.com/ruby/ruby/pull/6187

We try to spot which sub-node caues a NameError in question based on the
constant name. We will give up if the same constant name is accessed in
a nested access (`Foo::Foo`).

Fixes https://github.com/ruby/error_highlight/pull/31

https://github.com/ruby/error_highlight/commit/0a4db7da0a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Ruby 3.2 or later, a nested constant access like `Foo::Bar::Baz` is
compiled to one instruction by the optimization https://github.com/ruby/ruby/pull/6187

We try to spot which sub-node caues a NameError in question based on the
constant name. We will give up if the same constant name is accessed in
a nested access (`Foo::Foo`).

Fixes https://github.com/ruby/error_highlight/pull/31

https://github.com/ruby/error_highlight/commit/0a4db7da0a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Bump version</title>
<updated>2022-11-14T06:37:33+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-11-14T06:37:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d019c3a4bd7b0955c630195c585f3f029a78877e'/>
<id>d019c3a4bd7b0955c630195c585f3f029a78877e</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/5275078dc6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/5275078dc6
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Enable ErrorHighlight for TypeError/ArgumentError only after Ruby 3.2</title>
<updated>2022-11-14T06:06:12+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-11-14T05:36:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8bfd4dd4e15a9ac3a308c3c45db629e74fae9b0c'/>
<id>8bfd4dd4e15a9ac3a308c3c45db629e74fae9b0c</id>
<content type='text'>
... because changing TypeError#message and ArgumentError#message is
highly incompatible.

https://github.com/ruby/error_highlight/commit/39aa897c7a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... because changing TypeError#message and ArgumentError#message is
highly incompatible.

https://github.com/ruby/error_highlight/commit/39aa897c7a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Bump version</title>
<updated>2022-11-08T08:07:39+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-11-08T05:41:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4e728486b93eaec876ea8f876df9ecad350da269'/>
<id>4e728486b93eaec876ea8f876df9ecad350da269</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/59c291cce1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/59c291cce1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Support nodes in `spot`</title>
<updated>2022-10-31T04:58:38+00:00</updated>
<author>
<name>eileencodes</name>
<email>eileencodes@gmail.com</email>
</author>
<published>2022-10-19T17:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=350d0aa023223f560d812ef61396a2c5359f09a6'/>
<id>350d0aa023223f560d812ef61396a2c5359f09a6</id>
<content type='text'>
Fixes a bug where `spot` was using the wrong local variable.

We want to use error highlight with code that has been eval'd,
specifically ERB templates. We can recover the compiled source code of
the ERB template but we need an API to pass the node into error
highlight's `spot`.

Required Ruby PR: https://github.com/ruby/ruby/pull/6593

https://github.com/ruby/error_highlight/commit/0b1b650a59

Co-authored-by: Aaron Patterson &lt;tenderlove@ruby-lang.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes a bug where `spot` was using the wrong local variable.

We want to use error highlight with code that has been eval'd,
specifically ERB templates. We can recover the compiled source code of
the ERB template but we need an API to pass the node into error
highlight's `spot`.

Required Ruby PR: https://github.com/ruby/ruby/pull/6593

https://github.com/ruby/error_highlight/commit/0b1b650a59

Co-authored-by: Aaron Patterson &lt;tenderlove@ruby-lang.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Apply ErrorHighlight::CoreExt to TypeError and ArgumentError</title>
<updated>2022-08-19T09:34:15+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-08-19T09:33:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6bcb473d9cf00c113587a9fbb7605a2fe110862c'/>
<id>6bcb473d9cf00c113587a9fbb7605a2fe110862c</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/defcaf1beb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/defcaf1beb
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Add a note about the current limitation of ErrorHighlight.spot</title>
<updated>2022-08-12T05:04:41+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-08-12T05:04:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d9f1b8baa3a21b2a65af7fcab6a45c30b3f9efee'/>
<id>d9f1b8baa3a21b2a65af7fcab6a45c30b3f9efee</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/489ce80a62
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/489ce80a62
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Bump version</title>
<updated>2022-08-10T12:51:51+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-08-10T12:50:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1b32a4c7bb2e1ceb456b191ca88289d3c3d73dd7'/>
<id>1b32a4c7bb2e1ceb456b191ca88289d3c3d73dd7</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/6edf0a0a5d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/6edf0a0a5d
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Make backtrace_location keyword work</title>
<updated>2022-08-10T12:19:10+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-08-10T12:17:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3a58009066049f9af09ea3171cecab88ba0d9f1c'/>
<id>3a58009066049f9af09ea3171cecab88ba0d9f1c</id>
<content type='text'>
We had to keep backtrace_location before opts is overwritten.

https://github.com/ruby/error_highlight/commit/2735e4681a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We had to keep backtrace_location before opts is overwritten.

https://github.com/ruby/error_highlight/commit/2735e4681a
</pre>
</div>
</content>
</entry>
</feed>
