<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/error_highlight/base.rb, branch v4.0.3</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 prism_spot_def_for_name for singletons</title>
<updated>2025-11-19T22:27:28+00:00</updated>
<author>
<name>John Hawthorn</name>
<email>john@hawthorn.email</email>
</author>
<published>2025-11-19T21:08:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4e1f20fee6d97b6dc65e0d4eac1f9cc37312bd5f'/>
<id>4e1f20fee6d97b6dc65e0d4eac1f9cc37312bd5f</id>
<content type='text'>
Previously calling a singleton method with invalid arguments would give:

    RuntimeError: Incompatible locations

This is because `join` wants the operator to come before the location

https://github.com/ruby/error_highlight/commit/44920551dd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously calling a singleton method with invalid arguments would give:

    RuntimeError: Incompatible locations

This is because `join` wants the operator to come before the location

https://github.com/ruby/error_highlight/commit/44920551dd
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Improve English comments and messages</title>
<updated>2025-10-07T09:07:22+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-10-07T09:01:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c693b0e4771915127c8e097ae2d84dea53c2b339'/>
<id>c693b0e4771915127c8e097ae2d84dea53c2b339</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/5f976265ef
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/5f976265ef
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Remove a branch for Ruby 3.1</title>
<updated>2025-08-28T06:35:10+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-08-28T06:32:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b85b2b84ad407b4653b6762ee61db0676655b21d'/>
<id>b85b2b84ad407b4653b6762ee61db0676655b21d</id>
<content type='text'>
https://github.com/ruby/error_highlight/commit/d3063cde62
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/error_highlight/commit/d3063cde62
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Show a dedicated snippet for "wrong number of arguments" error</title>
<updated>2025-08-28T06:26:06+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-08-26T10:11:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=85e0c98cf0537c2049bfbbc2e21228264db90e00'/>
<id>85e0c98cf0537c2049bfbbc2e21228264db90e00</id>
<content type='text'>
This is an experimental implementation for
https://bugs.ruby-lang.org/issues/21543.

```
test.rb:2:in 'Object#foo': wrong number of arguments (given 1, expected 2) (ArgumentError)

    caller: test.rb:6
    |   foo(1)
        ^^^
    callee: test.rb:2
    | def foo(x, y)
          ^^^
        from test.rb:6:in 'Object#bar'
        from test.rb:10:in 'Object#baz'
        from test.rb:13:in '&lt;main&gt;'
```

https://github.com/ruby/error_highlight/commit/21e974e1c4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is an experimental implementation for
https://bugs.ruby-lang.org/issues/21543.

```
test.rb:2:in 'Object#foo': wrong number of arguments (given 1, expected 2) (ArgumentError)

    caller: test.rb:6
    |   foo(1)
        ^^^
    callee: test.rb:2
    | def foo(x, y)
          ^^^
        from test.rb:6:in 'Object#bar'
        from test.rb:10:in 'Object#baz'
        from test.rb:13:in '&lt;main&gt;'
```

https://github.com/ruby/error_highlight/commit/21e974e1c4
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/error_highlight] Ensure first_line and last_line are set</title>
<updated>2025-01-29T08:51:42+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-01-29T08:33:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e01b4ca1c8eb24528b950bf77c9d0415bf1a1719'/>
<id>e01b4ca1c8eb24528b950bf77c9d0415bf1a1719</id>
<content type='text'>
Fixes https://github.com/ruby/error_highlight/pull/58

https://github.com/ruby/error_highlight/commit/9ddc1f31a9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/ruby/error_highlight/pull/58

https://github.com/ruby/error_highlight/commit/9ddc1f31a9
</pre>
</div>
</content>
</entry>
<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>
</feed>
