JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
269 stars 10 forks source link

Don't re-install app after re-debugging #58

Closed kakavip closed 1 year ago

kakavip commented 1 year ago

First, Thank for this project help me develop MAUI app on VSCode <3 I'm encountering an issue:

JaneySprings commented 1 year ago

Hi! Thank you for using Meteor! I had created a fix for your issue but I need some extra time. I will share the fix with our DevExpress Team for testing on Android.

kakavip commented 1 year ago

This issue appears in latest version

JaneySprings commented 1 year ago

When I reworked the previous behavior and stopped deleting an older version of the application, I started receiving reports about issues related to the new mechanism. It appears that if an older version of the application already exists on the target device, a new version may not be correctly deployed.

Unfortunately, I did not find a reliable way to avoid such a side effect. Moreover, this side effects leads to more dramatical issues, because customers may not be able to deploy new applications and they need to manually delete an older version of the application.

Taking all these points into account, I decided to roll back all these changes. In the current version of the extension I always delete the old version of the application before a new one is deployed.

I'm afraid, right now I cannot offer to change this behavior. I do apologies.

kakavip commented 1 year ago

customers may not be able to deploy new applications and they need to manually delete an older version of the application. I think this is developer's behavior, when you can't deploy new app, You usually delete obj, bin folders and delete old apps. I think it's user action instead of your tool, are you?

JaneySprings commented 1 year ago

it's very frustrating when you have an old version of your app running. It may take a long time until you notice that your changes in the code are not applied and you need to manually uninstall the application.

SharePointX commented 1 year ago

Thank you for this very nice extension. I love it very much.

I am developing an app that writes SQLite database files to android storage. When I modify the code and run the debugging again, the database is recreated each time and the data is lost. I would like to add an option to overwrite the installation without uninstalling. I strongly request it. Love it.

I take the risk of wasting my time debugging an old version. Because that is less disadvantageous than losing data over and over again.

kakavip commented 1 year ago

I think we should reopen this issue until there is a solution for it

JaneySprings commented 1 year ago

I'll try to add this option in the settings, but I want it to also work on iOS for consistency. I'll check how it will work and make a PR in the near future

Kol-yan commented 1 year ago

I'll try to add this option in the settings, but I want it to also work on iOS for consistency. I'll check how it will work and make a PR in the near future

Thank you so much for your work!

JaneySprings commented 1 year ago

I added an option for disable app uninstalling in 3.0.3 version

image
SharePointX commented 1 year ago

I just tried the new version and it works as expected. Thanks very much for your gracious work, it is much appreciated.

boer0327 commented 11 months ago

@JaneySprings this tool is fantastic. To be honest it is much better than Visual Studio for Mac. when you debug on Android device on VS for Mac, it will take an age and sometimes it may fail to deploy. it is totally waste of time. So I find new world on vs code. Thank you so much.

but yesterday I met this issue that always redeploys. it will cause my preference and local data to all lost. So every time I need to redo my settings. even a small change. Today, I am reading the issue list. and I found this one. it is really useful for me. Thank you.

I have a suggestion, put this setting description on Read Me. that will help a lot. I almost gave up Meteor before I found this.

JaneySprings commented 11 months ago

Hi, @boer0327 ! It's a good idea. In the new version 4.0, I will make a lot of options for configuring the debugger. I will also write about all the settings in the Readme.

image
boer0327 commented 11 months ago

awesome!!! thx, looking forward to your new version. :)

anirudha-teknorix commented 7 months ago

Great work @JaneySprings , I think by default it should be unchecked. Since on all the other tools like xcode and android studio, it keeps the previous local state of the application.