NatLabRockies / NatLabRockies/OpenStudio

v3.11.0-RC1: can't load openstudio-standards on Ubuntu

Open
#5,543 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component - Installer/Platform component - Ruby bindings component - Standards severity - Blocker
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
Operating System affected

No response

Environment

Ubuntu

Version of OpenStudio

3.11.0-rc1

Context

No response

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.