Skip to content

CLI Process hangs on native build failure #2975

@petekanev

Description

@petekanev

Tell us about the problem

The CLI run/build process will not terminate (exit) if the gradle script throws an error, instead a warning message will be printed:

Unable to apply changes on device: 192.168.50.101:5555. Error is: Command gradlew.bat failed with exit code 1.

Which platform(s) does your issue occur on?

Tested on Android, have not checked if its present for iOS builds

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

  • CLI: 3.1.2
  • Runtime(s): 3.1

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

tns create testclicrash
cd testclicrash
tns plugin add nativescript-social-login
tns run android

Replace tns plugin add nativescript-social-login with any other possible method to crash the runtime build. The nativescript-social-login in particular crashes the build because it requires user configuration as explained in its respective README.

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions