Install hook not firing or not working correctly
Thanks for this awesome tool.
Whenever I hit F5 in vscode to start a debug session AFTER a previous one has run the app will launch with the previous sessions code and some randomly assortment of edits then applied over the VM service port. Usually results in very odd issues or crashes since the running code has no resemblance to what's in the editor.
Not sure where to even begin with this, but I have a feeling it's just the install hook in custom devices not firing a not scp'ing over the new state.
drwxr-xr-x 8 pi pi 4096 May 24 16:25 flutter_hmi
drwxr-xr-x 2 pi pi 4096 May 24 16:27 flutter-hmiDNPNGJ
drwxr-xr-x 2 pi pi 4096 May 24 16:25 flutter-hmiFKGTYF
drwxr-xr-x 2 pi pi 4096 May 24 16:29 flutter-hmiJAHBIO
drwxr-xr-x 2 pi pi 4096 May 24 16:24 flutter-hmiMKTICD
Each session creates a new folder, maybe the debugger is expecting resources to be there rather than the original folder?
Thank you, @thetooth, for opening this issue.
This behavior does seem a bit unusual. Typically, the associated folder for an app should be removed once the app is stopped. Similarly, starting a new app should remove the app Folder. However, we're seeing folder names that appear to be randomly generated, which might be causing issues with cleanup—especially if the custom device settings aren't able to identify and delete them correctly.
I'll investigate this in more detail to better understand what's going on.