Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18974] Windows: CLI: Building a project with the --build-only flag errors out

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2015-06-10T17:48:04.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsCLI, Windows
Labelsqe-4.1.0
ReporterEwan Harris
AssigneeKota Iguchi
Created2015-06-04T22:17:54.000+0000
Updated2015-07-02T21:54:34.000+0000

Description

Description

When building an Windows Platform project, when attempting to build using the --build-only flag, the build fails with the below
[ERROR] Failed to run command "build"
[ERROR] TypeError: Cannot read property 'cyan' of undefined
    at WindowsBuilder.loginfo (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\windows\cli\commands\_build.js:775:64)
    at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:610:21
    at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:249:17
    at iterate (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:149:13)
    at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:160:25
    at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:251:21
    at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:615:34
    at WindowsBuilder.initialize (C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\windows\cli\commands\_build.js:756:2)
    at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:610:21
    at C:\ProgramData\Titanium\mobilesdk\win32\4.1.0.v20150604094312\node_modules\node-appc\node_modules\async\lib\async.js:249:17
---------------------------------------------
    at exports.execFile (child_process.js:712:9)
    at exports.exec (child_process.js:591:18)
    at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\environ.js:267:3
    at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:251:17
    at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:154:25
    at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:248:21
    at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\node_modules\async\lib\async.js:612:34
    at C:\Users\Windo_000\AppData\Roaming\npm\node_modules\titanium\node_modules\node-appc\lib\environ.js:261:7
Full logs are attached as fullOutput.txt

Steps To Reproduce

1. Create a new application using ti create 2. Run the application using ti build -p windows -T device --build-only

Actual Result

The build will fail with the above error

Expected Result

The build should not fail

Attachments

FileDateSize
fullOutput.txt2015-06-04T22:17:29.000+00003475

Comments

  1. Kota Iguchi 2015-06-10

    https://github.com/appcelerator/titanium_mobile_windows/pull/271
  2. Ewan Harris 2015-07-02

    Verified using: Windows 8.1 Appc CLI (NPM): 4.1.0-1 Appc CLI (Registry): 4.1.0-4 Ti SDK: 4.1.0.v20150702030940 When building with the --build-only flag the build no longer fails with the above error Closing ticket

JSON Source