Skip to content
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

Add webrick to gemfile. #98

Closed
wants to merge 1 commit into from
Closed

Add webrick to gemfile. #98

wants to merge 1 commit into from

Conversation

ainar
Copy link

@ainar ainar commented Sep 26, 2024

In OS 3.8.0, when trying to launch the measure manager server in classic CLI (openstudio classic measure -s 3100), here is what we get:

Ignoring debug-1.7.1 because its extensions are not built. Try: gem pristine debug --version 1.7.1
Ignoring rbs-2.8.2 because its extensions are not built. Try: gem pristine rbs --version 2.8.2
Error executing argv: ["measure", "-s", "3100"]
Error: cannot load such file -- webrick in eval:182:in `require'
eval:182:in `require'
<internal::/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
:/measure_manager_server.rb:7:in `<main>'
eval:236:in `eval'
eval:236:in `require_embedded_absolute'
eval:169:in `require'
<internal::/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
eval:253:in `require_relative'
:/openstudio_cli.rb:1603:in `execute'
:/openstudio_cli.rb:827:in `execute'
:/openstudio_cli.rb:1994:in `<main>'
eval:236:in `eval'
eval:236:in `require_embedded_absolute'
eval:221:in `block in require_embedded'
eval:215:in `each'
eval:215:in `require_embedded'
eval:174:in `require'
eval:3:in `<main>'

The issue is that OS needs to include Webrick gem.
Since Webrick has not been included in Ruby since 3.0.0 (https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/), I suggest adding it to the Gemfile here, as I have indicated in NREL/OpenStudio-server#793.

It fixes NREL/OpenStudio-PAT#276.

@jmarrec
Copy link
Collaborator

jmarrec commented Oct 29, 2024

Thank you @ainar . It seems that @kbenne has done that in #99 already though.

@jmarrec jmarrec closed this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot set MyMeasures Directory with PAT or load Measures in PAT
2 participants