Skip to content

When using tns run <platform> app is built and installed many times without change is made (android only) #2445

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

Closed
Natalia-Hristova opened this issue Jan 23, 2017 · 5 comments

Comments

@Natalia-Hristova
Copy link

Natalia-Hristova commented Jan 23, 2017

After running sdk examples for android then for ios, in android only - the app is built and installed over and over again without making any change in the app or interacting with it.

NOTE: If first ios is run then android - everything's fine.

Here's the app - https://github.com/telerik/nativescript-ui-samples/tree/master

  1. Run the app for android - tns run android
  2. Then in another terminal tab run the app for ios - tns run ios
@vchimev
Copy link

vchimev commented Jan 23, 2017

This issue comes with NativeScript CLI 2.5.0.

@vchimev
Copy link

vchimev commented Jan 24, 2017

My steps:

git clone git@github.com:telerik/nativescript-ui-samples.git
cd nativescript-ui-samples/sdk
tns update 2.5.0
tns run android
tns run ios # in another terminal

I don't manage to reproduce the issue with the steps above.

Then, if I execute:

rm -frv platforms
tns run android
tns run ios # in another terminal

I manage to reproduce the issue.

My guess is that platform adding, which happens on the tns run ios (installing iOS runtime package to node_modules and removing it), triggers a loop of rebuilds for every file the package contains.

Workaround:

Execute tns run <platform> --no-watch|--justlaunch.

@Plamen5kov
Copy link
Contributor

We need to figure out what behavior we want to support before we can do any work in a particular direction.

@Plamen5kov
Copy link
Contributor

We should make the run command behave the same way, livesync did: tns run should try to livesync all platforms and a <platform> parameter should be optional.

@Plamen5kov Plamen5kov removed their assignment Mar 22, 2017
@dtopuzov
Copy link
Contributor

Closing in flavor of #2470

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

No branches or pull requests

6 participants