Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24285] Windows: Build fails when no target is specified

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-01-09T00:29:40.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsregression
ReporterEwan Harris
AssigneeEwan Harris
Created2017-01-08T21:08:24.000+0000
Updated2017-01-09T19:44:23.000+0000

Description

Description

When building a Windows application without the -T option appc run -p windows the build process errors out with the following
:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170107081537\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.1.0.v20170107081537\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:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582: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)
---------------------------------------------
    at Object.setImmediate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:194:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:272:35
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:44:16
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:723:17
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:167:37
    at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:451:65)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:718:13
    at Immediate.iterate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:262:13)
---------------------------------------------
    at Object.setImmediate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:194:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:272:35
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:44:16
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:723:17
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:167:37
    at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:451:65)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:718:13
    at Immediate.iterate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:262:13)
---------------------------------------------
    at Object.setImmediate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:194:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:272:35
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:44:16
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:723:17
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:167:37
    at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:451:65)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:718:13
    at Immediate.iterate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:262:13)
---------------------------------------------
    at Object.setImmediate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:194:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:272:35
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:44:16
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:723:17
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:167:37
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:479:13
    at WindowsBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\6.1.0.v20170107081537\windows\cli\commands\_build\config\deviceID.js:110:4)
    at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:474:16)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:718:13
---------------------------------------------
    at Object.setImmediate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:194:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:272:35
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:44:16
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:723:17
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:167:37
    at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:523:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:718:13
    at Immediate.iterate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:262:13)
---------------------------------------------
    at Object.setImmediate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:194:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:272:35
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:44:16
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:723:17
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:167:37
    at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:523:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:718:13
    at Immediate.iterate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:262:13)
---------------------------------------------
    at Object.setImmediate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:194:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:272:35
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:44:16
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:723:17
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:167:37
    at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:523:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:718:13
    at Immediate.iterate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:262:13)
---------------------------------------------
    at Object.setImmediate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:194:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:272:35
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:44:16
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:723:17
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:167:37
    at CLI.<anonymous> (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\cli.js:523:9)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:718:13
    at Immediate.iterate (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:262:13)

Steps to reproduce

Build an application with appc run -p windows

Actual result

Build errors with the above

Expected result

Build should not error and build to an emulator

Comments

  1. Ewan Harris 2017-01-08

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/919
  2. Kota Iguchi 2017-01-09

    Nice catch! (y)
  3. Samir Mohammed 2017-01-09

    Verified fix, error was not present when using appc run -p window with 6.1.0.v20170109110359 *Environment*
       Operating System
       Name                        = Microsoft Windows 10 Pro
       Version                     = 10.0.14393
       Architecture                = 64bit
       

    CPUs = 4

    Memory = 17034395648 Node.js Node.js Version = 4.4.4 npm Version = 2.11.3 Titanium SDK SDK Version = 6.1.0.v20170109110359
    Closing Ticket.

JSON Source