Skip to content

CLI does not detect invalid platforms folder content #5145

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
DimitarTachev opened this issue Nov 18, 2019 · 0 comments · Fixed by #5463
Closed

CLI does not detect invalid platforms folder content #5145

DimitarTachev opened this issue Nov 18, 2019 · 0 comments · Fixed by #5463
Labels

Comments

@DimitarTachev
Copy link
Contributor

Reported by: @MartoYankov

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.2.1
  • Cross-platform modules: 6.2.0
  • Android Runtime: 6.2.0
  • iOS Runtime: 6.2.0

Describe the bug

To Reproduce

  1. tns create newApp --js
  2. rm -rf platforms
  3. mkdir -p platforms/android
  4. tns run android
  5. Unable to apply changes on device: emulator-5554. Error is: spawn ./gradlew ENOENT. will be thrown.

Expected behavior
The CLI should detect the invalid platforms state and suggest something like rm -rf platforms and npm cache clean --force.

Additional context
The invalid folder should be also handled for iOS and cloud builds.

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

Successfully merging a pull request may close this issue.

1 participant