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

Windows: Build errors out when selecting wp-emulator or wp-device after being prompted for a target

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 6.2.0
    • Fix Version/s: Release 6.2.0
    • Component/s: CLI, Windows
    • Labels:
      None
    • Environment:

      Windows 10 Pro
      Ti SDK: 6.2.0.v20170630062735
      Lumia 550 10.0

    • Sprint:
      2017 Sprint 14 Tooling

      Description

      Description

      When building for Windows and providing an invalid value for target, when selecting a target value that requires detecting devices (wp-emulator or wp-device) the CLI will error out with

      C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\windows\cli\commands\_build\config\deviceID.js:76
                                      throw new Error(
                ^
      Error: No Windows Phone emulators found
          at WindowsBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\windows\cli\commands\_build\config\deviceID.js:76:11)
          at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:838:9)
          at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:4053:5
          at process (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:2479:17)
          at Immediate.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:2292:16)
          at runCallback (timers.js:672:20)
          at tryOnImmediate (timers.js:645:5)
          at processImmediate [as _immediateCallback] (timers.js:617:5)
      ---------------------------------------------
          at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:2291:9
          at apply (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:41:25)
          at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:76:12
          at _insert (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:2400:9)
          at Object.push (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:2447:13)
          at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:925:9
          at Array.forEach (native)
          at CLI.prompt (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:924:43)
          at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:640:13)
      

      Steps to reproduce
      1. Build a Windows app with ti build -p windows -T notvalid
      2. Select either wp-device or wp-emulator
      Actual

      CLI will error out with the above

      Expected

      CLI should not error out, should build as normal

        Attachments

          Activity

            People

            • Assignee:
              eharris Ewan Harris
              Reporter:
              eharris Ewan Harris
              Tester:
              Samir Mohammed
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code