-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix helper class used for config.webxml values #513
Conversation
@JesseChavez 👋 Hi! This is super-clear, you added good context information in the commit message, good to have links to background information! I saw that jruby-head tests were failing on something minor, so I started a PR to see if we could work around that for jruby-head. #514 Edit: Now merged. |
Also, the relevant change - adding the ! methods - was made five years ago, I think we should see it as supported. Edit: So, if you rebase, perhaps we can see this run green on jruby-head, too? |
@olleolleolle This is a weird failure. How is the rubygems being run so old if we are running a JRuby 3.1.x codebase which has its own rubygems? |
Because the steps that are installing RubyGems were installing a very specific version. I changed it in #514. |
Good work all around, folks! |
@JesseChavez Could you rebase on current warbler master so we can see that it is green across the board? |
4ba7e29
to
fb904dc
Compare
@headius , I've rebased it |
All green! |
Exquisite! I went ahead and merged this change. 🎉 Thanks, @JesseChavez! And thanks all who chimed in! |
I'm trying to use this (gem installed from git to main repo), but it is now saying, "TypeError: nil is not a string" when trying to evaluate config.webxml.jruby.min.runtimes = 1 in "lib/warbler/traits/rails.rb". new_ostruct_member!("runtimes") is returning nil apparently. |
@headius Oh, hi, this last comment looks a lot like the issue you and others have been fighting in OpenStruct. Can you offer any insight? |
@johnnyb To make debugging this easier, can you say what jruby that is, and what version of OpenStruct is in use (recently made into a separate gem)? |
@olleolleolle is this change in any version? don't want to force master for Prod. |
@sebastianguarin Answer: not yet released. See #498 for what is left. |
@olleolleolle Any chance of this getting a minor release instead of waiting for the |
This fix is still broken on 9.3.6.0. The
The fix for this is "simple": instead of the line |
Looking deeper in the open struct code the current https://github.com/ruby/ostruct/blob/1ea1438e592b7407654d0ead49f3a20f813a44cc/lib/ostruct.rb#L175 |
This fixes the issue reported in theJRuby repo:
jruby/jruby#7160
Basically the issue was caused due 2 changes in the ostruct repo:
change 1:
change 2: