Project

General

Profile

Activity

From 06/26/2021 to 07/02/2021

07/02/2021

06:02 PM Bug #18019 (Closed): 3.0.X fails to link on Mac OS X 10.15.7 due to linker error related to _coroutine_transfer
I'm struggling with building ruby 3.0.X on my Mac Catalina (Intel based). Please note all 2.X versions are compiling correctly.
I've already tried to use gnugcc but getting same error:
```
▶ gcc --version
Configured with: --prefi...
mic-kul (Michal Kulesza)
05:11 PM Bug #17048: Calling initialize_copy on live modules leads to crashes
This example in the original post has been fixed recently in the master branch. I bisected the fixing commit to commit:3dd3ea092acead6179033f2c95525ffc5b8bb6ff. However, as that changes constant lookup order, I'm guessing we aren't goi... jeremyevans0 (Jeremy Evans)
04:15 PM Bug #17101 (Closed): YAML.load_file: Massive slowdown under Ruby 2.7 vs. Ruby 2.4
I tried this on OpenBSD, and ruby 2.7 and 3.0 were faster than ruby 2.4 (all of these use libyaml 0.2.2):
```
/usr/local/bin/ruby27: 0.1 i/s
/usr/local/bin/ruby30: 0.1 i/s - 1.00x slower
/usr/local/bin/ruby24: ...
jeremyevans0 (Jeremy Evans)
03:49 PM Bug #17049 (Closed): Net::IMAP - Handling of NOOP untagged responses sent by Zimbra
jeremyevans0 (Jeremy Evans)
03:39 PM Feature #17745: `IO#close_on_exec=` returns different value when called with `send, __send__, public_send` or not
Is there any reason to call close_on_exec= with `send/__send__`, or to use its return value?
I would be on the side of "changing this should not hurt", but it seems other committers do not necessarily agree (I guess their point is cod...
Eregon (Benoit Daloze)
03:38 PM Misc #17997: DevelopersMeeting20210715Japan
* [Feature #15856] Performance of redundant `Kernel.require` is slow when many gems are activated (jeremyevans0)
* Repeated require of native library without extension is very slow.
* Repeated require of pure ruby library without e...
jeremyevans0 (Jeremy Evans)
03:16 PM Bug #15856: Performance of redundant `Kernel.require` is slow when many gems are activated
This is still a performance issue in the master branch. I think it makes sense to fix the issue by using the approach recommended by @deivid is best. In addition to being faster, is also makes the behavior for native libraries consiste... jeremyevans0 (Jeremy Evans)
12:47 PM Bug #18018: Float#floor / truncate sometimes result that is too small.
sawa (Tsuyoshi Sawada) wrote in #note-1:
> With:
> ...
Yes, that is what I meant, thanks.
marcandre (Marc-Andre Lafortune)
12:17 PM Bug #18018: Float#floor / truncate sometimes result that is too small.
With:
> g's decimal string representation has at most n digits
I think you mean:
> ...
(By the way, note here that the word "decimal" is used twice under different meanings: 1. base ten, and 2. the fractional part)
sawa (Tsuyoshi Sawada)
07:48 AM Revision 3a958347 (git): [ruby/error_highlight] Suppress SyntaxError during RubyVM::AST.of
When the original source code is erb, RubyVM::AST.of does not work well.
https://github.com/rails/rails/issues/42678.
https://github.com/ruby/error_highlight/commit/b1572761a6
mame (Yusuke Endoh)
04:23 AM Revision e105d93b (git): Fix default prompt mode in doc/irb/irb.rd.ja
znz (Kazuhiro NISHIYAMA)
01:50 AM Bug #17583 (Closed): Segfault on large stack(RUBY_THREAD_VM_STACK_SIZE)
Applied in changeset commit:git|8ebb5e23ebc5f1675e3479b9a29f124dc458226b.
----------
Keep GC disabled until VM bootstrap has done [Bug #17583]
nobu (Nobuyoshi Nakada)
01:50 AM Bug #17668 (Closed): Large RUBY_THREAD_VM_STACK_SIZE causes segmentation fault (again)
Applied in changeset commit:git|8ebb5e23ebc5f1675e3479b9a29f124dc458226b.
----------
Keep GC disabled until VM bootstrap has done [Bug #17583]
nobu (Nobuyoshi Nakada)
01:49 AM Revision 8ebb5e23 (git): Keep GC disabled until VM bootstrap has done [Bug #17583]
nobu (Nobuyoshi Nakada)
12:36 AM Revision 1862d961 (git): Ignore dead threads in `coroutine_join`.
Samuel Williams
12:09 AM Bug #16243 (Closed): case/when is slower than if on MRI
commit:5ada23ac1265a1da5d7ef82e1c71f14c40dddc26 changed case statements to use a `===` with a call cache, instead of using the `checkmatch` VM instruction. In my benchmarking on master, I'm only seeing about 1-3% difference with the rev... jeremyevans0 (Jeremy Evans)

07/01/2021

10:53 PM Bug #18018 (Closed): Float#floor / truncate sometimes result that is too small.

```ruby
291.4.floor(1) # => 291.4 (ok)
291.4.floor(2) # => 291.39 (not ok)
291.4.floor(3) # => 291.4 (ok)
291.4.floor(4) # => 291.4 (ok)
291.4.floor(5) # => 291.39999 (not ok)
291.4.floor(6) # => 291.4 (ok)
```
`g = f.floor(n...
marcandre (Marc-Andre Lafortune)
10:03 PM Bug #17189 (Closed): test_thread.rb in testsuite deadlocks with musl libc 1.2.1
jeremyevans0 (Jeremy Evans)
09:54 PM Bug #17492 (Closed): Breakpoints in debug.rb only work when program invoked with absolute filename
@ko1 has rewritten the debug library (https://github.com/ruby/debug). I've checked that the rewrite fixes this issue. You can also try using the 1.0.0 beta gem. Note that you need to add `require 'debug/run'` to the file use the `rdbg... jeremyevans0 (Jeremy Evans)
09:47 PM Revision b8da141d (git): * 2021-07-02 [ci skip]
git[bot]
09:47 PM Revision e8933fda (git): Remove gdbm/dbm related code from CI
The related extensions have been removed. jeremyevans (Jeremy Evans)
09:44 PM Bug #17494 (Closed): ruby is hanged when using activesupport + rspec + rspec-parameterized
This issue has been fixed in the master branch. I bisected the fixing commit to commit:39a2ba5cc559900c30c3143da32446c2f20a7484. This issue exists in Ruby 3.0 but not in Ruby 2.7 or 2.6, so if possible, this should be backported to 3.0. jeremyevans0 (Jeremy Evans)
08:16 PM Bug #17757: Hash#slice does not keep compare_by_identity on the results
Thanks for the PR @jeremyevans0, looks pretty good.
On the other hand, I'd like to revise what I wrote and suggest that `transform_keys` remain untouched. It's the only one of these methods (with `to_h{...}`) that changes the keys so ha...
marcandre (Marc-Andre Lafortune)
06:00 PM Bug #17757: Hash#slice does not keep compare_by_identity on the results
I've submitted a pull request that builds on @kachick's PR and fixes the remaining cases found by @marcandre: https://github.com/ruby/ruby/pull/4616 jeremyevans0 (Jeremy Evans)
07:34 PM Bug #17583: Segfault on large stack(RUBY_THREAD_VM_STACK_SIZE)
nobu (Nobuyoshi Nakada) wrote in #note-9:
> Does this work?
> ...
Since it worked for me, I rebased this tree on master and submitted a pull request for it: https://github.com/ruby/ruby/pull/4617
jeremyevans0 (Jeremy Evans)
07:33 PM Bug #17561: The timeout option for Addrinfo.getaddrinfo is not reliable on Ruby 2.7.2
usa (Usaku NAKAMURA) wrote in #note-5:
> About 2.7, to make raise `ArgumentError` (or other exception) is not acceptable because it's **stable* branch.
> ...
I sent a pull request to disable the timeout option: https://github.com/ruby/...
jeremyevans0 (Jeremy Evans)
06:58 PM Bug #17607 (Closed): ChildProcess vs RUBY_PIPE_NONBLOCK_DEFAULT
vo.x (Vit Ondruch) wrote in #note-5:
> I am sure that the behavior changed and I'd like to better understand why.
The behavior changed to non-blocking by default in order to support the fiber scheduler. Changing it back to blocking ...
jeremyevans0 (Jeremy Evans)
06:19 PM Bug #17728: [BUG] Segmentation fault at 0x0000000000000000
@meliborn Can you test with Ruby 3.0.1 and see if it fixes this issue? jeremyevans0 (Jeremy Evans)
02:51 PM Feature #16978: Ruby should not use realpath for __FILE__
This issue seems also somewhat related to another I opened a while ago: #17593 byroot (Jean Boussier)
01:13 AM Feature #16978: Ruby should not use realpath for __FILE__
byroot (Jean Boussier) wrote in #note-17:
> The "entrypoint" script could behave differently, but maybe that would be confusing.
I think that would be acceptable. After all the "entrypoint" script already behaves differently; it's the o...
Dan0042 (Daniel DeLorme)
09:28 AM Misc #18017 (Assigned): Broken links from Revision e86c1f6f to changed files
hsbt (Hiroshi SHIBATA)
08:18 AM Misc #18017 (Closed): Broken links from Revision e86c1f6f to changed files
All the links at the bottom of
https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/e86c1f6fc53433ef5c82ed2b7a4cc9a12c153e4c
(to the changed files and diffs) produce "404
The entry or revision was not found in the ...
duerst (Martin Dürst)
08:33 AM Revision f6539202 (git): - add regression tests for U+6E7F (湿) in ISO-2022-JP
In ISO-2022-JP, the bytes use to code are the same as those for "<>".
This adds regression tests to make sure that these bytes, when representing
湿, are NOT escaped with encode("ISO-2022-JP, xml: :text) or similar.
These are additi...
duerst (Martin Dürst)
05:45 AM Revision 9ca30516 (git): [DOC] fixed the default value of flags [ci skip]
nobu (Nobuyoshi Nakada)
05:45 AM Revision 9692aeed (git): [DOC] expanded `pattern`s in examples of File.fnmatch [ci skip]
nobu (Nobuyoshi Nakada)
03:41 AM Feature #18015 (Closed): Replace copy coroutine with pthread implementation.
Merged. ioquatix (Samuel Williams)
12:07 AM Bug #18016 (Closed): fiddle\types.rb typealias maybe wrong
This was fixed upstream just after the release of 3.0: https://github.com/ruby/fiddle/commit/28ee5b16086f77e1f079853bff2ee1cb527cb69c. These changes have already been applied to the master branch. Possibly commit:8758b07b1e4fd636dffb4b4... jeremyevans0 (Jeremy Evans)

06/30/2021

11:57 PM Bug #17885: require_relative and require should be compatible with each other when symlinked files are used
I've submitted a pull request to prevent loading the same realpath multiple times: https://github.com/ruby/ruby/pull/4615 jeremyevans0 (Jeremy Evans)
11:23 PM Revision 1467328e (git): More general matrix "configure" parameter, add `--with-coroutine=pthread`.
Samuel Williams
11:23 PM Revision 42130a64 (git): Replace copy coroutine with pthread implementation.
Samuel Williams
09:42 PM Revision 9c953195 (git): rbinstall.rb: get rid of making directories when dryrun
nobu (Nobuyoshi Nakada)
08:16 PM Revision 8ee24840 (git): [ruby/irb] Update ls.rb without requiring Set, because Set is one of standard libraries
https://github.com/ruby/irb/commit/7092ad2ab5 Keiko Kaneko
08:12 PM Revision 518d3938 (git): * 2021-07-01 [ci skip]
git[bot]
08:12 PM Revision 4a3df352 (git): Use stride passed into os_obj_of_i
peterzhu2118 (Peter Zhu)
03:10 PM Bug #17933 (Closed): `Net::HTTP#write_timeout` doesn't work with `body_stream`
jeremyevans0 (Jeremy Evans)
02:26 PM Feature #17992: Upstreaming the htmlentities gem into CGI#.(un)escape_html
I'm reasonably convinced that augmenting the existing `unescapeHTML` API is off the table, for performance reasons.
I plan to add this under a new `(de|en)code_html_entities` name.
It could be parameterized just like HTMLEntities, ...
AMomchilov (Alexander Momchilov)
08:48 AM Feature #17992: Upstreaming the htmlentities gem into CGI#.(un)escape_html
Sorry, forgot to give a link to a human-readable table of html5 entities: https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references. duerst (Martin Dürst)
08:46 AM Feature #17992: Upstreaming the htmlentities gem into CGI#.(un)escape_html
It is difficult to make this complete without overdoing it because there are many different kinds of entity sets. The htmlentities gem distinguishes three (html4, xhtml1, and expanded). Both html4 and xhtml1 come in at around 250 entitie... duerst (Martin Dürst)
12:54 PM Misc #17662: The heredoc pattern used in tests does not syntax highlight correctly in many editors
Eregon (Benoit Daloze) wrote in #note-12:
> and if possible one that does not involve twice the number of heredocs than needed.
It is intentional to indent inside here-docs and separate interpolation-enabled and -disabled parts.
nobu (Nobuyoshi Nakada)
12:06 PM Revision acbddbe6 (git): [ruby/irb] Rescue a specific error
Rescuing StandardError is prone to bugs caused by a typo or obsoleted methods.
https://github.com/ruby/irb/commit/eb5260fcd5
k0kubun (Takashi Kokubun)
11:55 AM Revision e8c2b03e (git): [ruby/irb] Fix error on `ls object_cant_define_singleton`
such as `ls 42`, `ls :sym` and so on
https://github.com/ruby/irb/commit/b1d436a853
pocke (Masataka Kuwabara)
10:56 AM Revision 0feec798 (git): "nodoc" needs to exclude "doc" [ci skip]
nobu (Nobuyoshi Nakada)
08:33 AM Revision b6c910e1 (git): [ruby/error_highlight] Allow the development version (= master branch) of Ruby 3.1
https://github.com/ruby/error_highlight/commit/2dca1446c9 mame (Yusuke Endoh)
06:45 AM Revision 59ead885 (git): [DOC] add notes and examples for pipe [ci skip]
nobu (Nobuyoshi Nakada)
06:36 AM Feature #18015: Replace copy coroutine with pthread implementation.
+1 xtkoba (Tee KOBAYASHI)
04:29 AM Feature #18015: Replace copy coroutine with pthread implementation.
This is currently blocking <https://bugs.ruby-lang.org/issues/18005>. Pull request: <https://github.com/ruby/ruby/pull/4606>. ioquatix (Samuel Williams)
04:29 AM Feature #18015 (Closed): Replace copy coroutine with pthread implementation.
The copy coroutine is unique in that it uses a private stack area. It is also tricky to implement as it uses setjmp/longjmp to update the stack & instruction pointer. Because of this, pointers to stack allocated data are only valid while... ioquatix (Samuel Williams)
06:03 AM Bug #18016 (Closed): fiddle\types.rb typealias maybe wrong
in ...\lib\ruby\3.0.0\fiddle\types.rb
module Fiddle
module Win32Types
def included(m) # :nodoc:
m.module_eval{
# ...
typealias "HANDLE", "uintptr_t"
# ...
typealias "HINSTANCE", "unsi...
fitmap (Justin Peal)
05:02 AM Revision 8ccc2574 (git): Add the gemspec for error_highlight
mame (Yusuke Endoh)
04:41 AM Revision b270b5df (git): Prevent "warning: ambiguity between regexp and two divisions"
mame (Yusuke Endoh)
04:36 AM Revision 6c6b128c (git): [ruby/error_highlight] Bump version
https://github.com/ruby/error_highlight/commit/8d483c251e mame (Yusuke Endoh)
03:49 AM Revision ca4e5b1e (git): [ruby/error_highlight] Reconsider the API of ErrorHighlight.spot
https://github.com/ruby/error_highlight/commit/acb2046a82 mame (Yusuke Endoh)
03:49 AM Revision f428ced6 (git): [ruby/error_highlight] Experimentally support a custom formatter
https://github.com/ruby/error_highlight/commit/f40a1de20e mame (Yusuke Endoh)
02:46 AM Revision db7e9b1a (git): [ruby/error_highlight] Add some comments
https://github.com/ruby/error_highlight/commit/e0c90c72c3 mame (Yusuke Endoh)
02:39 AM Revision 3391682e (git): tool/sync_default_gems.rb: remove unneeded code for error_highlight sync
mame (Yusuke Endoh)
01:58 AM Bug #17887 (Closed): Missed constant lookup after prepend
Applied in changeset commit:git|3dd3ea092acead6179033f2c95525ffc5b8bb6ff.
----------
Use Module#ancestors order in recursive constant lookup
Before this commit, const_get with inherit=true and constant lookup
expressions searched the a...
alanwu (Alan Wu)
01:56 AM Revision 393f84da (git): tool/sync_default_gems.rb: Add error_highlight gem
mame (Yusuke Endoh)
01:49 AM Revision 3dd3ea09 (git): Use Module#ancestors order in recursive constant lookup
Before this commit, const_get with inherit=true and constant lookup
expressions searched the ancestors of the starting point in an order
different from `starting_point.ancestors`.
Items in the ancestry list introduced through prepend we...
alanwu (Alan Wu)
01:47 AM Feature #17432 (Closed): Check deprecated methods at compilation time
Applied in changeset commit:git|8118d435d000adec3023a0ff509baa11cc73fabb.
----------
rb_warn_deprecated_to_remove_at [Feature #17432]
At compilation time with RUBY_DEBUG enabled, check if the removal
version has been reached.
nobu (Nobuyoshi Nakada)
01:47 AM Revision dcd1eedb (git): * 2021-06-30 [ci skip]
git[bot]
01:47 AM Revision 94bd3bde (git): Specify version to remove as bare numbers
nobu (Nobuyoshi Nakada)
01:47 AM Revision 21600a5f (git): Ensure that version number starts with digits
nobu (Nobuyoshi Nakada)
01:47 AM Revision 0b726924 (git): Show the removal version
nobu (Nobuyoshi Nakada)
01:47 AM Revision 8118d435 (git): rb_warn_deprecated_to_remove_at [Feature #17432]
At compilation time with RUBY_DEBUG enabled, check if the removal
version has been reached.
nobu (Nobuyoshi Nakada)

06/29/2021

07:49 PM Bug #18014 (Closed): Memory leak in GC when using Ractors
# GitHub PR: https://github.com/ruby/ruby/pull/4613
When a Ractor is removed, the freelist in the Ractor cache is not returned to the GC, leaving the freelist permanently lost.
The following script demonstrates the issue. It iterat...
peterzhu2118 (Peter Zhu)
04:49 PM Bug #17772 (Rejected): Performance issue with NameError message in context with large instance variables (not caused by did_you_mean)
jeremyevans0 (Jeremy Evans)
03:07 PM Feature #17930 (Closed): Add column information into error backtrace
I've merged my PR https://github.com/ruby/ruby/pull/4586, created a new repository https://github.com/ruby/error_highlight
, and released a new gem https://rubygems.org/gems/error_highlight.
I will monitor the CI, but please let me k...
mame (Yusuke Endoh)
02:52 PM Bug #18011: `Method#parameters` is incorrect for forwarded arguments
Eregon (Benoit Daloze) wrote in #note-3:
> IMHO in Ruby 3+ it should return `[[:rest, :*], [:keyrest, :**], [:block, :&]]`.
> ...
I think methods that use `ruby2_keywords`, either explicitly or implicitly through argument forwarding, s...
jeremyevans0 (Jeremy Evans)
09:58 AM Bug #18011: `Method#parameters` is incorrect for forwarded arguments
IMHO in Ruby 3+ it should return `[[:rest, :*], [:keyrest, :**], [:block, :&]]`.
The fact that it uses `ruby2_keywords` internally is an implementation detail that I don't think needs to leak into Method#parameters.
Eregon (Benoit Daloze)
06:09 AM Bug #18011: `Method#parameters` is incorrect for forwarded arguments
jeremyevans0 (Jeremy Evans) wrote in #note-1:
> Forwarded arguments is implemented as `(*args, &block)` with `ruby2_keywords`, not as `(*args, **kwargs, &block)`. If you add `def wrapper4(*r, &b) = wrapped(*r, &b),` to `methods` and the...
josh.cheek (Josh Cheek)
04:40 AM Bug #18011: `Method#parameters` is incorrect for forwarded arguments
Forwarded arguments is implemented as `(*args, &block)` with `ruby2_keywords`, not as `(*args, **kwargs, &block)`. If you add `def wrapper4(*r, &b) = wrapped(*r, &b),` to `methods` and then `ruby2_keywords :wrapper4` after `methods`, you... jeremyevans0 (Jeremy Evans)
01:02 AM Bug #18011 (Closed): `Method#parameters` is incorrect for forwarded arguments
When asking a method about its parameters, forwarded arguments say they are a rest and a block (`wrapper1` in the example below).
However, when we use that signature, it raises an ArgumentError (`wrapper2` in the example below).
When I...
josh.cheek (Josh Cheek)
02:45 PM Revision d1998d87 (git): tool/test-bundled-gems.rb: Stop tests conflicting with error_highlight
This hack should be removed after the minitest side is updated.
https://github.com/seattlerb/minitest/pull/880
mame (Yusuke Endoh)
02:45 PM Revision 9438c995 (git): Rename error_squiggle to error_highlight
mame (Yusuke Endoh)
02:45 PM Revision e9460496 (git): [WIP] add error_squiggle gem
```
$ ./local/bin/ruby -e '1.time {}'
-e:1:in `<main>': undefined method `time' for 1:Integer (NoMethodError)
1.time {}
^^^^^
Did you mean? times
```
https://bugs.ruby-lang.org/issues/17930
mame (Yusuke Endoh)
01:28 PM Revision 03dc6644 (git): Fix crash on RGENGC_CHECK_MODE=4
When running btest there is a crash when compiled with
RGENGC_CHECK_MODE=4. The crash happens because `during_gc` is not
turned off before `gc_marks_check` is called, causing the marking to
happen on the main mark stack instead of mark s...
peterzhu2118 (Peter Zhu)
12:05 PM Bug #18013: Unexpected results when mxiing negated character classes and case-folding
duerst (Martin Dürst) wrote in #note-2:
> Just a question: What's the purpose of nested character classes?
They are useful in combination with the set intersection operator `&&`. They let you, e.g., exclude characters from some chara...
jirkamarsik (Jirka Marsik)
11:45 AM Bug #18013: Unexpected results when mxiing negated character classes and case-folding
Just a question: What's the purpose of nested character classes?
I didn't even know that there was such a thing as nested character classes.
Depending on the purpose of nested character classes, the right way to handle things may d...
duerst (Martin Dürst)
09:28 AM Bug #18013: Unexpected results when mxiing negated character classes and case-folding
This is a simpler reproducer.
```
irb(main):003:0> /[^a]/i.match("a")
=> nil
irb(main):004:0> /[[^a]]/i.match("a")
=> #<MatchData "a">
```
jirkamarsik (Jirka Marsik)
08:55 AM Bug #18013 (Open): Unexpected results when mxiing negated character classes and case-folding
```
irb(main):001:0> /[^a-c]/i.match("A")
=> nil
irb(main):002:0> /[[^a-c]]/i.match("A")
=> #<MatchData "A">
```
The two regular expressions above match different strings, because the character classes denote different sets of ch...
jirkamarsik (Jirka Marsik)
11:54 AM Revision 5e75280c (git): Add basic test for updated IO wait functions.
Samuel Williams
08:35 AM Bug #18012 (Open): Case-insensitive character classes can only match multiple code points when top-level character class is not negated
Some Unicode characters case-fold to strings of multiple code points, e.g. the ligature `\ufb00` can match the string `ff`.
```
irb(main):001:0> /\A[\ufb00]\z/i.match("\ufb00")
=> #<MatchData "ff">
irb(main):002:0> /\A[\ufb00]\z/i.m...
jirkamarsik (Jirka Marsik)
08:28 AM Feature #16978: Ruby should not use realpath for __FILE__
> Unfortunately, if __FILE__ uses realpath, unless you also change the behavior of $0
The "entrypoint" script could behave differently, but maybe that would be confusing.
byroot (Jean Boussier)
07:40 AM Bug #2127: Fiber#resume - segfault inside C extension
Make description more readable. ioquatix (Samuel Williams)
06:49 AM Revision 39f99b81 (git): Use assert_not_match "Did you mean?" for UncorrectableNameCheckTest
... instead of exact matching. I'm now creating a built-in gem that
modifies Exception's error message, so the expectation value is changed.
IMO, it is good to check that did_you_mean suggestion is NOT added in
the uncorrectable case.
...
mame (Yusuke Endoh)
06:49 AM Revision 809f1203 (git): Use String#include? instead of end_with? to avoid message duplication
Previously, did_you_mean used `msg.end_with?(suggestion)` to check if
its suggestion is already added.
I'm now creating a gem that also modifies Exception's message. This
breaks did_you_mean's duplication check.
This change makes the ch...
mame (Yusuke Endoh)
06:49 AM Revision 612b6fcd (git): Let Correctable#original_message skip prepended method definitions
Previously, DidYouMean::Correctable#original_message did
`method(:to_s).super_method.call` to call the original to_s method by
skipping Correctable#to_s.
I'm now creating a gem that prepends another to_s method to NameError,
which confu...
mame (Yusuke Endoh)
06:49 AM Revision 4670458a (git): Should require "rbconfig" to use RbConfig
https://github.com/ruby/did_you_mean/commit/fbe5aaaae8 nobu (Nobuyoshi Nakada)
06:49 AM Revision 8356d9e3 (git): Start v1.6.0 development
https://github.com/ruby/did_you_mean/commit/3f69171813 Yuki Nishijima
02:41 AM Revision 9eae8cde (git): Prefer qualified names under Thread
nobu (Nobuyoshi Nakada)

06/28/2021

09:07 PM Bug #17794 (Closed): addr2line.c can free(3) an invalid pointer without zlib
Applied in changeset commit:git|d795f494a89e0d9498dfedc54b8a98acc2bc4d7b.
----------
Avoid `free(3)`ing invalid pointer
Fixes [Bug #17794]
xtkoba (Tee KOBAYASHI)
09:06 PM Bug #17991 (Closed): [TEST, CRASH] TestBugReporter#test_bug_reporter_add
jeremyevans0 (Jeremy Evans)
09:06 PM Revision 983c9ad3 (git): * 2021-06-29 [ci skip]
git[bot]
09:06 PM Revision d795f494 (git): Avoid `free(3)`ing invalid pointer
Fixes [Bug #17794] xtkoba (Tee KOBAYASHI)
09:06 PM Feature #16978: Ruby should not use realpath for __FILE__
vo.x (Vit Ondruch) wrote in #note-13:
> Dan0042 (Daniel DeLorme) wrote in #note-12:
> ...
It's not difficult to make `__FILE__` use `realpath`:
```diff
@@ -10307,6 +10307,14 @@ numparam_nested_p(struct parser_params *p)
retur...
jeremyevans0 (Jeremy Evans)
08:00 PM Bug #17887 (Assigned): Missed constant lookup after prepend
@alanwu came up with a much simpler fix for this issue, so I closed my pull request in favor of his. @nobu, could you please review his pull request: https://github.com/ruby/ruby/pull/4585 ? jeremyevans0 (Jeremy Evans)
07:37 PM Bug #17986 (Closed): Ractor is stdlib Socket unfriendly
jeremyevans0 (Jeremy Evans)
07:34 PM Bug #17940 (Closed): Bus Error
jeremyevans0 (Jeremy Evans)
07:29 PM Bug #17987 (Closed): Ruby报错
jeremyevans0 (Jeremy Evans)
06:25 PM Bug #18006 (Closed): Resolv::DNS#getaddress takes minutes to resolve a domain with no DNS records in 3.0 (was quick in 2.7)
I tested this with RubyInstaller-head on Windows and the problem appears to have been resolved. Even without an empty `:search` option, ruby raises an exception almost immediately. As commit:9edc162583a4f685332239f6249745ad9b518cbe has... jeremyevans0 (Jeremy Evans)
05:53 PM Bug #8810 (Closed): GDBM.open内で処理がブロックしたらTimeout.timeout が効かない
gdbm was removed in commit:edcc29dcff1b269b7748ab83adf21b2f3f97ebff jeremyevans0 (Jeremy Evans)
05:52 PM Bug #8836 (Closed): [BUG] Bus Error with bundler on large Gemfile when resolving dependencies
jeremyevans0 (Jeremy Evans)
05:49 PM Bug #9245 (Closed): Kernel::system gives wrong output for utf-8 characters on windows under utf-8 console
This appears to be fixed as of Ruby 2.1. I was able to recreate the issue in 2.0, but not in 2.1. I also tested the latest RubyInstaller-head, and the problem is still fixed. jeremyevans0 (Jeremy Evans)
05:41 PM Bug #9737 (Closed): Non-ASCII characters in the path to ruby executable break require paths
This issue appears to have been fixed, probably in Ruby 3.0. Using the latest RubyInstaller-head:
```
D:\zz-können2>D:\zz-können2\Ruby31-x64\bin\ruby.exe -v --disable-gems -e "p $:.first.encoding, $:.first; require 'uri'"
ruby 3.1....
jeremyevans0 (Jeremy Evans)
12:10 PM Bug #17984: [BUG] try to mark T_NONE object
I didn't have the core dump and this issue only happens very rarely. I just caught it again today and this time I have the core dump. I forwarded it to @tenderlovemaking. byroot (Jean Boussier)
09:30 AM Bug #18010 (Open): Character class with single character gets case-folded with following string
```
irb(main):001:0> /ff/i.match("\ufb00")
=> #<MatchData "ff">
irb(main):002:0> /[f]f/i.match("\ufb00")
=> #<MatchData "ff">
irb(main):003:0> /f[f]/i.match("\ufb00")
=> nil
irb(main):004:0> /[f][f]/i.match("\ufb00")
=> nil
irb(ma...
jirkamarsik (Jirka Marsik)
09:09 AM Bug #18009 (Open): Regexps \w and \W with /i option and /u option produce inconsistent results under nested negation and intersection
This is a follow up to [issue 4044](https://bugs.ruby-lang.org/issues/4044). Its fix (https://github.com/k-takata/Onigmo/issues/4) handled the cases that were reported in the original issue, but there are other cases, which were omitted ... jirkamarsik (Jirka Marsik)
07:52 AM Revision b7d01b0d (git): Refined define_thread_class
Reduce duplications
* ID caluculations of the same name
* checks against the same name
* registration to the root module hash
nobu (Nobuyoshi Nakada)
03:10 AM Revision ac8c674a (git): * 2021-06-28 [ci skip]
git[bot]
02:30 AM Feature #17930: Add column information into error backtrace
@matz Thank you for your comment! Then, I'll pick up `error_highlight`. I will update and then merge my PR later. mame (Yusuke Endoh)
02:27 AM Feature #17930: Add column information into error backtrace
The `pretty` from `pretty print` strongly suggests beautifying indentation, which the proposed feature doesn't provide.
So I vote for `highlight` or `emphasize`.
Matz.
matz (Yukihiro Matsumoto)
01:53 AM Revision 47a9b58b (git): Share freeze option handling
nobu (Nobuyoshi Nakada)

06/27/2021

05:24 PM Feature #17930: Add column information into error backtrace
I read the source code of rustc. https://github.com/rust-lang/rust/tree/master/compiler/rustc_errors
The feature name seems to be "rustc_errors", which is not helpful for my proposal to decide the gem name, but I found some inspiring ...
mame (Yusuke Endoh)
01:49 PM Feature #17930: Add column information into error backtrace
Okay thanks. As far as I take a glance at the references that you showed, the word seems to be mainly used for a "cause". However, the underline in my proposal is not necessarily a cause, so I'm unsure whether it is more appropriate.
...
mame (Yusuke Endoh)
01:22 PM Feature #17930: Add column information into error backtrace
duerst (Martin Dürst) wrote in #note-25:
> If all of pretty/emphasis/highlight are problematic, what's your suggestion?
I already gave suggestions.
mame (Yusuke Endoh) wrote in #note-26:
> ...
I had English in mind. The link https://eo...
sawa (Tsuyoshi Sawada)
12:29 PM Feature #17930: Add column information into error backtrace
@duerst It sounds similar to prettyprint which is an existing built-in gem. As far as I know, there is no grammatical rules about a gem name. I don't find any consistent rule when I see prettyprint, power_assert, did_you_mean, debug, etc... mame (Yusuke Endoh)
12:13 PM Feature #17930: Add column information into error backtrace
sawa (Tsuyoshi Sawada) wrote in #note-24:
> To my understanding, the word "prettify" means and has been used to add cosmetics to the output, like adding line breaks and indenting or adding colors. The words "emphasis" and "highlight" ar...
duerst (Martin Dürst)
12:01 PM Feature #17930: Add column information into error backtrace
To my understanding, the word "prettify" means and has been used to add cosmetics to the output, like adding line breaks and indenting or adding colors. The words "emphasis" and "highlight" are in a similar vein. The functionality in que... sawa (Tsuyoshi Sawada)
06:42 AM Feature #17930: Add column information into error backtrace
mame (Yusuke Endoh) wrote in #note-22:
> Thank you for suggestions about the name. For the record, @pocke and @naruse like "pretty_error". I'll bring this to the next dev-meeting and ask @matz to pick up.
I'm not convinced about "pre...
duerst (Martin Dürst)
12:17 PM Revision e724857f (git): Show leaked file descriptors only, without cwd, txt, and so on
nobu (Nobuyoshi Nakada)
12:13 PM Revision 3839a8fe (git): Narrow the tracing of object allocations to during each test
nobu (Nobuyoshi Nakada)
02:45 AM Bug #17661: IO#each will segfault when if file is closed inside an `each_byte` block
Moved the check just after `rb_yield`.
And I found that `each_codepoint` also had a similar bug.
@wyhaines Could you add a spec for the method?
nobu (Nobuyoshi Nakada)
02:38 AM Bug #17661 (Closed): IO#each will segfault when if file is closed inside an `each_byte` block
Applied in changeset commit:git|13939d61b4b69bd109c5f41303c79868d639fa44.
----------
Check if closed after each yield [Bug #17661]
nobu (Nobuyoshi Nakada)
02:35 AM Feature #18008: `keyword_init?` method for Struct
+1. While we aim to obviate `keyword_init` in [Feature #16806], unless we also intend to deprecate the option (for now we don't), we'd need to have the check to correctly write a deserializer of Structs. k0kubun (Takashi Kokubun)
01:56 AM Feature #18008 (Closed): `keyword_init?` method for Struct
I'd like to know whether my struct was initialized with `keyword_init: true` or not.
This information is useful when writing a deserializer (attached an example below).
```ruby
S1 = Struct.new(:a, :b, keyword_init: true)
S2 = Struc...
hkdnet (Ko Sato)
02:18 AM Revision 13939d61 (git): Check if closed after each yield [Bug #17661]
nobu (Nobuyoshi Nakada)
01:52 AM Revision 35c7e83b (git): [ruby/irb] Optimize show_source command further
https://github.com/ruby/irb/pull/249 actually slowed down how `code` is
concatenated. The original way of creating `code` is faster.
[before]
user system total real
2.420137 0.005364 2.425501 ( 2.426264)
[after...
k0kubun (Takashi Kokubun)
01:36 AM Revision 6eb7c663 (git): [ruby/irb] Improve performance of `show_source` for large class
https://github.com/ruby/irb/commit/2b79e9ad21 pocke (Masataka Kuwabara)

06/26/2021

11:37 PM Revision bf789af2 (git): Added macros for days in month
nobu (Nobuyoshi Nakada)
11:37 PM Revision 1fd8b6f2 (git): Shrink monthly tables
nobu (Nobuyoshi Nakada)
07:33 PM Bug #12052 (Closed): String#encode with xml option returns wrong result for totally non-ASCII-compatible encodings
Applied in changeset commit:git|e86c1f6fc53433ef5c82ed2b7a4cc9a12c153e4c.
----------
Work around issue transcoding issue with non-ASCII compatible encodings and xml escaping
When using a non-ASCII compatible source and destination enco...
jeremyevans (Jeremy Evans)
12:42 AM Bug #12052: String#encode with xml option returns wrong result for totally non-ASCII-compatible encodings
jeremyevans0 (Jeremy Evans) wrote in #note-3:
> It looks like this issue occurs when using both multibyte source and destination encoding. If either the source or destination encoding is not multibyte, the issue doesn't occur:
> ......
duerst (Martin Dürst)
07:32 PM Revision b1428b27 (git): * 2021-06-27 [ci skip]
git[bot]
07:32 PM Revision e86c1f6f (git): Work around issue transcoding issue with non-ASCII compatible encodings and xml escaping
When using a non-ASCII compatible source and destination encoding
and xml escaping (the :xml option to String#encode), the resulting
string was broken, as it used the correct non-ASCII compatible
encoding, but contained data that was ASC...
jeremyevans (Jeremy Evans)
05:08 PM Bug #14591 (Closed): Files with invalid multi-byte characters will cause Find::find() to raise EINVAL exception
jeremyevans0 (Jeremy Evans)
07:05 AM Revision 391abc54 (git): Scan the coderange in the given encoding
nobu (Nobuyoshi Nakada)
 

Also available in: Atom