OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
The issue is that we do ScriptObject->run(args) whereas the ruby CLI was all under a rb_protect block.
We need to find a way to do things like RubyInterpreter::makeProtectedCall or RubyEval's evalString (the Ruby Engine has exec / eval that call evalString).
Details
Environment
Some additional details about your environment for this issue (if relevant):
Platform (Operating system, version): all
Version of OpenStudio (if using an intermediate build, include SHA): 3.7.0-rc2
Issue overview
Current Behavior
For example, if you put in a measure something like:
You end up with a hard crash.
Expected Behavior
It should gracefully fail and report the error.
Steps to Reproduce
See Current behavior
Possible Solution
The issue is that we do
ScriptObject->run(args)
whereas the ruby CLI was all under arb_protect
block.We need to find a way to do things like RubyInterpreter::makeProtectedCall or RubyEval's
evalString
(the Ruby Engine has exec / eval that call evalString).Details
Environment
Some additional details about your environment for this issue (if relevant):
Context
5016