-
Notifications
You must be signed in to change notification settings - Fork 9
Keeps uploading with old files on Android #256
Comments
Hello @keerl, This sounds like a very strange and frustrating behavior, one which we haven't observed and unfortunately cannot reproduce when testing locally with a sample app. With the above in mind, to investigate this further, I would ask you to share the logs that contain more information about this issue. If you are not sure which logs can be helpful, you can continue working on your app and once you experience the problem again, close Sidekick, access the folder that contain the logs and share the latest log files. |
I was able to recreate this issue almost instantly with the simple tab template. I'll attach a video showing the issue I am having and I'll also attach the log files. In the video I start out showing the stock tab template, then I change the first file and change the tab names, it uploads and works fine. Then I go into another file, css in this example, and I just comment everything out to make an obvious change. Then that uploads and works but this time you will see the tabs went back to their original names. So then I go back to the first file and change a name again. It'll upload and work, but the css will go back to the original version. As you can see in this example it is extremely frustrating and makes developing nearly impossible. The only way I can fix it is by rebuilding the entire project, which takes like 10 minutes and wastes my build credits. https://www.youtube.com/watch?v=owrNzpI3aaM main_18-09-04_08-47-34.107.log |
@keerl, thank you for sharing the logs and especially for taking the time to capture a video of the faulty behavior. We are suspecting that adb is throwing an error while we try to save some information about the build (nsbuildinfo) and the NativeScript CLI decides to install the app again. However, it is taking some kind of intermediary (old) version of the app. We have seen similar behavior in the past and the reason back then was related to reaching the size limit of the Having said that, can you please open a Command Prompt and run the commands provided below. They will delete the content of the
Let me know if this helps. |
This solution does not work for me. I can completely empty the tmp folder and nothing will change. I do have a suspicion though, my phone is a Pixel and recently got updated to Android 9 (which I believe are the only phones that have 9), so I plugged in another phone with Android 8 side-by-side with mine and the Android 8 ones works fine and my Android 9 does not. So either there are some new changes introduced in Android 9 that cause some bugs with NativeScript, or there is something wrong with my phone. Let me know your thoughts. |
We haven't had much dealings with Android 9 so far (with it being 1 month old and available mostly on Pixel devices), but we have access to a Pixel device with this version and we were able to do some tests. However, everything appeared to be working correctly and we were not able to reproduce anything similar to the reported behavior. Having said that, can you please enable the verbose logging for Sidekick and send us the produced logs? Here are the steps to enable the Sidekick verbose logging:
|
Here are the log files. One thing I did notice (because debug mode slowed everything down) is that it tries to upload the app like 4 times to my phone. I can see the splash screen open, then it closes and another one opens, and repeats a couple times. |
Hi @keerl Thank you for the detailed description and the provided information. It helped a lot with investigating and fixing the issue. |
Sorry for the delay, it looks like it is behaving correctly now! Thanks for your help. |
Please, provide the details below:
Did you verify whether this issue has already been reported here?
Yes
Tell us about the problem
Everything will be working nominally for hours then randomly it will start only uploading the last file that was saved and all the other files will revert to a previous version. So for example, if I'm working on 2 files, and I make a change to the first then save it and it will upload. But if I make a change to the second file and save and upload it, the first file will revert to the version before that. Hopefully that makes sense. It is extremely frustrating. I have tried clearing the cache folder on my phone, complete uninstall/reinstall and nothing can really fix it consistently.
Which platform(s) does the issue occur on?
Android
Windows
Provide the following version numbers that the issue occurs with:
Tell us how to recreate the issue in as much detail as possible
I do not what triggers it to happen, as far as I can tell it is random. Or I do not what know what triggers it.
Does this issue happen every time?
No
The text was updated successfully, but these errors were encountered: