<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_exception.rb, 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>Partly picked from https://github.com/ruby/ruby/pull/10073</title>
<updated>2025-07-02T02:05:40+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-07-01T07:57:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7fb19cf8035cb3e4209c93c70a224382e4c8ee6f'/>
<id>7fb19cf8035cb3e4209c93c70a224382e4c8ee6f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) b959263b58e26ef630c085f9f7ddc04373a998c7: [Backport #21344]</title>
<updated>2025-05-18T04:32:52+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2025-05-18T04:32:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1f226f1efeeae3a5091c60e2f51e027d0598f394'/>
<id>1f226f1efeeae3a5091c60e2f51e027d0598f394</id>
<content type='text'>
	Fix Exception#detailed_message for GC compaction

	Before this commit, the test fails with RGENGC_CHECK_MODE enabled:

	    TestException#test_detailed_message_under_gc_compact_stress [test/ruby/test_exception.rb:1466]:
	    &lt;"\e[1mfoo (\e[1;4mRuntimeError\e[m\e[1m)\e[m\n" +
	    "\e[1mbar\e[m\n" +
	    "\e[1mbaz\e[m"&gt; expected but was
	    &lt;"\e[1mfoo (\e[1;4mRuntimeError\e[m\e[1m)\e[m\n" +
	    "\e[1m\x00\x00\x00\x00\x00\x00\x00\e[m"&gt;.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Fix Exception#detailed_message for GC compaction

	Before this commit, the test fails with RGENGC_CHECK_MODE enabled:

	    TestException#test_detailed_message_under_gc_compact_stress [test/ruby/test_exception.rb:1466]:
	    &lt;"\e[1mfoo (\e[1;4mRuntimeError\e[m\e[1m)\e[m\n" +
	    "\e[1mbar\e[m\n" +
	    "\e[1mbaz\e[m"&gt; expected but was
	    &lt;"\e[1mfoo (\e[1;4mRuntimeError\e[m\e[1m)\e[m\n" +
	    "\e[1m\x00\x00\x00\x00\x00\x00\x00\e[m"&gt;.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove --disable-gems for assert_separately</title>
<updated>2023-08-03T00:11:08+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2023-08-02T21:02:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4b6c584023f41827c891f33a16cb5db221b7cd19'/>
<id>4b6c584023f41827c891f33a16cb5db221b7cd19</id>
<content type='text'>
assert_separately adds --disable=gems so we don't need to add
--disable-gems when calling assert_separately.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
assert_separately adds --disable=gems so we don't need to add
--disable-gems when calling assert_separately.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the caller location as default filename for eval family of methods</title>
<updated>2023-07-24T12:51:20+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>byroot@ruby-lang.org</email>
</author>
<published>2023-07-13T09:49:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=43a5c191358699fe8b19314763998cb8ca77ed90'/>
<id>43a5c191358699fe8b19314763998cb8ca77ed90</id>
<content type='text'>
[Feature #19755]

Before (in /tmp/test.rb):

```ruby
Object.class_eval("p __FILE__") # =&gt; "(eval)"
```

After:

```ruby
Object.class_eval("p __FILE__") # =&gt; "(eval at /tmp/test.rb:1)"
```

This makes it much easier to track down generated code in case
the author forgot to provide a filename argument.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Feature #19755]

Before (in /tmp/test.rb):

```ruby
Object.class_eval("p __FILE__") # =&gt; "(eval)"
```

After:

```ruby
Object.class_eval("p __FILE__") # =&gt; "(eval at /tmp/test.rb:1)"
```

This makes it much easier to track down generated code in case
the author forgot to provide a filename argument.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19570] Propagate message encoding to decorated message</title>
<updated>2023-04-10T06:13:26+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-04-10T06:13:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c30cab8ce4d2ab21ef75e2a3218cb76b21d78407'/>
<id>c30cab8ce4d2ab21ef75e2a3218cb76b21d78407</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Prefer to use File.readlines instead of IO.readlines</title>
<updated>2023-02-27T09:49:18+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-02-27T06:44:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d3d8cd304fb3bc20d519b119628a191575b1642a'/>
<id>d3d8cd304fb3bc20d519b119628a191575b1642a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19242] Prohibit circular causes to be loaded</title>
<updated>2022-12-20T05:12:38+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-19T05:10:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2e7e153a2af1456515d43b6381e38534b069b1c2'/>
<id>2e7e153a2af1456515d43b6381e38534b069b1c2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #19138] Add `SyntaxError#path`</title>
<updated>2022-12-01T08:05:41+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-20T13:59:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4e68b594314760611d0926c3de70a4cad26802cd'/>
<id>4e68b594314760611d0926c3de70a4cad26802cd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19016] `SyntaxError` with parser error messages</title>
<updated>2022-11-21T15:33:19+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-11T08:51:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b7a0ce32da751b437b976b032e73281b9a56b509'/>
<id>b7a0ce32da751b437b976b032e73281b9a56b509</id>
<content type='text'>
Raise a `SyntaxError` with the parser error message, in the case
reading from a file instead of the `-e` option or standard input. So
syntax_suggest can get the message from the caught error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Raise a `SyntaxError` with the parser error message, in the case
reading from a file instead of the `-e` option or standard input. So
syntax_suggest can get the message from the caught error.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19016] re-order error handling at cleanup</title>
<updated>2022-11-21T15:33:19+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-11-11T01:37:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5b959e238e5b7c18d6a1a5f5d9b4b2063de628fe'/>
<id>5b959e238e5b7c18d6a1a5f5d9b4b2063de628fe</id>
<content type='text'>
Build and store the error message with `#detailed_message` before
terminating all Ractors, then show the message later.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Build and store the error message with `#detailed_message` before
terminating all Ractors, then show the message later.
</pre>
</div>
</content>
</entry>
</feed>
