<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/error_highlight/base.rb, branch v3_4_9</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] Fix error with prism when method given no arguments</title>
<updated>2024-09-24T13:28:01+00:00</updated>
<author>
<name>Luke Gruber</name>
<email>luke.gru@gmail.com</email>
</author>
<published>2024-09-17T12:34:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2a0ee408afeeae0f1a0d354ac36c400a361f6767'/>
<id>2a0ee408afeeae0f1a0d354ac36c400a361f6767</id>
<content type='text'>
such as:

  p = Proc.new

This now matches the RubyVM::AbstractSyntaxTree behavior, which is
not to highlight anything.

https://github.com/ruby/error_highlight/commit/d5c592a1ba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
such as:

  p = Proc.new

This now matches the RubyVM::AbstractSyntaxTree behavior, which is
not to highlight anything.

https://github.com/ruby/error_highlight/commit/d5c592a1ba
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Prism added node_id and Node#breadth_first_search in the 1.0 release. These methods are required for Prism to be able to find the method from the backtrace.</title>
<updated>2024-09-24T06:33:31+00:00</updated>
<author>
<name>Adam Hess</name>
<email>hparker@github.com</email>
</author>
<published>2024-09-18T23:02:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4b1e852d3ee79037e1b3963cc00c1407a7b3dda8'/>
<id>4b1e852d3ee79037e1b3963cc00c1407a7b3dda8</id>
<content type='text'>
https://github.com/ruby/prism/blob/main/CHANGELOG.md#100---2024-08-28

In practice you will likely only end up in this situation if you previously had pre-1.0 prism installed and upgrade Ruby to a version with Prism as the default parser.

https://github.com/ruby/error_highlight/commit/cb574daf62
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/prism/blob/main/CHANGELOG.md#100---2024-08-28

In practice you will likely only end up in this situation if you previously had pre-1.0 prism installed and upgrade Ruby to a version with Prism as the default parser.

https://github.com/ruby/error_highlight/commit/cb574daf62
</pre>
</div>
</content>
</entry>
<entry>
<title>[PRISM] Use node ids for error highlight</title>
<updated>2024-07-11T18:25:54+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-07-03T19:57:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c1df15c3e69201ed01c1b902de8c9302740899eb'/>
<id>c1df15c3e69201ed01c1b902de8c9302740899eb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Trim trailing spaces in base.rb</title>
<updated>2024-06-07T13:28:23+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-06-07T13:26:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=51bb5dcd2e63d7902794d42147817733249d3dd9'/>
<id>51bb5dcd2e63d7902794d42147817733249d3dd9</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/8ce3f6f145
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/8ce3f6f145
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Support for the prism compiler</title>
<updated>2024-06-07T13:15:14+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-05-20T17:50:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=40ec860de761af3b7b8538452a55c2ef8b9bb93e'/>
<id>40ec860de761af3b7b8538452a55c2ef8b9bb93e</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/69fbacfd49
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/69fbacfd49
</pre>
</div>
</content>
</entry>
<entry>
<title>Add error for iseqs compiled by prism</title>
<updated>2024-02-21T16:44:40+00:00</updated>
<author>
<name>Kevin Newton</name>
<email>kddnewton@gmail.com</email>
</author>
<published>2024-02-14T15:58:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=82a4c3af1629298524024494fd065d51ff6ad5c6'/>
<id>82a4c3af1629298524024494fd065d51ff6ad5c6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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] 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] 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] 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>
