NatLabRockies / NatLabRockies/OpenStudio

OpenStudioCLI.Classic.Run_RubyOnly Test fails on Ruby 3.2.2

Open
#5,157 5 comments 0 reactions 1 assignee View on GitHub

@kbenne is already working on this.

Since Apr 19, 2024.

Triage
Dominant language
C++
Stars
646
Forks
237
Avg merge
3d 11h
Merged PRs (30d)
10

Description

This is the important part of the test (failure) output.

3748: Error executing argv: ["run", "-w", "/home/kbenne/Development/OpenStudio/build/resources/Examples/compact_osw/compact_ruby_only.osw"]
3748: Error: :/ruby/3.2.0/gems/openstudio-workflow-2.4.0/lib/openstudio/workflow/util/energyplus.rb:353: can't find string "HEREDOC" anywhere before EOF
3748: :/ruby/3.2.0/gems/openstudio-workflow-2.4.0/lib/openstudio/workflow/util/energyplus.rb:353: syntax error, unexpected end-of-input
3748:           <<~HEREDOC

I think the issue is that the workflow gem uses a HEREDOC where the closing tag is at the end of a line, instead of on a new line. My guess is that ruby 3.2.2 does not tolerate this.

Here is the relevant part of the WFG.

This issue could also be filed on the WFG repo, but since the test is failing from OpenStudio I'm just putting the issue up here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.