Conversation
11b57da to
b9fe936
Compare
headius
added a commit
to headius/jruby
that referenced
this pull request
Oct 26, 2023
The logic here was incorrectly ported. The original code checks the vperm pointer passed in to know whether it can be dereferenced. The broken code in JRuby ends up requiring a a non-null positional vperm argument in order to use the kwarg, which then immediately errors anyway. The new code if the perm kwarg and the positional vperm are both set, but if only the kwarg is given, it will be used for the new file. Fixes failures switching from our own native Tempfile to the tempfile gem. See jruby#7973
headius
added a commit
to headius/jruby
that referenced
this pull request
Oct 26, 2023
The logic here was incorrectly ported. The original code checks the vperm pointer passed in to know whether it can be dereferenced. The broken code in JRuby ends up requiring a a non-null positional vperm argument in order to use the kwarg, which then immediately errors anyway. The new code if the perm kwarg and the positional vperm are both set, but if only the kwarg is given, it will be used for the new file. Fixes failures switching from our own native Tempfile to the tempfile gem. See jruby#7973
Member
Author
|
Remaining failure is due to a fix for https://bugs.ruby-lang.org/issues/11015 applied to CRuby in ruby/ruby@efbfd90. We'll need something similar in |
headius
added a commit
to headius/jruby
that referenced
this pull request
Oct 26, 2023
Tempfile.new under the standard tempfile library returns a Delegate wrapped around an IO, so it would not have our JI addons. See jruby#7973
headius
added a commit
to headius/jruby
that referenced
this pull request
Nov 8, 2023
The logic here was incorrectly ported. The original code checks the vperm pointer passed in to know whether it can be dereferenced. The broken code in JRuby ends up requiring a a non-null positional vperm argument in order to use the kwarg, which then immediately errors anyway. The new code if the perm kwarg and the positional vperm are both set, but if only the kwarg is given, it will be used for the new file. Fixes failures switching from our own native Tempfile to the tempfile gem. See jruby#7973
headius
added a commit
to headius/jruby
that referenced
this pull request
Nov 8, 2023
Tempfile.new under the standard tempfile library returns a Delegate wrapped around an IO, so it would not have our JI addons. See jruby#7973
dc46040 to
f9aac38
Compare
headius
added a commit
to headius/jruby
that referenced
this pull request
Jun 18, 2024
The logic here was incorrectly ported. The original code checks the vperm pointer passed in to know whether it can be dereferenced. The broken code in JRuby ends up requiring a a non-null positional vperm argument in order to use the kwarg, which then immediately errors anyway. The new code if the perm kwarg and the positional vperm are both set, but if only the kwarg is given, it will be used for the new file. Fixes failures switching from our own native Tempfile to the tempfile gem. See jruby#7973
headius
added a commit
to headius/jruby
that referenced
this pull request
Jun 18, 2024
Tempfile.new under the standard tempfile library returns a Delegate wrapped around an IO, so it would not have our JI addons. See jruby#7973
f9aac38 to
5c60dd7
Compare
The logic here was incorrectly ported. The original code checks the vperm pointer passed in to know whether it can be dereferenced. The broken code in JRuby ends up requiring a a non-null positional vperm argument in order to use the kwarg, which then immediately errors anyway. The new code if the perm kwarg and the positional vperm are both set, but if only the kwarg is given, it will be used for the new file. Fixes failures switching from our own native Tempfile to the tempfile gem. See jruby#7973
Tempfile.new under the standard tempfile library returns a Delegate wrapped around an IO, so it would not have our JI addons. See jruby#7973
5c60dd7 to
732d114
Compare
Member
Author
|
Rebased to 9.5-dev since this will involve a fairly major change to a standard library, plus the recent logic in |
732d114 to
a7de515
Compare
32 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It would be one less library to maintain if we just use the standard tempfile gem, but we would lose the benefit of our own Tempfile that does not use delegate.rb to wrap an IO (ours extends IO itself). This PR is to try it out and discuss.
See ruby/tempfile#7.