{ "id": "148510", "key": "TIMOB-18974", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-06-10T17:48:04.000+0000", "created": "2015-06-04T22:17:54.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-4.1.0" ], "versions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-07-02T21:54:34.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen building an Windows Platform project, when attempting to build using the {{--build-only}} flag, the build fails with the below\r\n\r\n{code}\r\n[ERROR] Failed to run command \"build\"\r\n[ERROR] TypeError: Cannot read property 'cyan' of undefined\r\n at WindowsBuilder.loginfo (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\windows\\cli\\commands\\_build.js:775:64)\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:610:21\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:249:17\r\n at iterate (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:149:13)\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:160:25\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:251:21\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:615:34\r\n at WindowsBuilder.initialize (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\windows\\cli\\commands\\_build.js:756:2)\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:610:21\r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\4.1.0.v20150604094312\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:249:17\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:712:9)\r\n at exports.exec (child_process.js:591:18)\r\n at C:\\Users\\Windo_000\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\environ.js:267:3\r\n at C:\\Users\\Windo_000\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:251:17\r\n at C:\\Users\\Windo_000\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:154:25\r\n at C:\\Users\\Windo_000\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:248:21\r\n at C:\\Users\\Windo_000\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\lib\\async.js:612:34\r\n at C:\\Users\\Windo_000\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\environ.js:261:7\r\n{code}\r\n\r\nFull logs are attached as fullOutput.txt\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Create a new application using {{ti create}}\r\n2. Run the application using {{ti build -p windows -T device --build-only}}\r\n\r\nh5.Actual Result\r\n\r\nThe build will fail with the above error\r\n\r\nh5.Expected Result\r\n\r\nThe build should not fail", "attachment": [ { "id": "55740", "filename": "fullOutput.txt", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-06-04T22:17:29.000+0000", "size": 3475, "mimeType": "text/plain" } ], "flagged": false, "summary": "Windows: CLI: Building a project with the --build-only flag errors out", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Windows 8.1\r\nTitanium CLI: 4.1.0-dev\r\nTitanium SDK: 4.1.0.v20150604094312", "closedSprints": [ { "id": 420, "state": "closed", "name": "2015 Sprint 12 Windows", "startDate": "2015-06-07T01:15:19.706Z", "endDate": "2015-06-21T01:15:00.000Z", "completeDate": "2015-06-20T23:02:18.410Z", "originBoardId": 144 } ], "comment": { "comments": [ { "id": "354731", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/271", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-10T06:18:09.000+0000", "updated": "2015-06-10T06:18:09.000+0000" }, { "id": "356778", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 8.1\r\nAppc CLI (NPM): 4.1.0-1\r\nAppc CLI (Registry): 4.1.0-4\r\nTi SDK: 4.1.0.v20150702030940\r\n\r\n\r\nWhen building with the --build-only flag the build no longer fails with the above error\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-07-02T20:03:45.000+0000", "updated": "2015-07-02T20:03:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }