Code appears in inactive file tab

Wappler Version : 2.4.5
Operating System : Mac 10.14

Expected behavior

Typing code in a file should appear in that file.

Actual behavior

The typed text is added to another file open, but not active. The blue modified dot of the inactive file changes to indicate the file has been modified, even though it is not active.

How to reproduce

I have not been able to consistently reproduce, so attaching a video illustrating issue. When the style.css file is open, it appears nothing is happening, however I am typing letters.

code edit.mov (4.6 MB)

Same issue seen, i assumed the file had gone read only. Restarting wappler normally fixes it (temporarily)

I am aware of this problem, but at this moment I was not able to find the cause of the problem. It seems not to happen very often and very random, also we were not able to reproduce the problem after we encountered it.

It usually happen when you write to your active file and nothing is being typed. So all of a sudden, you will see your typos on another file header and thereby creation runtime errors.
Solution is to check as you type, if nothing is typing, close the file without saving it or simply undo the last changes.

Maybe it happens with specific files combination and switching of tabs? It will be really helpful if you can provide a step by step so we can reproduce it…

Will simulate it and send it shortly

Thanks - it will be the most helpful if you try to reproduce it from the Wappler start and then open this and this file, edit etc till it happen

Hi George,
I have tried to reproduce as promise. But it is been very difficult. What i noticed is; if a page is in code view and you try to edit another page in the code view especially css, the last code view page will becomes active, locking the current one, so whatever you are typing will write at the header of the last active (with blue em). One need to look up to see it nothing was writing. At that point, just go to the active/recognized (with blue em) and delete whatever written AT THE BEGINNING OF THE PAGE

I’m convinced this is related to a .css file edit now. Just happened again to me on 2.5.0

I was working in a brand new blank mobile project with framework 7 and cordova only.

Best I can recall:

index.html was open and recent changes not save.
Opened index.css from css folder
Tried to edit css and found my typing appeared at the location of my last edit in index.html

1 Like

This should have captured the problem.

1 Like

Just happened again with a javascript file open, and the results ended up in html file…so not necessarily a css thing.

I am on the windows version of this. And have been having the same issue.

Its when I am editing code in either code view or split view and it will add the text to another page that I have open. When I go to the page that it is actually writing on, and I delete that text, when I go back to the page I was trying to edit it will then allow me to edit that page again. Weird.