Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24938] Windows: CLI errors when using a Windows specific app id and building for ws-local

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-07-07T21:44:33.000+0000
Affected Version/sRelease 6.1.1, Release 6.2.0
Fix Version/sRelease 6.2.0
ComponentsCLI, Windows
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2017-07-05T16:40:14.000+0000
Updated2017-08-16T18:06:21.000+0000

Description

Description

When building for ws-local and using a windows specific app id the CLI will error with the below
[ERROR] Error: Unable to find an installed app with id: com.appc.test
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:177:13
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:157:3
    at ChildProcess.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\node-appc\lib\subprocess.js:60:3)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:891:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\node-appc\lib\subprocess.js:59:8)
    at getAppxPackages (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:120:18)
    at Object.loopbackExempt (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:171:2)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\windows\cli\hooks\ws-run.js:174:26
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:3816:26
    at replenish (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:982:17)
    at iterateeCallback (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:967:17)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:944:16
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:3821:13
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\node-appc\lib\subprocess.js:59:8)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:79:20
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\node-appc\lib\subprocess.js:129:3
    at ChildProcess.exithandler (child_process.js:195:7)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:891:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
---------------------------------------------
    at Object.exports.execFile (child_process.js:287:9)
    at exports.exec (child_process.js:103:18)
    at Object.getRealName (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\node-appc\lib\subprocess.js:128:2)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:73:19
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\utilities.js:49:3
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
---------------------------------------------
    at magik (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\utilities.js:34:10)
    at Object.install (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:50:9)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\windows\cli\hooks\ws-run.js:171:26
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:3816:26
    at replenish (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:982:17)
    at iterateeCallback (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:967:17)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:944:16
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:3821:13
    at apply (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:21:25)
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\node-appc\lib\subprocess.js:59:8)
    at getAppxPackages (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:120:18)
    at getPackageFullName (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:199:2)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:223:3
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\utilities.js:49:3
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickDomainCallback (internal/process/next_tick.js:128:9)
---------------------------------------------
    at magik (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\utilities.js:34:10)
    at Object.uninstall (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\windowslib\lib\winstore.js:222:9)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\windows\cli\hooks\ws-run.js:168:26
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:3816:26
    at replenish (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:982:17)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:986:9
    at eachOfLimit (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:1011:22)
    at C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:1016:16
    at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\6.2.0.v20170630062735\node_modules\async\dist\async.js:3815:5)
---------------------------------------------
    at Domain.<anonymous> (C:\Users\ewan\AppData\Roaming\Appcelerator\Appcelerator Studio\plugins\com.appcelerator.titanium.liveview.core_1.1.0.1495185232\node_modules\liveview\hook\lvhook.js:171:6)
    at Domain.run (domain.js:221:14)
    at C:\Users\ewan\AppData\Roaming\Appcelerator\Appcelerator Studio\plugins\com.appcelerator.titanium.liveview.core_1.1.0.1495185232\node_modules\liveview\hook\lvhook.js:165:10
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\lib\hook.js:236:13
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:3845:9
    at replenish (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:1030:17)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:1034:9
    at eachOfLimit (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:1061:22)
    at C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:1066:16
    at _parallel (C:\Users\ewan\AppData\Roaming\npm\node_modules\titanium\node_modules\async\dist\async.js:3844:5)

Steps to reproduce

Add the following to the windows section of your tiapp (creating if it doesnt exist) <id>com.incrediblyuniqueappid</id>

Build the app using appc run -p windows -T ws-local (windows local from Studio)

Actual

It will error out with the above error

Expected

It should not error out

Comments

  1. Ewan Harris 2017-07-05

    Master: https://github.com/appcelerator/titanium_mobile_windows/pull/1034
  2. Samir Mohammed 2017-08-16

    Verified fix in SDK Version 7.0.0.v20170815065413 and SDK Version: 6.2.0.v20170815130745 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1034

JSON Source