Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23171] Cannot package Alloy app for dist-winstore

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-04-11T20:33:41.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0, regression
ReporterWilson Luu
AssigneeKota Iguchi
Created2016-04-08T00:18:29.000+0000
Updated2016-04-28T20:48:43.000+0000

Description

*Details:* Cannot package Alloy app for dist-winstore. This is a *regression* from SDK 5.2.2.GA. *Steps to reproduce:*

Create a default Alloy project with appc new

Package the Alloy project for "dist-winstore": appc run --log-level trace --platform windows --target dist-winstore --ws-cert C:\Users\qe\Documents\generated.pfx --pfx-password tester --output-dir C:\Users\qe\Desktop

*Actual:* You will not be able to package the Alloy app for dist-winstore:
2016-04-07T23:58:58.100Z | ERROR  | An uncaught exception was thrown!
Path must be a string. Received undefined
2016-04-07T23:58:58.104Z | ERROR  | Path must be a string. Received undefined
2016-04-07T23:58:58.104Z | TRACE  | TypeError: Path must be a string. Received undefined
    at assertPath (path.js:8:11)
    at win32.join (path.js:221:5)
    at Object.exports.resolvePath (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\fs.js:52:20)
    at WindowsBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\windows\cli\commands\_build\config\wsCert.js:84:23)
    at Context.<anonymous> (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:684:31)
    at Array.forEach (native)
    at Context.setArg (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:663:35)
    at Context.<anonymous> (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:762:9)
    at Context.parse (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:819:7)
    at Context.loadPlatform (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:409:34)
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\subprocess.js:59:8)
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:90:22
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\subprocess.js:129:3
    at ChildProcess.exithandler (child_process.js:194:7)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
---------------------------------------------
    at Object.exports.execFile (child_process.js:273:9)
    at exports.exec (child_process.js:101:18)
    at Object.getRealName (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\subprocess.js:128:2)
    at powershell (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:85:21)
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:713:13
    at iterate (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:262:13)
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:274:29
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:44:16
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:718:17
---------------------------------------------
    at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\subprocess.js:59:8)
    at osInfo (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:71:21)
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:713:13
    at iterate (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:262:13)
    at async.forEachOfSeries.async.eachOfSeries (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:281:9)
    at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:712:9)
    at Object.async.series (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:734:9)
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:69:9
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\utilities.js:49:3
---------------------------------------------
    at magik (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\utilities.js:34:10)
    at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:41:9)
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\index.js:69:8
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:181:20
    at Object.async.forEachOf.async.eachOf (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:233:13)
    at Object.async.forEach.async.each (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:209:22)
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\index.js:68:9
    at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\utilities.js:49:3
---------------------------------------------
    at magik (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\utilities.js:34:10)
    at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\index.js:57:9)
    at MobileWebBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\mobileweb\cli\hooks\windows.js:104:14)
    at C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\hook.js:235:13
    at C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:689:13
    at iterate (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:265:13)
    at async.forEachOfSeries.async.eachOfSeries (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:284:9)
    at _parallel (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:688:9)
    at Object.async.series (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:710:9)
*Expected:* Should be able to package for the "dist-winstore".

Comments

  1. Kota Iguchi 2016-04-10

    https://github.com/appcelerator/titanium_mobile_windows/pull/612
  2. Ewan Harris 2016-04-28

    Verified using: Windows 10 Pro Visual Studio 2015 Community Update 2 Appc Core: 5.3.0-40 Appc NPM: 4.2.5-3 Ti SDK: 5.3.0.v20160428072113 When passing in the --ws-cert option the build no longer fails Closing ticket

JSON Source