 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 18, 2010 12:00 am
[3.19f] BUG?: Variable changes not getting saved on editor close. |
Aren't all changes supposed to be saved to the external database when the package editor is closed? I find that if I change a variable and then immediately close the package editor and session, that the changes to the variable are not saved. I don't remember this being the case in previous versions.
|
|
|
 |
Anaristos Sorcerer
Joined: 17 Jul 2007 Posts: 821 Location: California
|
Posted: Fri Jun 18, 2010 1:13 am |
I never thought that that was the case. The only time a variable is saved AFAIK is when one switches settings for editing. If you do anything else, such as selecting a variable filter, the changes made to the current setting are lost. It makes sense to me, though, because if, for instance, I click on MENU|Exit to terminate CMUD while the Editor is open, I may not want the changes saved. Not to say that this is the way it should work :)
|
|
_________________ Sic itur ad astra. |
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 18, 2010 1:15 am |
No, I am hitting the save button to save the changes to the variable within the package editor. The issue is the changes aren't being saved to the package file.
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 18, 2010 2:25 am |
Yes, it *should* be saving it, so please provide a step-by-step procedure for reproducing this if you can. This is the kind of bug that is likely related to the optimized "nosave" code and is the kind of stuff that needs some heavy testing.
|
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 18, 2010 2:38 am |
Procedure to reproduce bug:
Open a fresh session.
Paste this XML:
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<var name="test" type="Record">
<value>b=2|a=1</value>
<json>{"b":2,"a":1}</json>
</var>
</cmud> |
Close the editor, close the session.
Load up the session, check the state of the variable. There will be no value for the record.
(Additional steps)
Edit the variable and hit save.
Close the editor, close the session.
Load up the session, check the state of the variable. There will be no value for the record.
(Additional steps)
Edit the variable and hit save.
Wait 30 seconds.
Close the editor, close the session.
Load up the session, check the state of the variable. The changes should have took hold.
Additional note: Going to file->save has no apparent effect. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 18, 2010 5:13 pm |
I could not reproduce this at all. I've created several new sessions and when I open them and type #VAR to see what variables are stored, it always shows the @test variable as being saved.
How exactly are you closing your session? I'm just clicking on the big X in the upper right corner to close the editor and then close the session. Are you closing the editor separately, or are you just closing the session without closing the editor? |
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 18, 2010 6:10 pm |
I'm closing one and then the other, using the 'x' buttons on both. I'll play around with this more, but I was definitely able to do this near every time.
Edit: Just tried it in another fresh session, still worked. To be more specific I'm doing this offline, and only changing the values of the database variable; Specifically to things like 'b', 'a', 'bababa'. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 18, 2010 6:49 pm |
Does it also happen if you open an existing session and then paste the XML and then immediately close everything?
|
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 18, 2010 7:00 pm |
Yes and no. I'm unable to consistently reproduce the first step in my main session or a fresh one, but the values are definitely not being updated correctly. If I change the values of keys 'b' and 'a', close the editor, close the session, and re-open, they revert back to '1' and '2'.
Edit: I'll make a video of it if I have to. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 18, 2010 8:31 pm |
Yeah, maybe a video would help. I'm really stumped why I can't reproduce this in a new session like you are able to.
|
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 18, 2010 8:51 pm |
Any suggestions for software to use?
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 18, 2010 9:02 pm |
Hmm, I thought you already had something. No, I'm a bad one to answer that question. I don't have any software for doing videos yet and for my upcoming screencasts I'll probably shell out the money for something professional like Camtasia, which is overkill for what you need to do. Maybe somebody else will have a suggestion.
Also, more to the point, I'd really like some OTHER BETA TESTERS to try and take a look at this issue to see if they can reproduce it too. I'm getting the feeling that we only have a couple of people really helping with this beta testing, and that makes me really nervous for any upcoming public version.
So please other people try to help with this issue to. Thanks.
Edited: btw, I need to get 3.20 released because I'm running out of programming time today, so we will work more on this issue next week (if it's not somehow magically fixed in 3.20). |
|
|
 |
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Fri Jun 18, 2010 10:39 pm |
The video I recently produce so that Zugg could see what was happening with the COM issue was done using software I got from http://www.nchsoftware.com/capture/index.html and is called Debut Video Capture Software. It's supposed to be a trial only so when it runs out or before if you like just go to uninstall it and it'll ask you if you want to downgrade to the free version with fewer features which you may as well do because I see no difference with it at all.
I'll have a go at seeing if I can replicate this tomorrow in 3.20. |
|
_________________ Taz :) |
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sat Jun 19, 2010 3:20 am |
Confired. I was able to recreate this in 3.20 all exactly like GeneralStonewall described.
|
|
_________________ Asati di tempari! |
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Sat Jun 19, 2010 5:32 am |
I've made a small demonstration video and am emailing it to sales@zuggsoft.com
The video is a bit jumpy at times, but I am closing the editor and then the main session window separately. |
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Thu Jun 24, 2010 7:29 pm |
Did you get the video, Zugg?
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Jun 24, 2010 8:50 pm |
Yep, I did get it but I admit I haven't gotten to this on my list yet. Should be soon though so I'll let you know what I find.
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 25, 2010 4:33 pm |
Quote: |
Close the editor, close the session. |
That was the step I was getting wrong. Instead of "closing the session" I was "closing CMUD". It wasn't until I saw your video that I saw you were clicking the X button to close the session window and not using File/Close All or closing CMUD entirely.
Because there are so many different ways to close a session, it's always important to mention exactly what you are clicking on. And even in this case clicking on the X in the upper corner of the session window can get confused with clicking the X button in the upper corner of CMUD itself.
In any case, I was able to reproduce the problem now, so thanks for the video. |
|
|
 |
|
|