Go Down

Topic: Sketch does not reflect changes (medium) (Read 99 times) previous topic - next topic

ballscrewbob

Deleted original two properties

Added two new properties with new names

Went to EDIT CODE and the original two properties were still present in the sketch.
Should it not generate a new sketch without the original properties or at least realise they are not used and delete them before opening in CREATE EDITOR ?



It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

ubidefeo

This should be working

properties are removed/changed from the cloudProperties.h tab, and callbacks (if any) are also removed in case of property removal.

try refreshing the editor after you submit a change to the property editor and see, it was working for me just a few hours ago

ballscrewbob

#2
Oct 06, 2018, 12:27 am Last Edit: Oct 06, 2018, 12:28 am by ballscrewbob
Steps to recreate.

1.   Build two properties.
2.   Open sketch in editor using the EDIT CODE option.
3.   Save that sketch from CREATE.
4.   Close CREATE EDITOR (should ensure a fresh copy of the code)
5.   Delete one of the properties (wait for confirmation in display as it is a little slow)
6.   Open code as per 2.
7.   Code here still contains the old properties for the deleted item

Additional confirmation.

8.   Close editor window
9.   Add another new property in cloud window (giving you two properties again)
10. Open editor as per 2.
11. There may now be three property references for callback instead of two (I get 3)
12. Close editor window
13. Open and delete last property you made. (ensure it has gone)
14. Open code as per 2 (I see THREE callbacks at this point)

Property deletions are not passed through the system back to create.
Unless the user notices and deletes manually they may be using null callbacks to null properties which is inefficient and a waste of bandwidth.


It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

ballscrewbob

#3
Oct 06, 2018, 12:47 pm Last Edit: Oct 06, 2018, 12:48 pm by ballscrewbob
Additional issue found in testing.

To check and see if the sketch was recreated I deleted the sketch in editor.

1. Open editor and delete last sketch sent from cloud.
2. Close editor.
3. Go back to cloud.
4. Click EDIT CODE (expect a new copy of the sketch)
5. Editor opens last known sketch PRIOR to cloud sketch but NOT a new version of the sketch.

(NOTE:  This may also be linked to the LOST FOCUS issue on CREATE).
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up