OpenStudioApplication icon indicating copy to clipboard operation
OpenStudioApplication copied to clipboard

`sync project measures with library` does not work as before

Open JanghyunJK opened this issue 2 years ago • 3 comments

Issue overview

I think it is obvious that this is happening after switching to 1.6. I use sync project measures with library button (marked in the screenshot below) a lot when working on OS measures and I can't seem to update the measure with this button anymore. More specifically, I usually let the measure be placed under "OpenStudio Measures" box and click sync project measures with library. This worked before but not anymore. But there is a workaround by removing the measure from the box, re-add measure to the box, and click sync project measures with library. But it's like extra 10 seconds to work on...

image

Current Behavior

change in the measure code does not get updated in the app

Expected Behavior

I would want the change in the measure code be updated quickly

Steps to Reproduce

I can't think of a way other than other person just try a measure code change and hitting the button.

Possible Solution

unsure

Details

Environment

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

  • Platform (Operating system, version): windows
  • Version of OpenStudioApplication (if using an intermediate build, include SHA): 1.6.0

image

Context

extra 10 seconds whenever making change to the measure and applying to the building model

JanghyunJK avatar Aug 17 '23 14:08 JanghyunJK

Hi @JanghyunJK I'm not able to reproduce this. I set My Measures directory to a directory with a measure in it, then dragged the measure into my model and saved the model. I updated the measure and pressed the Sync Project Measures With Library and saved the model. My updates to the measure were copied to the model's measures directory and the arguments were updated in the app. Can you check a few things:

  • Click the Open My Measures Directory button and make sure that is the directory you are working on your measure in
  • Delete the measure from your model and re-add it from the library, check if the source is "My" instead of "BCL" when you drag it in
  • Does your updated measure have any errors, does it show up with a broken icon in the library, does it run correctly in your model?

macumber avatar Aug 20 '23 02:08 macumber

I did notice a new issue where the measure in my measures directory always shows as having an update because the measure in my measures has a docs/.gitkeep file that is listed in the measure.xml file in my measures directory but doesn't get copied or listed in the model's measures directory.

macumber avatar Aug 20 '23 02:08 macumber

Hi @macumber, sorry for following up this late (had to pass the end of FY). While I was working on measure dev work until now I noticed couple more things.

  • this is not like it happens right away
  • it works for a while and then I get to this point where the measure does not get updated with that button
  • and I tend to use openstudio measure --update [path-to-measure] if I was making changes to like input args for the measure
  • but, I think, if I just use the above cmd everytime I make any change to the measure, then I think the button works
  • so I did found a way to update measure (with one additional step)
  • unsure if this is what is expected tho!

JanghyunJK avatar Oct 25 '23 16:10 JanghyunJK