-
Notifications
You must be signed in to change notification settings - Fork 198
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
openstudio classic measure -s
is broken (measure manager using classic CLI) in 3.8.0
#5212
Comments
I think even the non-classic CLI has some issues in 3.8.0, it fails to infer measure name for the OpenStudio Results measure. |
@macumber No, that's a combination of:
The actual error: $ cd OpenStudioApplication/src/openstudio_app/Resources/openstudio_results
$ openstudio measure -u .
Failed to infer measure name from /Users/julien/Software/Others/OpenStudioApplication/src/openstudio_app/Resources/openstudio_results/./measure.rb: LoadError: cannot load such file -- openstudio/extension/core/os_lib_schedules
location=["eval:182:in `require'", "eval:182:in `require'", "<internal::/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'", "/Users/julien/Software/Others/OpenStudioApplication/src/openstudio_app/Resources/openstudio_results/measure.rb:11:in `<top (required)>'", "eval:8:in `load'", "eval:8:in `<main>'"]
Traceback:
eval:182:in `require'
eval:182:in `require'
<internal::/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/Users/julien/Software/Others/OpenStudioApplication/src/openstudio_app/Resources/openstudio_results/measure.rb:11:in `<top (required)>'
eval:8:in `load'
eval:8:in `<main>'
className=
Failed to infer measure name from '/Users/julien/Software/Others/OpenStudioApplication/src/openstudio_app/Resources/openstudio_results/./measure.rb' |
I'll try to get all the measures up to ruby.gems and BCL by the end of the week. My attempt to be productive while at SimBuild last week didn't work. |
@DavidGoldwasser Are you still working on NREL/openstudio-common-measures-gem#169 ? We'd like for openstudio-results at least to be updated, since the OSApp ships it by default and it breaks users that chose to enable the "classic" CLI. |
These gbxml measures seem to be affected too: https://github.com/NREL/gbxml-to-openstudio |
These changes were included in https://github.com/NREL/gbxml-to-openstudio/releases/tag/v1.2.0, which was tested and works. We (and Autodesk) don't use the |
@jmarrec plan to have updated measures including OpenStudio Results released and on BCL soon. |
@MatthewSteen I get this on the
I see a similar error when dragging the |
@macumber ok, thanks. We haven't experienced this error with the Autodesk workflow, but I will take a look and try to resolve what we can in the gbxml-to-openstudio repo. FYI these measures are not (currently) intended to be used with the OpenStudio Application, hence they're not on the BCL. |
@wenyikuang can you look at my PR to bring in webrick? I think this should address the issue once we pull in the new openstudio-gems to the main openstudio project. |
This change brings in webrick via openstudio-gems. Previous versions of Ruby included webrick as part of the standard package, but it was removed and when that happened our "classic" implementation of the Measure Manager was broken. This change enables `openstudio classic measure -s` close #5212
This change brings in webrick via openstudio-gems. Previous versions of Ruby included webrick as part of the standard package, but it was removed and when that happened our "classic" implementation of the Measure Manager was broken. This change enables `openstudio classic measure -s` close #5212
Issue overview
The measure manager in the classic CLI is broken in 3.8.0
Current Behavior
Expected Behavior
It should work.
Possible Solution
webrick
gem was removed from the standard library in Ruby 3. So it should be part of the openstudio-gems Gemfile. Or the classic subcommand should be removed.https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
Found in OpenStudioApplication at openstudiocoalition/OpenStudioApplication#714 (comment)
The text was updated successfully, but these errors were encountered: