apache / cordova-browser

Apache Cordova
Apache License 2.0
168 stars 85 forks source link

'cordova run' command issue #87

Closed CatchABus closed 4 years ago

CatchABus commented 5 years ago

Bug Report

When running cordova run with a declared platform, everything is good. However, on cordova run without any platform declaration, cordova will try to run all platforms. Let's say that browser runs first and android runs second. When it's the turn of android to run, it will search for target default which was set in browser platform arguments. Since both platforms will use these arguments, android will never complete its build as it never finds default target that was intended for cordova-browser only.

Problem

What is expected to happen?

Run all platforms without issues.

What does actually happen?

Android platform crashes.

Information

Command or Code

Run cordova run command without any platform declaration. Problem is located in https://github.com/apache/cordova-browser/blob/master/bin/template/cordova/lib/run.js.

Environment, Platform, Device

Version information

Cordova 9.0.0

Checklist