We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Missing RUBY_DESCRIPTION constant in ruby 3.2.2.
Caught while testing openstudio-ee-gem, with a VERY cryptic message:
NameError: uninitialized constant Git::Lib::RUBY_DESCRIPTION
This is because git 1.12.0 (which is quite old too, 1.19.1 is out, and there's a 2.0.0-pre too, probably should update @DavidGoldwasser ) uses it https://github.com/ruby-git/ruby-git/blob/ea79dadf07e65896a08487af011e60336e86d3e3/lib/git/lib.rb#L1209-L1213
The same would happen with this
module Test class Lib def f puts NON_DEFINED_CONSTANT end end end Test::Lib.new.f()
openstudio test.rb Error: uninitialized constant Test::Lib::NON_DEFINED_CONSTANT
It fails
It should be there
OpenStudio/ruby/engine/InitRubyEngine.cpp
Line 280 in ca6043e
Init_ruby_description is needed. Note that it doesn't take void param anymore but a pointer to a typedefed struct...
Init_ruby_description
Some additional details about your environment for this issue (if relevant):
testing on openstudio-ee-gem
The text was updated successfully, but these errors were encountered:
Fix #5178 - Init the RUBY_DESCRIPTION properly
7b7e84f
Add test for #5178
aa151a0
badf2eb
3e27741
7e8f5e1
Merge pull request #5179 from NREL/5178_RUBY_DESCRIPTION
39b42ba
jmarrec
Successfully merging a pull request may close this issue.
Issue overview
Missing RUBY_DESCRIPTION constant in ruby 3.2.2.
Caught while testing openstudio-ee-gem, with a VERY cryptic message:
This is because git 1.12.0 (which is quite old too, 1.19.1 is out, and there's a 2.0.0-pre too, probably should update @DavidGoldwasser ) uses it https://github.com/ruby-git/ruby-git/blob/ea79dadf07e65896a08487af011e60336e86d3e3/lib/git/lib.rb#L1209-L1213
The same would happen with this
Current Behavior
It fails
Expected Behavior
It should be there
Steps to Reproduce
Possible Solution
OpenStudio/ruby/engine/InitRubyEngine.cpp
Line 280 in ca6043e
Init_ruby_description
is needed. Note that it doesn't take void param anymore but a pointer to a typedefed struct...Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
testing on openstudio-ee-gem
The text was updated successfully, but these errors were encountered: