Closed jmarrec closed 9 months ago
Should be rescue => e
. Still fails to produce an ERB though, tracking it down...
Ok I see, I removed the begin / rescue so I could see the error. We should do that by default, but I don't want to break the old CLI.
SWIG director method error. NoMethodError: undefined method `join' for nil:NilClass
Traceback (most recent call last):
(erb):25:in `block in renderFile'
(erb):13:in `each'
(erb):13:in `renderFile'
:/ruby/2.7.0/erb.rb:905:in `eval'
:/ruby/2.7.0/erb.rb:905:in `result'
eval:209:in `renderFile'
Pretty sure this is happening here: https://github.com/NREL/OpenStudio-HPXML/blob/56d57315544662843cdd46de72f61d684ae8fa1f/ReportUtilityBills/README.md.erb#L24-L26
<% if argument[:type] == "Choice" %>
- **Choices:** `<%= argument[:choice_values].join("`, `") %>`
<% end %>
FWIW, the BCL template if our repo does it differently, so that's probably why I haven't caught this one before.
Issue overview
Reported by @shorowit
Current Behavior
Expected Behavior
It should work, like the
classic
subcommand doesSteps to Reproduce
You can presumably reproduce it by cloning https://github.com/NREL/OpenStudio-HPXML/tree/os370rc2 (I get the same error if I try the other reporting measure in that repo -- ReportSimulationOutput)
Possible Solution
Details
Environment
Some additional details about your environment for this issue (if relevant):
Context