Activity
From 07/13/2022 to 07/19/2022
07/19/2022
-
07:35 PM Bug #18927: Can't access class variable directly with class inheritance
- Class variable lookup is different from instance variable and constant lookup, but it is more similar to constant lookup. It's based on the namespace/cref containing the access, not the receiver of the method containing the access (see `...
-
07:11 PM Bug #18927 (Rejected): Can't access class variable directly with class inheritance
- If a child class inherits from a parent class, and the child class sets a class variable, the parent class can't access the class variable literal:
```
class Parent
def self.class_var
puts @@class_var
end
end
class Chi... -
06:03 PM Revision c0aa8ee9 (git): [rubygems/rubygems] Fix casing typo when resetting `RbConfig::CONFIG["ENABLE_SHARED"]`
- https://github.com/rubygems/rubygems/commit/3d1ae0050b
-
03:44 PM Bug #18912: Build failure with Xcode 14 and macOS 13 (Ventura) Beta
- Can you build with `bigdecimal` included and post
`cat ext/bigdecimal/mkmf.log` from the build directory?
I ran into similar errors when building on illumos and
it was due to `bigdecimal` not configuring properly. -
03:23 PM Bug #18905 (Closed): :"@=".inspect is non-evaluatable
- Applied in changeset commit:git|8f1759143533d2b772efd5184ba02738f66fe1fc.
----------
[Bug #18905] Check symbol name types more strictly - 03:23 PM Revision 9ce27dd2 (git): * 2022-07-20 [ci skip]
-
03:23 PM Revision 8f175914 (git): [Bug #18905] Check symbol name types more strictly
- 02:51 PM Revision 631b34ef (git): [rubygems/rubygems] Bundler: change error/warning message for multiple global sources
- Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
https://github.com/rubygems/rubygems/commit/316564b8fc -
02:26 PM Feature #18926 (Open): Ractor should support mutexes and treat the block as critical section across ractors
- This is an improvement suggestion in order to foster adoption of ractors. It may not be technically impossible or unfeasible for some reason, as it may lead to deadlocks, so feel free to discard it if massively hard to undertake.
Ther... -
10:47 AM Bug #18909: ARGF.readlines reads more than current file
- JohanJosefsson (Johan Josefsson) wrote in #note-13:
> Sad to hear that. Those perl-like features have been my favorite part of ruby. It lets me be a command line ninja and make exceedingly powerful one liners while employing less magic ... -
09:28 AM Bug #18909: ARGF.readlines reads more than current file
- Is this what you want?
```
$ echo primo > a
$ echo secundo >> a
$ echo PRIMO > b
$ ruby -i.bak -e 'until ARGF.closed?; x = ARGF.file.readlines; puts "#{ x.size } lines"; puts x; ARGF.skip; end' a b
$ cat a
2 lines
primo
se... -
10:15 AM Feature #18784: `FileUtils.rm_f` and `FileUtils.rm_rf` should not mask exceptions
- Thank you @mame for doing that!
I wrote the issue in code in the upstream issue: https://github.com/ruby/fileutils/issues/57, but I forgot to also add that kind of repro here. So thanks again! :) -
07:50 AM Feature #18784: `FileUtils.rm_f` and `FileUtils.rm_rf` should not mask exceptions
- It would be helpful to write the issue in code:
```
$ mkdir foo # create "foo/bar" with permission 555
$ touch foo/bar
$ chmod 555 foo
$ ruby -rfileutils -e 'FileUtils.rm_rf("foo")' # expected:... -
09:36 AM Feature #18897: Add a new instruction for sending messages to ephemeral stack arrays
- @tenderlovemaking Thank you! Your patch looks good to me.
-
09:06 AM Feature #18925: Add `FileUtils.ln_sr` to create symbolic links relative to link location
- https://github.com/ruby/fileutils/pull/97
-
08:53 AM Feature #18925 (Closed): Add `FileUtils.ln_sr` to create symbolic links relative to link location
- Usual `File.symlink` (and `ln -s`) creates a symbolic link as the given argument.
GNU coreutils `ln` has `-r` (`--relative`) option, which resolves the source path relative to the current directory as relative to the link location.
`... -
08:41 AM Revision cb9fd920 (git): str_buf_cat: preserve coderange when going through fastpath
- rb_str_modify clear the coderange, which in this case isn't
necessary.
```
compare-ruby: ruby 3.2.0dev (2022-07-12T15:01:11Z master 71aec68566) [arm64-darwin21]
built-ruby: ruby 3.2.0dev (2022-07-19T07:17:01Z faster-buffer-conc.. 3cad62... -
08:41 AM Revision 0ae8dbbe (git): rb_str_buf_append: fastpath to str_buf_cat
- If the LHS is ASCII compatible and the RHS is 7BIT
we can directly concat without being concerned about
anything else.
Benchmark:
```
compare-ruby: ruby 3.2.0dev (2022-07-12T15:01:11Z master 71aec68566) [arm64-darwin21]
built-ruby: ruby... -
08:33 AM Revision ee1d2b27 (git): [ruby/fileutils] Add an octal prefix to clarify to be octal
- https://github.com/ruby/fileutils/commit/332025bc02
Co-Authored-By: David Rodríguez <deivid.rodriguez@riseup.net> -
06:48 AM Revision d084585f (git): Rename ENCINDEX_ASCII to ENCINDEX_ASCII_8BIT
- Otherwise it's way too easy to confuse it with US_ASCII.
-
02:41 AM Feature #12648: `Enumerable#sort_by` with descending option
- It's a lot of work to write `sort_by { -1 * _1.created_at.to_f }` when the target objects are `Time` instances.
```ruby
['foo', 'bar', 'baz'].map { search(_1) }.flatten.sort_by { -1 * _1.created_at.to_f }
def search(query)
clie... -
12:40 AM Misc #18921: Remove workaround for some fixed bug (llvm.4898 & 38095)?
- Well I'm not against deleting those parts someday, but our CI still have clang-3.9 coverage. It seems we still need them.
We need to define supported versions of clang first. We do so for GCC (>=4). See #18839
07/18/2022
-
09:06 PM Revision 85ea4673 (git): Separate TS_IVC and TS_ICVARC in is_entries buffers
- This allows us to treat cvar caches differently than ivar caches.
- 07:46 PM Revision 3ac9956d (git): [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
- Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.19 to 0.9.20.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.19...v0.9.20)
---
updated-depende... -
07:44 PM Revision ecff3349 (git): Extract vm_ic_entry API to mimic vm_cc behavior
- 05:49 PM Revision f240e28d (git): * 2022-07-19 [ci skip]
- 05:49 PM Revision c6fe11cf (git): [rubygems/rubygems] Bump rb-sys
- Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.19 to 0.9.20.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.19...v0.9.20)
---
updated-depende... -
02:49 PM Revision a1c0aa77 (git): Remove unused variable in array.c
- vshared is no longer used.
-
02:24 PM Revision fd0902bf (git): [rubygems/rubygems] Move fileutils require to be even more lazy
- If directories are already created (the common case), fileutils won't be
required at all.
https://github.com/rubygems/rubygems/commit/63a9b94fc9 -
01:36 PM Revision dd362a78 (git): [ruby/rdoc] Fix call-seq for aliased method with similar names
- deduplicate_call_seq has a bug that skips call-seq for methods where the
alias is a prefix of the method name. For example, if the alias name is
"each" and the current method name is "each_line", then
deduplicate_call_seq will skip all c... -
12:18 PM Bug #18922: Time at 24:00:00 UTC is not normalized
- As a record: the behavior I found was about Time#inspect, which was clearly wrong.
```
$ ruby -ve 'p Time.new(2000, 1, 1, 24, 0, 0, "Z")'
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
2000-01-01 23:00:00 UTC
```
... -
10:07 AM Revision a74634de (git): [rubygems/rubygems] Fix upgrading RubyGems with a customized `Gem.default_dir`
- https://github.com/rubygems/rubygems/commit/16d01f9486
-
10:07 AM Revision 01560e1c (git): [rubygems/rubygems] Improve error message when gems cannot be found
- Include the source of each gem.
https://github.com/rubygems/rubygems/commit/a0bed2fb79
07/17/2022
-
08:42 PM Misc #18924 (Open): lstrlen and lstrcat still in use
- In practice, as-used, this is probably benign, but is a Terrible Idea.
There are several places where someone's still using lstrcat and lstrlen in ruby.
lstrcat catches and ***suppresses*** access violations. I have been burned by... -
08:33 PM Bug #18923 (Open): Dir.glob Errno::ENAMETOOLONG - Caused by outdated logic in open_dir_handle (win32.c)
- This bug - as do most of my bug reports - started out while dealing with something productive and completely unrelated :)
In short: `open_dir_handle` in `win32.c` handles long paths incorrectly.
At best, this will cause programs th... -
04:00 PM Bug #18922 (Closed): Time at 24:00:00 UTC is not normalized
- Applied in changeset commit:git|68903df6f6fc548f3bf68fb09ee8b2495dcd28f0.
----------
[Bug #18922] Normalize time at 24:00:00 UTC -
03:08 PM Bug #18922: Time at 24:00:00 UTC is not normalized
- `Time.new(2000, 1, 1, 24, 0, 0, "Z").to_a[0, 6]` returns `[0, 0, 24, 1, 1, 2000]` since 2.7.
It seems to be a much older bug, just that `"Z"` was not supported 2.6 and earlier and didn’t appear. -
01:41 PM Bug #18922 (Closed): Time at 24:00:00 UTC is not normalized
- Reported by @mame.
```shell-session
$ ruby3.0 -e 'p Time.new(2000, 1, 1, 24, 0, 0, "-00:00").to_a[0, 6]'
[0, 0, 0, 2, 1, 2000]
```
```shell-session
$ ruby3.1 -e 'p Time.new(2000, 1, 1, 24, 0, 0, "-00:00").to_a[0, 6]'
[0, 0, 24, ... - 03:59 PM Revision 82add06f (git): * 2022-07-18 [ci skip]
-
03:59 PM Revision 68903df6 (git): [Bug #18922] Normalize time at 24:00:00 UTC
-
10:57 AM Revision 64cff780 (git): `Gem.unpack` extracts gems so able to execute
- Creates simple bin stubs to load the extracted executable files.
After only extracted under `gems` directory, the gems are considered
installed but the executable scripts are not found.
Also the second argument is now the parent of the p... -
10:44 AM Revision fab8f3bd (git): [rubygems/rubygems] Stop using `/dev/null` for silent ui for WASI platform
- WASI doesn't guarantee that `/dev/null` is present.
So without this patch, we needed to mount host's `/dev` directory to WASI
guest process to avoid `ENOTCAPABLE` error while `require "bundler/setup"`
https://github.com/rubygems/rubygem... - 09:27 AM Revision 5081d0dd (git): [rubygems/rubygems] bundler: fix typo in inline RuboCop config
- Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
https://github.com/rubygems/rubygems/commit/e11f5a143b -
08:47 AM Revision ef2d6730 (git): [rubygems/rubygems] Show a proper error if extension dir is not writable
- Instead of showing the bug report template.
https://github.com/rubygems/rubygems/commit/0c8b6f7dd5 -
08:47 AM Revision 3cfc3fcf (git): [rubygems/rubygems] Unify some common code
- https://github.com/rubygems/rubygems/commit/972e8ff965
-
08:47 AM Revision 14f52cfc (git): [rubygems/rubygems] Don't call `#build_extensions` at all if there are no extensions
- https://github.com/rubygems/rubygems/commit/5ecc0e0b31
-
01:30 AM Revision d20886dd (git): Create build-only gemspec files only if having an extension
-
01:18 AM Revision d010eba2 (git): Fix tests for ABI incompatible binary error messags
- 12:02 AM Revision efa557cb (git): * 2022-07-17 [ci skip]
-
12:01 AM Revision 50cfecd0 (git): Show ABI incompatible binary path
07/16/2022
-
03:52 PM Misc #18921 (Open): Remove workaround for some fixed bug (llvm.4898 & 38095)?
- I notice a workaround for llvm.4898 in constant_p.h:
https://github.com/ruby/ruby/blob/master/include/ruby/internal/constant_p.h
``` c
* Note that __builtin_constant_p can be applicable inside of inline functions,
* according to GC... -
10:57 AM Bug #18920 (Closed): Documentation on ARGF.inplace_mode and ARGF.inplace_mode= is wrong
- The file extension is appended to a copy of the original file and not to the modified file.
Cf. man page for ruby. -
10:47 AM Bug #18909: ARGF.readlines reads more than current file
- Eregon (Benoit Daloze) wrote in #note-11:
> My two cents, options like `-i`/`-n`/`-p` shouldn't be used, I think they are vestigial legacy flags inherited from Perl or so.
> ...
Sad to hear that. Those perl-like features have been my f... -
10:25 AM Bug #18909: ARGF.readlines reads more than current file
- austin (Austin Ziegler) wrote in #note-10:
...
In your link it is clear that e.g. in the case of read, `ARGF` concatenates the input files, not that it always treats the input as a concatenated file. (That third paragraph.) It is also ve... -
10:06 AM Bug #18909: ARGF.readlines reads more than current file
- My two cents, options like `-i`/`-n`/`-p` shouldn't be used, I think they are vestigial legacy flags inherited from Perl or so.
Ruby is expressive enough, it is short enough to have an explicit `File.write`, loop, or whatever you need w... -
10:33 AM Revision 5ae83151 (git): [rubygems/rubygems] Drop support for old `Gem::Specification` versions
- `specification_version` method was added before RubyGems 1.0, and
`add_runtime_dependency` method was before 1.2. These seem aged
enough to remove.
https://github.com/rubygems/rubygems/commit/92770c5cd9 -
08:58 AM Revision 6c1d7dab (git): Fix conversion from absolute path to relative path
-
07:38 AM Revision c093e7d6 (git): Avoid to symlink under symlink
-
06:28 AM Revision 5101671c (git): Disable parallel built in test-bundled-gems
-
03:19 AM Feature #18885: End of boot advisory API for RubyVM
- This is a really nice idea. My current implementation uses `GC.compact` during prefork stage, and it shows a big advantage. I'm happy to test any proposals with real world workloads.
-
02:26 AM Revision b536ac2c (git): test-bundled-gems.rb needs `+` with GNU make
- This script runs `make` internally, and sub-`make`s need the
environment variable for the job server when compiling in parallel. -
01:11 AM Revision 78d2be69 (git): Move copying/linking extra files to Makefile so removed by `clean`
07/15/2022
-
10:07 PM Feature #18919 (Assigned): Ractor: can't share #Method objects
- The following is not shareable:
```ruby
> meth = ::Kernel.method(:BigDecimal)
=> #<Method: Kernel.BigDecimal(*)>
<internal:ractor>:816:in `make_shareable': can not make shareable object for #<Method: Kernel.BigDecimal(*)> (Ractor::... -
08:39 PM Revision f375280d (git): Add benchmarks for setting / getting ivars on generics
-
07:17 PM Bug #18909: ARGF.readlines reads more than current file
- JohanJosefsson (Johan Josefsson) wrote in #note-9:
> There is nothing in the introductory paragraphs on ARGF that says that the input files must be treated as a concatenated file. On the contrary, there is this 'current file' concept th... -
06:48 PM Bug #18909: ARGF.readlines reads more than current file
- But this "documented API" was not implemented in the way it was described. From my limited viewpoint I would have preferred a change in the implementation and not in the documentation.
There is nothing in the introductory paragraphs on ... -
05:51 PM Bug #18909: ARGF.readlines reads more than current file
- JohanJosefsson (Johan Josefsson) wrote in #note-7:
> Yes, ARGF can work with a concatenated pseudo file in several ways but this idea collides squarely with the idea of inplace editing (-i option). Kernel.readlines already makes an arra... -
05:36 PM Bug #18909: ARGF.readlines reads more than current file
- Yes, ARGF can work with a concatenated pseudo file in several ways but this idea collides squarely with the idea of inplace editing (-i option). Kernel.readlines already makes an array from the concatenated file. Therefore I think a meth...
-
05:30 PM Bug #18909 (Closed): ARGF.readlines reads more than current file
- Applied in changeset commit:git|280b805d040fa537d5a459b40d4bfa6d49700905.
----------
[DOC] Fix documentation for ARGF#readlines
[Bug #18909] -
03:53 PM Bug #18909: ARGF.readlines reads more than current file
- Moreover, it is documented that `ARGF` works this way in general: https://ruby-doc.org/core-3.1.0/ARGF.html
> You can now use `ARGF` to work with a concatenation of each of these named files. For instance, `ARGF.read` will return the co... -
02:28 PM Bug #18909: ARGF.readlines reads more than current file
- This is how it's designed to work, as specified in the [Ruby spec](https://github.com/ruby/spec/blob/master/core/argf/shared/readlines.rb). Unfortunately, this makes it difficult to use the `-i` flag since `ARGF.readlines` will read to t...
-
06:33 AM Bug #18909: ARGF.readlines reads more than current file
- Hm…if I understand it correctly, this just changed the documentation to conform to a strange behavior. Strange in the sense that the -i (inplace) option becomes meaningless in the case of multiple files an ARGV.readlines. Would it not be...
- 05:52 PM Revision aed1539e (git): YJIT: Add send unit tests (#6143)
- Add send unit tests for YJIT
- 05:30 PM Revision 77ec1cd4 (git): * 2022-07-16 [ci skip]
-
05:30 PM Revision 36ca0e58 (git): [ruby/reline] Use color name instead of code (integer) in dialog color APIs
- As pointed out in the
[comment](https://github.com/ruby/reline/pull/413#issuecomment-1168033973),
the code is actually a control sequence and not only for colors.
To make the dialog color APIs safer to use, we should restrict its
usages... -
04:32 PM Bug #18914: Segmentation fault during Ruby test suite execution
- > The crash is happening when a certain object gets garbage collected. The object will only get collected when the GC runs, and collection points are basically random. In other words, the suite will fail on random tests because the GC ha...
-
03:57 PM Bug #18914: Segmentation fault during Ruby test suite execution
- jprokop (Jarek Prokop) wrote in #note-2:
> Thanks, the response gave the much-needed push to get to the correct tickets :).
> ...
The crash is happening when a certain object gets garbage collected. The object will only get collected ... -
03:22 PM Feature #18918 (Open): Can't compile ruby master with AFL ASAN
- On ubuntu 20.04, I want to compile ruby on master branch with AFL's afl-clang-fast but I got ASAN error
```sh
$ ruby -v
$ ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
```
```sh
$ git rev-parse --short HEAD
$ ... -
02:30 PM Revision 280b805d (git): [DOC] Fix documentation for ARGF#readlines
- [Bug #18909]
-
02:29 PM Revision c5343929 (git): Fixes ivar benchmarks to not depend on object allocation
- Prior to this change, we were measuring object allocation as well
as setting instance variables within ivar benchmarks. With this
change, we now only measure setting instance variables within
ivar benchmarks. -
01:21 PM Revision 7424ea18 (git): Implement Objects on VWA
- This commit implements Objects on Variable Width Allocation. This allows
Objects with more ivars to be embedded (i.e. contents directly follow the
object header) which improves performance through better cache locality. -
01:11 PM Bug #18917 (Feedback): Crash on jekyll -v
- Thank you for the bug report, however Ruby 2.6 has been EOL as of March 31, 2022. Please upgrade to at least Ruby 2.7.6. If you still run into this crash after upgrading, please open another ticket.
-
12:51 PM Bug #18917 (Feedback): Crash on jekyll -v
- Hi there,
I have encountered a crash during the jekyll -v command on MacOS Terminal.
Steps to reproduce:
1. Open the terminal and run the following command "sudo gem install jekyll"
2. See that the following;
* Successfully ... - 09:45 AM Revision 7fda741f (git): [rubygems/rubygems] Use https protocol for URLs for config mirror
- example.org is used mirror URL as an example, not to make access to
a (potential) third-party domain.
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
https://github.com/rubygems/rubygems/commit/31230f850c - 08:32 AM Revision 8e451d10 (git): [rubygems/rubygems] Fix wrong information about default RubyGems source
- Also fix regression from rubygems/rubygems PR 3056
https://my.diffend.io/gems/rubygems-update/1.3.5/1.3.6/page/4#d2h-514986
https://my.diffend.io/gems/rubygems-update/2.0.0/2.0.2/page/2#d2h-514986
Signed-off-by: Takuya Noguchi <takninn... -
05:54 AM Revision 6c2cad83 (git): MJIT: Share rb_mjit_unit through mjit_unit.h
- mjit_compile.c should be able to access this more easily.
-
04:14 AM Revision ed8c21bb (git): Ensure symlinks to bundled gem with exts have parent dir
- When configuring with `--disable-rpath` and `--static-linked-ext` (e.g.
building for WASI), `extmk.rb` doesn't build exts under bundled gems,
and `.bundle/gems/#{gemname}-#{ver}` are not created due to no call of
`extmake`.
b249178398608... -
03:34 AM Revision 439d31bc (git): MJIT: Merge mjit_worker.c back to mjit.c (#6138)
- Since #6006, we no longer avoid executing GC on mjit_worker.c and thus
there's no need to carefully change how we write code whether you're in
mjit.c or mjit_worker.c anymore. -
12:10 AM Revision 736fe48b (git): Remove GitHub Actions bundled_gems workflow in stable branch.
07/14/2022
-
09:12 PM Revision 3f962a20 (git): Avoid SEGV on capture_cc_entries
-
08:47 PM Bug #18909: ARGF.readlines reads more than current file
- Thank you for the report. I opened [a pull request](https://github.com/ruby/ruby/pull/6137) that fixes this issue.
-
08:37 PM Revision c8748942 (git): [DOC] Fix typo in documentation for IO#readlines
-
08:30 PM Bug #18887 (Closed): documentation for protected methods
- Applied in changeset commit:git|4813443837d76e27eb293f1928bda7a47b9e8f3f.
----------
Fix language describing protected methods
Fixes [Bug #18887] -
08:27 PM Bug #18887: documentation for protected methods
- I don't think it is correct before or after the change, though after comes closer.
Before:
```
When calling a protected method the
sender must be a subclass of the receiver or the receiver must be a subclass of
the sender. Othe... -
08:28 PM Revision 48134438 (git): Fix language describing protected methods
- Fixes [Bug #18887]
-
08:00 PM Bug #18883: parse.y: trailing comma cannot coexist with star
- zverok (Victor Shepelev) wrote in #note-1:
> As far as I understand, trailing comma is an equivalent of `*_` (unpack the rest and drop it):
> ...
Close. `*_` will set a local variable, and allocate an extra array. `x, = [1, 2, 3]` is ... -
04:59 PM Revision b8247a16 (git): Correct comment explaining env flags [ci skip]
- We use 4 values for env flags now, which also shifted over the frame
flags by one bit. -
04:55 PM Bug #18914: Segmentation fault during Ruby test suite execution
- Thanks, the response gave the much-needed push to get to the correct tickets :).
Ok, I think this is close-able as not a bug of Ruby AFAICT, but I am not sure.
Basically, it looks like a combination of upstream FFI, process forking... -
03:56 PM Bug #18914: Segmentation fault during Ruby test suite execution
- Looks like a problem with libffi. Both C backtraces point at `ext/fiddle/closure.c:32`:
```
#4 0x00007ffff41910b1 in dealloc (ptr=0x55555e5e82b0) at /builddir/build/BUILD/ruby-3.1.2/ext/fiddle/closure.c:32
```
Looks like that l... -
10:20 AM Bug #18914 (Closed): Segmentation fault during Ruby test suite execution
- On Fedora, we sometimes observe segfault in the Ruby test suite, it seems to be GC related and happens more often in a few specific tests.
Ruby is built with LTO enabled on GCC 12:
```
$ gcc --version
gcc (GCC) 12.1.1 20220628 (Red H... - 04:39 PM Revision 509d0a92 (git): [ruby/psych] Fix infinite loop bug after YAML_MEMORY_ERROR (psych issue #440)
- https://github.com/ruby/psych/commit/6c56700fb2
- 03:25 PM Revision a5471b61 (git): * 2022-07-15 [ci skip]
-
03:25 PM Revision 1df9b6c3 (git): Get the insns_address_table from the vm_exec_core module table...
-
02:43 PM Misc #18916 (Closed): Windows mswin builds - should gmp be used?
- Currently, Windows mswin builds are using packages from microsoft/vcpkg. The following packages are used:
libffi libyaml openssl readline zlib
The gmp package is also available. Should it be used in the build? Not sure if there ... -
01:39 PM Feature #18915 (Open): New error class: NotImplementedYetError or scope change for NotImplementedError
- # Abstract
Introduce `NotImplementedYetError` exception that should be used in case when the codepath has not been implemented by the developer for some reason (maybe they're designing an abstract class or are designing some sort of i... -
12:02 PM Revision 67375932 (git): [ruby/bigdecimal] Remove checks for `struct RRational` and `struct RComplex`
- These are used to see only if `RRATIONAL` and `RCOMPLEX` are
available, however, these two are macros and can be checked with
`#ifdef` directly.
https://github.com/ruby/bigdecimal/commit/175bbacd43 -
08:31 AM Feature #18913: Add object name to the NoMethodError error message: undefined method `_method_' for `_class_' in `_object_name_'
- I don't understand what you mean by "object name", but did you try Ruby 3.1? It shows a code snippet that caused NameError and NoMethodError.
```
$ ruby test.rb
test.rb:5:in `<main>': undefined method `foo' for nil:NilClass (NoMetho... -
08:04 AM Feature #18913 (Rejected): Add object name to the NoMethodError error message: undefined method `_method_' for `_class_' in `_object_name_'
Hi
I think the `NoMethodError` error message is missing the object name. The object name is already present in `NameError`. Currently one needs to dig into the source code and debug it in order to find which variable or method is ac...-
08:13 AM Revision 8b64e8f2 (git): [ruby/set] Get rid of use of `Gem::Version`
- When retrying in ruby's test, it seems possible that `Gem` is not
loaded.
```
1) Error:
TC_Set_Builtin#test_to_set:
NameError: uninitialized constant TC_Set_Builtin::Gem
/export/home/chkbuild/chkbuild-gcc/tmp/build/20220708T070011... -
08:12 AM Bug #18911: Process._fork hook point is not called when Process.daemon is used
- Thanks @mame for the awesomely quick reply :)
> @ivoanjo (Ivo Anjo) Do you have difficulties due to this behavior in terms of ddtrace? Or you were just "surprised"? The motivation is very important to discuss the issue. Process.daemon... -
05:48 AM Bug #18911: Process._fork hook point is not called when Process.daemon is used
- @nobu said that this is because `Process.daemon` does not call [fork(2)](https://man7.org/linux/man-pages/man2/fork.2.html) but [daemon(3)](https://man7.org/linux/man-pages/man3/daemon.3.html). We happen to know that daemon(3) calls fork...
-
01:07 AM Bug #18911: Process._fork hook point is not called when Process.daemon is used
- @ivoanjo Do you have difficulties due to this behavior in terms of ddtrace? Or you were just "surprised"? The motivation is very important to discuss the issue. `Process.daemon` stops threads, so I guess you have any difficulties, but I'...
-
12:59 AM Bug #18911: Process._fork hook point is not called when Process.daemon is used
- @akr suggested special treatment for `Process.daemon`, and I followed him when implementing it. So this is by design. However, I forgot the reason why `Process._fork` should ignore `daemon`. I'll ask him at the next dev meeting.
-
07:26 AM Revision 02567756 (git): [ruby/un] Support `FileUtils.cp_lr`
- https://github.com/ruby/un/commit/e976ad8a7c
-
07:21 AM Revision 7c58c55c (git): [ruby/timeout] gemspec: Drop unused directives "executables"
- This gem exposes no executables.
https://github.com/ruby/timeout/commit/70be2bd48a -
06:06 AM Revision 76de7a92 (git): [rubygems/rubygems] Fix misleading error if compact index cannot be copied
- Previously if `~/.bundle/cache/compact_index/rubygems.org.*/version`
were owned by root with read-only access, `bundle install` would fail
with a misleading error message. For example:
```
There was an error while trying to write to `/t... -
05:40 AM Bug #18912 (Closed): Build failure with Xcode 14 and macOS 13 (Ventura) Beta
- TL;DR: We fixed this issue at Ruby 2.7-3.1 and master branch. But the stable versions are not released yet.
* Option 1: We strongly recommend to not upgrade Xcode 14 and its toolchains for macOS 12(Monterey) users. If you already upda... -
01:07 AM Misc #18836: DevMeeting-2022-07-21
- * [Bug #18911] Process._fork hook point is not called when Process.daemon is used (mame)
* akr, why should `Process._fork` have ignored `Process.daemon`? -
12:00 AM Revision 9d900620 (git): Set `GEM_PATH` environment variable in runruby.rb
-
12:00 AM Revision 416cba90 (git): Try to install also gemspec files under gem directories
- Gemspec files having extension libraries are placed under each gem
directories now. -
12:00 AM Revision b2491783 (git): Install gems `lib` directory to build path
-
12:00 AM Revision a2c66f52 (git): Make dependency-free gemspec files
- The default gems have not been installed yet in the build directory,
bundled gems depending on them can not work. As those dependencies
should be usable there even without rubygems, make temporary gemspec
files without the dependencies,... -
12:00 AM Revision e1a4e44f (git): Extract gemspec files to each gem directories
- Since extension libraries can not be built in the source directory,
rubygems warns gems have extension libraries as the extensions are not
built. To order to suppress this warnings, extract such gemspec files
under each gem directories ...
07/13/2022
-
07:47 PM Revision 8c74eaa0 (git): [rubygems/rubygems] Fix `gem update --system` crash while regenerating binstubs
- Since a few commits ago, we no longer call `Gem::Specification.reset`
after each invocation of `Gem::Installer#install`. This means we don't
call it when the default Bundler is installed during `gem update
--system`. This causes no issue... -
05:39 PM Revision 664c23db (git): GVL Instrumentation: remove the EXITED count assertion
- It's very flaky for some unknown reason. Something we have
an extra EXITED event. I suspect some other test is causing this. -
04:00 PM Feature #14564: `dig` opposite method
- Instead of different `dig` and `bury` tools, a 'lens' abstraction could combine the two.
```ruby
deep_hash = {a: {b: {c: {d: 100}}}}
p deep_hash.dig(:a, :b, :c, :d)
class Lens
def self.lens(*keys)
lens = Leaf.new(keys.p... - 03:44 PM Revision 13d2ae6d (git): * 2022-07-14 [ci skip]
-
03:44 PM Revision 081bd061 (git): [DOC] Correct call-seq directive in string.c (#6131)
- Correct call-seq directive in string.c
-
02:16 PM Bug #18911 (Closed): Process._fork hook point is not called when Process.daemon is used
- Hello there! I'm working at Datadog [on the `ddtrace` gem](https://github.com/DataDog/dd-trace-rb), and we need to hook into fork operations to make sure that our products work correctly/automatically even in environments that fork.
A... -
01:33 PM Feature #18910 (Closed): Improve maintainability of LLDB helpers
- **[Github PR: #6129](https://github.com/ruby/ruby/pull/6129)**
## Summary
`lldb_cruby.py` manages lldb custom commands using functions. The file is a large list of Python functions, and an init handler to map some of the Python fun... -
01:14 PM Revision d5c5fcb8 (git): Bundled gem extensions are out of scope of update-deps
-
01:00 PM Bug #18909 (Closed): ARGF.readlines reads more than current file
- The docuentation says that ARGF.readlines: *Reads ARGF's current file in its entirety* , but this is what happens:
`$ cat fileA
A
$ cat fileB
B
$ ruby -e 'puts ARGF.readlines' fileA fileB
A
B`
i.e. it reads both the current fil... -
12:16 PM Revision 8290d766 (git): [ruby/timeout] Give a name to the background thread
- https://github.com/ruby/timeout/commit/5594ae2f4d
-
12:13 PM Revision 26826968 (git): thread/test_instrumentation_api: cleanup all existing threads in setup
- We saw the following failure:
```
TestThreadInstrumentation#test_thread_instrumentation [/tmp/ruby/v3/src/trunk-random3/test/-ext-/thread/test_instrumentation_api.rb:25]:
Expected 0..3 to include 4.
```
Which shouldn't happen unless som... -
11:53 AM Revision ce1621b9 (git): Update bundled gem debug-1.6.1.
-
07:09 AM Revision c4e29737 (git): Fix a typo (thanks @Maumagnaguagno !)
-
07:09 AM Revision 1fe6c926 (git): Specify usable escape sequences in Exception#detailed_message
- An error message is primarily rendered in a terminal emulator, but is
also shown in a browser by converting it to a HTML fragment.
However, the conversion would be unreasonably difficult if the message
includes any escape sequence (such ... - 06:46 AM Revision 1052ad4e (git): Update bundled gems list at 156da55c164e5463edf15bae05021b [ci skip]
-
06:46 AM Revision 156da55c (git): debug.gem 1.6.1
-
05:11 AM Revision 437a5ae9 (git): Merge RubyGems and Bundler master
-
03:32 AM Revision 94ed94bf (git): Update bundled gem debug-1.6.0.
-
01:49 AM Revision e3a988a2 (git): [DOC] Revisions for call-seq in doc guidelines (#6121)
- Splits certain guidelines for singleton and instance method.
Calls for instance method to not prefix anything (like RDoc itself for a Ruby-coded instance method); e.g.:
count -> integer, not array.count,.
<=> other ->...