Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19153

Windows: CLI errors with Error: Callback was already called when building to emulator with production deploytype

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: Release 5.0.0
    • Component/s: CLI, Windows
    • Labels:
    • Environment:

      Windows 8.1
      Appc CLI (NPM): 4.1.0-1
      Appc CLI (Registry): 4.1.0-4
      Ti SDK: 4.1.0.v20150702030940

    • Story Points:
      5
    • Sprint:
      2015 Sprint 15 Windows

      Description

      Description

      When building for an emulator with a deploytype of production the build will error out with the below

      C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:1
      95
              throw e;
                    ^
      Error: Callback was already called.
          at WindowsBuilder.<anonymous> (C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_
      modules\async\lib\async.js:22:31)
          at CLI._fireHookCallback (C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\lib\hook.j
      s:269:12)
          at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\lib\hook.js:248:10
          at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\async\lib\async.js:2
      32:13
          at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\async\lib\async.js:1
      42:25
          at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\async\lib\async.js:2
      29:17
          at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\node_modules\async\lib\async.js:5
      56:34
          at C:\Users\Windo_000\.appcelerator\install\4.1.0-0\package\node_modules\appc-cli-titanium\node_modules\titanium\lib\hook.js:239:9
          at EventEmitter.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\windows\cli\hooks\wp-run.js:244:9)
      ---------------------------------------------
          at installApp (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\windows\cli\hooks\wp-run.js:218:8)
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\windows\cli\hooks\wp-run.js:286:7
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:551:21
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:227:13
          at iterate (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:134:13)
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:145:25
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:229:17
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:556:34
      ---------------------------------------------
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\windows\cli\hooks\wp-run.js:265:8
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:551:21
          at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:227:13
          at iterate (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:134:13)
          at async.eachSeries (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:150:9)
          at _asyncMap (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:226:9)
          at Object.mapSeries (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:216:23)
          at async.series (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150702140313\node_modules\async\lib\async.js:549:19)
      

      Steps to reproduce

      1. Build a project using appc run -p windows -T wp-emulator -D production

      Actual result

      The CLI will error with the above

      Expected result

      The CLI should not error

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              eharris Ewan Harris
              Reviewer:
              Kota Iguchi (Inactive)
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20091
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration