NatLabRockies / NatLabRockies/OpenStudio
v3.11.0-RC1: can't load openstudio-standards on Ubuntu
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 646
- Forks
- 237
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 10
Description
Description
I reverted openstudio-gems to v3.11.0-alfa3 so I could build the OS SDK v3.11.0-rc1 installers... only for windows and mac.
I kept the ubuntu ones that used openstudio-gems v3.11.0-RC2 except that one is broken. Amongst other things, it reverted the temporary workaround I had which was to pull openstudio-standards from git to avoid a unicode regex lookbehind that was making it impossible to load openstudio-standards via the CLI.
This issue is created mostly so it's recorded for anyone that comes to report the same issue.
Current Behavior
./bin/openstudio -e "require 'openstudio-standards'"
terminate called after throwing an instance of 'RubyException'
what(): SyntaxError: :/ruby/3.2.0/gems/openstudio-standards-0.8.4/lib/openstudio-standards/btap/costing/daylighting_sensor_control_costing.rb:8: invalid character property name {L}: /(?<=\p{L})(?=\d)/
Aborted (core dumped)
Expected Behavior
It should work.
Steps to reproduce
./bin/openstudio -e "require 'openstudio-standards'"
Possible Solution
- Critical: Undo the changes there and re-release https://github.com/NREL/OpenStudio-measure-tester-gem/pull/99
- Undo changes there and re-release https://github.com/NREL/openstudio-extension-gem/pull/221
- Rebuild openstudio-gems
- Update OS SDK to point to new openstudo-gems
- Release an RC2
Operating System affected
No response
Environment
Ubuntu
Version of OpenStudio
3.11.0-rc1
Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce with ./bin/openstudio -e "require 'openstudio-standards'" on Ubuntu and inspect openstudio-standards-0.8.4/lib/openstudio-standards/btap/costing/daylighting_sensor_control_costing.rb:8. Review the changes in openstudio-measure-tester-gem#99 and openstudio-extension-gem#221, then verify that the dependency chain is rebuilt and the require succeeds in a replacement RC.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, ubuntu
- Domain
- build-system, cli, release
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100