Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7575

'cordova run android -- --nobuild' fails on cordova 3.6.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 3.6.0
    • None
    • cordova-android

    Description

      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.

      "TypeError: Cannot read property 'length' of undefined
          at G:\temp36\nobuild2\platforms\android\cordova\lib\build.js:334:35"
      

      Expected:
      The app should run without building.

      Error details:

      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)
      

      It seems that problem is in none builder. Its build method return undefined instead of array of built backages.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vladimir.kotikov Vladimir Kotikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: