You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/09/18 10:26:33 UTC
[jira] [Commented] (CB-7575) 'cordova run android -- --nobuild'
fails on cordova 3.6.3
[ https://issues.apache.org/jira/browse/CB-7575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138690#comment-14138690 ]
ASF GitHub Bot commented on CB-7575:
------------------------------------
GitHub user vladimir-kotikov opened a pull request:
https://github.com/apache/cordova-android/pull/121
CB-7575 Fixes 'run' failure with --nobuild option specified.
Fix for https://issues.apache.org/jira/browse/CB-7575
'cordova run android -- --nobuild' fails on cordova 3.6.3 due to `none` builder's `build` method that return undefined instead of array.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/MSOpenTech/cordova-android CB-7575
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/121.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #121
----
commit fd5c8c96ae394284d4a7c16a95b2fab7fd57f60a
Author: Vladimir Kotikov <v-...@microsoft.com>
Date: 2014-09-18T08:24:38Z
CB-7575 Fixes 'run' failure with --nobuild option specified.
----
> 'cordova run android -- --nobuild' fails on cordova 3.6.3
> ---------------------------------------------------------
>
> Key: CB-7575
> URL: https://issues.apache.org/jira/browse/CB-7575
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 3.6.0
> Reporter: Vladimir Kotikov
> Labels: android, nobuild
>
> *Repro:*
> 1. install cordova 3.6.3-0.2.12
> 2. cordova create foo
> 3. cd foo
> 4. cordova platform add android
> 5. cordova build android
> 6. cordova run android -- --nobuild
> *Result:*
> The app fails to run.
> {noformat}
> "TypeError: Cannot read property 'length' of undefined
> at G:\temp36\nobuild2\platforms\android\cordova\lib\build.js:334:35"
> {noformat}
> *Expected:*
> The app should run without building.
> *Error details:*
> {noformat}
> G:\temp36\nobuild2>cordova run android -- --nobuild
> Running command: G:\temp36\nobuild2\platforms\android\cordova\run.bat --nobuild
> Skipping build...
> G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:126
> throw e;
> ^
> TypeError: Cannot read property 'length' of undefined
> at G:\temp36\nobuild2\platforms\android\cordova\lib\build.js:334:35
> at _fulfilled (G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:798:54)
> at self.promiseDispatch.done (G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:827:30)
> at Promise.promise.promiseDispatch (G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:760:13)
> at G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:526:49
> at flush (G:\temp36\nobuild2\platforms\android\cordova\node_modules\q\q.js:108:17)
> at process._tickCallback (node.js:415:13)
> Error: G:\temp36\nobuild2\platforms\android\cordova\run.bat: Command failed with exit code 8
> at ChildProcess.whenDone (C:\Users\joelku\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
> at ChildProcess.EventEmitter.emit (events.js:98:17)
> at maybeClose (child_process.js:743:16)
> at Process.ChildProcess._handle.onexit (child_process.js:810:5)
> {noformat}
> It seems that problem is in {{none}} builder. Its build method return {{undefined}} instead of array of built backages.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)