You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading a measure with a rescued LoadError in a workflow causes the current working directory to change.
Current Behavior
Loading a measure which tries to load a gem but then falls back to load a resource file results in the current working directory changing. This causes problems if the measure attempts to write a file.
Expected Behavior
Rescuing the LoadError should not change the current working directory.
Steps to Reproduce
/c/openstudio-3.1.0/bin/openstudio.exe run -m -w workflow.osw fails /c/openstudio-3.0.0/bin/openstudio.exe run -m -w workflow.osw fails /c/openstudio-2.9.1/bin/openstudio.exe run -m -w workflow.osw succeeds
Some additional details about your environment for this issue (if relevant):
Platform (Operating system, version): Windows 10
Version of OpenStudio (if using an intermediate build, include SHA): 3.1.0 and 3.0.0
The text was updated successfully, but these errors were encountered:
macumber
added
the
Triage
Issue needs to be assessed and labeled, further information on reported might be needed
label
Nov 26, 2020
fix for this is here. NREL/OpenStudio-workflow-gem#130
I think this is happening in load.c and related to how it's working within the CLI. Using load in pure ruby doesn't change cwd.
Issue overview
Loading a measure with a rescued LoadError in a workflow causes the current working directory to change.
Current Behavior
Loading a measure which tries to load a gem but then falls back to load a resource file results in the current working directory changing. This causes problems if the measure attempts to write a file.
Expected Behavior
Rescuing the LoadError should not change the current working directory.
Steps to Reproduce
/c/openstudio-3.1.0/bin/openstudio.exe run -m -w workflow.osw
fails/c/openstudio-3.0.0/bin/openstudio.exe run -m -w workflow.osw
fails/c/openstudio-2.9.1/bin/openstudio.exe run -m -w workflow.osw
succeedsSome additional details about your environment for this issue (if relevant):
The text was updated successfully, but these errors were encountered: