Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI installs the app on every change #3883

Closed
KristianDD opened this issue Sep 11, 2018 · 4 comments
Closed

CLI installs the app on every change #3883

KristianDD opened this issue Sep 11, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@KristianDD
Copy link
Contributor

Please, provide the details below:

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

Yes

Tell us about the problem

When a change is made the application gets installed every time. Previously sync changes are overwritten.

Which platform(s) does your issue occur on?

Android Pie
Windows workstation

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.2.3(run tns --version to fetch it)
  • Cross-platform modules: 4.2.0(check the 'version' attribute in the
    node_modules/tns-core-modules/package.json file in your project)
  • Runtime(s): 4.2.0(look for the "tns-android" and "tns-ios" properties in the
    package.json file of your project)
  • Plugin(s): (look for the version number in the package.json file of your
    project)

Please tell us how to recreate the issue in as much detail as possible.

tns run android with Android P device on a Windows workstation.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Consider using the playground to provide the code you have issues with.

@acembling
Copy link

I have updated to 4.2.4 and the bug still happens. My app is still re-installing every time I save. Also since updated my whole app has slowed down significantly. It previously took around 8 seconds to save, now it takes 45 seconds? I have Webpack installed as well.

@KristianDD
Copy link
Contributor Author

Hi @Aceman18,
There might be a couple of reasons that cause that behavior and are out of our control. For example there is a size limit of the (...)/data/local/tmp folder in some Android devices and when this limit is reached on the device, the CLI can't work properly.

Try the solution described here.

If cleaning up the (...)/data/local/tmp folder doesn't solve the issue please run the command with
--log trace > clilog.txt at the end and then modify something in the project in order to trigger a livesync operation. This will produce a clilog.txt file in the application directory. Please attach the log file to your response.

@acembling
Copy link

acembling commented Oct 1, 2018

@KristianDD Over the last few days it seems to be working fine. Maybe it was that one day? But its fine now. Thank you for taking the time to write the response.

@endarova endarova self-assigned this Oct 8, 2018
@cerireyhan
Copy link

@Aceman18 You have to delete and reinstall node modules/hooks/platforms after updating the cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants