Wish File change detection

sorex

Expert
Licensed User
Hello,

I noticed that B4A doesn't have a file change detection.

Sometimes I make a small change in a file while the project was still open.

In several editors when they get focus they check the current text with the actual file for differences and promt you with

File has been changed. Reload?

[YES] [NO] [YES TO ALL] [NO TO ALL]

Would be great if this could be added, it's needless to say that my stuff gets lost on the next compile/save. ;)
 

sorex

Expert
Licensed User
I open the project in B4A (only one activity file)
I open the B4A file in notepad2 and add log('test') at the end of the last sub
Do compile + click on the save icon
when I check the B4A file the log('test') is gone.
 

sorex

Expert
Licensed User
Erel,

I'm in the situation that I left my project open while making changes on another machine.
(dropbox sync)

When I press compile I get the "file has changed externally. Overwrite? [Yes] [No]"

When I press No it compiles but it doesn't reload the modded file into the editor which would've made sense.

So I need to close and reopen the project to get my active source?
 

sorex

Expert
Licensed User
Thanks for implementing the auto refresh of shared modules.

It's easier/safer to have multiple (Xui based) app sources open.

Just switch (alt-tab) between B4A & B4i to compile and test the specific OS version without the need to close/reload to be sure you don't overwrite anything.
 
Top