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

Windows: CLI fails when running any appc commands

    Details

      Description

      When building for Android on Windows (appc run), the build crashes with the attached error. Same occurs for all other appc commands, e.g. appc ti info, so we are unable to get the environment. Logging out and in also didn't resolve the issue.

      EDIT: The Ti CLI was outdated, after updating it to 5.0.14, the Appc-CLI to 6.2.3 and the SDK to 6.1.2, the new error is:

      \
      C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\visualstudio.js:65
                              next(null, JSON.parse(out));
                         ^
      SyntaxError: Unexpected end of JSON input
          at Object.parse (native)
          at ChildProcess.<anonymous> (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\visualstudio.js:65:20)
          at emitTwo (events.js:106:13)
          at ChildProcess.emit (events.js:191:7)
          at maybeClose (internal/child_process.js:877:16)
          at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
      ---------------------------------------------
          at runVS2017Tool (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\visualstudio.js:53:8)
          at detectVS2017Installations (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\visualstudio.js:105:2)
          at detectInstallations (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\visualstudio.js:146:2)
          at C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\visualstudio.js:94:3
          at C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\utilities.js:49:3
          at _combinedTickCallback (internal/process/next_tick.js:67:7)
          at process._tickCallback (internal/process/next_tick.js:98:9)
      ---------------------------------------------
          at magik (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\utilities.js:34:10)
          at Object.detect (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\visualstudio.js:88:9)
          at C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\index.js:80:8
          at C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:181:20
          at Object.async.forEachOf.async.eachOf (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:233:13)
          at Object.async.forEach.async.each (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\node_modules\async\lib\async.js:209:22)
          at C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\index.js:79:9
          at C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\utilities.js:49:3
      ---------------------------------------------
          at magik (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\lib\utilities.js:34:10)
          at Object.detect (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\node_modules\windowslib\index.js:58:9)
          at Section.exports.detect (C:\Users\7strel\AppData\Roaming\Titanium\mobilesdk\win32\6.1.2.GA\windows\cli\lib\info.js:26:13)
          at C:\Users\7strel\AppData\Roaming\npm\node_modules\titanium\lib\commands\info.js:604:13
          at C:\Users\7strel\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:3845:9
          at eachOfArrayLike (C:\Users\7strel\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:1089:9)
          at eachOf (C:\Users\7strel\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:1139:5)
          at _parallel (C:\Users\7strel\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:3844:5)
          at Object.parallelLimit [as parallel] (C:\Users\7strel\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:3924:3)
      

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Ewan Harris
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code