Wish Reload externally changed source even when not in foreground

Sandman

Expert
Licensed User
Longtime User
I have an app for Android and iOS, and I share quite a bit of code between them. And as I have a huge screen I have both projects open, side by side. It's really, really great the new support in B4A 7.80 and B4i 4.80 for automatically reload externally edited source. (Because I change a shared class in B4A and it reloads in B4i - that's the "external" part.)

However, and this is a small wish, I sure would like to see that the other IDE updates the files even if it's not in the foreground.

Example for how it works now:

1. I edit a shared class in B4A and save.
2. When I switch to B4i it notices a change for the class and reloads it.

This feels a little bit laggy and is slowing me down. How I would like it to work:

1. I edit a shared class in B4A and save.
2. B4i constantly monitors visible files* and reloads them when updated. Preferably a couple of times per second so it feels instant.

I will say that this is a minor wish. Still something I really would like though. I find myself constantly saving in one place and switching to other IDE to see the change, then going back to first IDE. So clearly something that's a (small) roadblock for me. If this is a resource hog (I don't really know), perhaps we could have a preference setting for "Aggressive monitoring of external changes"?

(* No need to check and reload a file that isn't even visible.)
 

Roycefer

Well-Known Member
Licensed User
Longtime User
The jFileWatcher library provides instantaneous file watching with no observable performance hit. Yet another reason to think about a pure JVM IDE.
 

Sandman

Expert
Licensed User
Longtime User
Like any feature in the IDE, the file monitoring process must be very careful not to impact the performance

So... perhaps make it a setting in b4xV5.ini that isn't displayed in the IDE? For us that are willing to impact the performance a bit more..? :)

Something like this, for instance
B4X:
CheckForExternalChangesEvery=60
 
Top