openstudiocoalition / OpenStudioApplication

The OpenStudio Application is a fully featured graphical interface to OpenStudio models including envelope, loads, schedules, and HVAC.
https://openstudiocoalition.org
Other
136 stars 25 forks source link

[v1.8.0-rc2] Bundled openstudio_results measure is at wrong location #736

Closed jmarrec closed 2 months ago

jmarrec commented 2 months ago

Issue overview

On first launch, Getting "Could not find or download OpenStudio Results Measures"

image

Diagnostics:

$ ls /usr/local/openstudioapplication-1.8.0-rc2/Resources/openstudio_results/openstudio_results/
LICENSE.md  measure.rb  measure.xml  README.md  README.md.erb  resources  tests

Indeed, launching with OPENSTUDIO_APPLICATION_DEBUG=1 /usr/local/openstudioapplication-1.8.0-rc2/bin/OpenStudioApp I get this printed:

[utilities.bcl.BCLXML] <2> '/usr/local/openstudioapplication-1.8.0-rc2/Resources/openstudio_results/measure.xml' does not exist
[utilities.bcl.BCLMeasure] <2> '/usr/local/openstudioapplication-1.8.0-rc2/Resources/openstudio_results' is not a measure

Possible Solution

Fixup the cmake

Details

Environment

Some additional details about your environment for this issue (if relevant):

Context

jmarrec commented 2 months ago

Same on Windows, there's an extra layer, it's at

C:\openstudioapplication-1.8.0-rc2\Resources\openstudio_results\openstudio_results\measure.xml
macumber commented 2 months ago

I did test this, the test install on my computer has C:\openstudioapplication-1.8.0\Resources\openstudio_results\measure.xml. I probably broke it in https://github.com/openstudiocoalition/OpenStudioApplication/pull/720/commits/06a3a6bd02f1d9b3e5ef3d315a0bd0cae686c7fc or https://github.com/openstudiocoalition/OpenStudioApplication/pull/720/commits/49e8cc2adca36ce51d246f900dce3a561f90f18d

I'll try fixing it