nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

`tns run android` does not start the app sometimes after file changes

Open dtopuzov opened this issue 9 years ago • 6 comments

Scenario:

  1. Open MyApp in some editor (in my case VSCode)
  2. tns run android --path MyApp
  3. Start editing some JS, XML, CSS
  4. After livesync sometimes app does not start automatically (it works if I manual start it)

Will write again when I have more logs or repro steps.

This bug makes CLI tests flaky and we can not rely on them. This is critical!

dtopuzov avatar Feb 27 '17 08:02 dtopuzov

yes same problem here tns run android doesn't start emulator after upgrade to 2.5.2 , it was working in 2.5.1 but now not open the app automatically

ghost avatar Feb 27 '17 10:02 ghost

After livesync sometimes app does not start automatically

@dtopuzov, does this happen when you run tns run android command again, or just by changing and saving a file from the source code?

Plamen5kov avatar Feb 28 '17 15:02 Plamen5kov

@Plamen5kov I'm changing files and I have to remove the platform and add it again for the changes to get to the device. And I have to start the app manually on the emulator

nicoabie avatar Feb 28 '17 17:02 nicoabie

@nicoabie the PR I've linked should fix your problem.

Plamen5kov avatar Mar 01 '17 08:03 Plamen5kov

Closing as duplicate of: https://github.com/NativeScript/nativescript-cli/issues/2486

Plamen5kov avatar Mar 01 '17 12:03 Plamen5kov

Have you ever tried to run with emulator -avd. Because i realized i did not set the ANDROID_SDK_ROOT enviroment.Emulator started to work automatically after that

eksahin avatar Mar 09 '17 16:03 eksahin