Design & Code View - Out of Sync

Hi.
Ever since upgrading to 1.7.2, design view and code view get out of sync frequently.
Here is one example:
image

I have deleted a bunch of code from Design View / App Structure. But, when I go into Code View, I still see the old code as it is.


The columns with country and state have been deleted from design view, but are still showing up in code view.

This happens from both ends too. Making changes in code view sometimes does not reflect in design view.
Only option is to close and re-open the file. And I can never be sure if I will get the code view version or design view version when re-opening the file.

I do not have a way to reproduce this. I have experienced it randomly and frequently.

I have experienced the same thing. There have been similar anomalies in previous versions, but reloading the page has usually resolved the problem, but as @nshkrsh mentions, closing/reopening the file seems to be necessary now.

I usually close Wappler completely when this happens, quitting via the system tray icon (Windows) to stop all Wappler-related processes. I think this prevents it from happening for a while - at least that’s my impression.

I tried this too at first, but it did not make a difference in frequency of it happening, in my case. So just closing & reopening files now.

Perhaps it is just an impression - or habit.

Early on I was concerned that so much memory was being used by Wappler processes - even when the application was closed - and used to terminate them, suspecting that large caches were building up and possibly causing problems. I don’t know if this was correct, and in any event this matter has certainly been improved.

Are there any errors in code view? This could prevent the views from syncing.

Experiencing this also…

@patrick no code errors here (actually, edited, there is one Message 'eval can be harmful?) :confused:

I did find that to be the case once. Code was incorrect, but there was not error in top right status icon, and design view was out of sync.
But this happened once only.
All other times, no such case.

If it was due to code error, sync should not have worked after closing and opening the file.

I had a case a few minutes ago when I changed the text on a button - by double-clicking on it. The text changed as expected, but the original button, with the original text, was still there - so there were two buttons.

This could be related to an error on the page which I hadn’t noticed. Before the above change, I was editing some text on a field label - changing ‘p’ to ‘P’. What I hadn’t noticed is that when I typed ‘P’, paragraph tags were created:

I don’t know if this then caused the error with the two buttons, but they could be related.

The sync did get some improvements with Wappler 1.7.3, it should get less out of sync now.

2 Likes