NREL / OpenStudio

OpenStudio is a cross-platform collection of software tools to support whole building energy modeling using EnergyPlus and advanced daylight analysis using Radiance.
https://www.openstudio.net/
Other
494 stars 188 forks source link

Most reporting measures won't load into app #987

Closed DavidGoldwasser closed 9 years ago

DavidGoldwasser commented 10 years ago

In most cases I get this error Failed to compute arguments for measure: cannot load such file --erb

But Xcel EDA Reporting and QAQC, and Export Schedules CSV can be dropped into the project.

What is strange is most of the reporting measures that are not working don't have any arguments and have the exact same text in argument def as Xcel measure that does work. @macumber any thoughts, if you have ideas I can try to fix the annual end use breakdown to demo.

define the arguments that the user will input

def arguments() args = OpenStudio::Ruleset::OSArgumentVector.new

return args

end #end the arguments method

macumber commented 10 years ago

This is because of the erb include

macumber commented 10 years ago

I am pretty sure we just need to add the right include paths to getOpenStudioRubyScriptsPath here https://github.com/NREL/OpenStudio/blob/116f39e814d13d1797356dfbe026fafde051adb7/openstudiocore/src/utilities/core/ApplicationPathHelpers.cxx.in

macumber commented 10 years ago

This is related to https://github.com/NREL/OpenStudio/issues/948#issuecomment-38769787

macumber commented 10 years ago

Actually it looks like all the include paths we need to mess with are here:

https://github.com/NREL/OpenStudio/blob/d4cf32f60e221419164c4538303807e61ca997d7/openstudiocore/src/utilities/core/RubyInterpreter.hpp

macumber commented 9 years ago

@DavidGoldwasser I think this is fixed now, can we close?