{ "id": "168711", "key": "TIMOB-24915", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-07-11T18:08:47.000+0000", "created": "2017-06-30T15:57:12.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-08-21T11:12:28.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": "10207", "name": "Tooling" }, { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\nWhen using the {{--run-cmake}} cli flag from ti cli it will not work and silently fail, this is because it errors out when the cli tries to read in the hook with the below, nodeappc is passed in to the hook and has async on it so we can use that rather than requiring it, it works fine from the appc cli because either the module lookup path is altered or the module has been cached already (I think the former)\r\n\r\n{code}\r\n{ Error: Cannot find module 'async' \r\n at Function.Module._resolveFilename (module.js:469:15) \r\n at Function.Module._load (module.js:417:25) \r\n at Module.require (module.js:497:17) \r\n at require (internal/module.js:20:19) \r\n at Object. (C:\\Users\\ewan\\Documents\\Appcelerator_Studio_Workspace\\ti.paint\\windows\\plugins\\hooks\\windows.js:6:13) \r\n at Module._compile (module.js:570:32) \r\n at Object.Module._extensions..js (module.js:579:10) \r\n at Module.load (module.js:487:32) \r\n at tryModuleLoad (module.js:446:12) \r\n at Function.Module._load (module.js:438:3) \r\n--------------------------------------------- \r\n at Object.exports.execFile (child_process.js:287:9) \r\n at exports.exec (child_process.js:103:18) \r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\environ.js:267:3 \r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:3694:9 \r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:356:16 \r\n at replenish (C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:877:25) \r\n at iterateeCallback (C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:867:17)\r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:840:16 \r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:3691:13 \r\n--------------------------------------------- \r\n at Object.exports.execFile (child_process.js:287:9) \r\n at exports.exec (child_process.js:103:18) \r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\lib\\environ.js:255:6 \r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:3686:9 \r\n at replenish (C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:882:17) \r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:886:9 \r\n at eachOfLimit (C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:913:22) \r\n at C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:918:16 \r\n at _parallel (C:\\Users\\ewan\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\\node_modules\\async\\dist\\async.js:3685:5) \r\n--------------------------------------------- \r\n at run (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.2.0.v20170630052324\\node_modules\\windowslib\\lib\\wptool.js:126:9) \r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.2.0.v20170630052324\\node_modules\\windowslib\\lib\\wptool.js:170:6 \r\n at C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.2.0.v20170630052324\\node_modules\\windowslib\\lib\\utilities.js:106:10 \r\n at FSReqWrap.oncomplete (fs.js:123:15) code: 'MODULE_NOT_FOUND' } \r\n{code}\r\n\r\n\r\nh5.Steps to reproduce\r\n\r\n# Download ti.paint from github https://github.com/appcelerator-archive/ti.paint\r\n# Run the module build with {{ti build -p windows --build-only --run-cmake}}\r\n\r\nh5.Actual\r\n\r\nThe build skips every architecture as CMake is not run\r\n\r\nh5.Expected\r\n\r\nCMake should be run", "attachment": [], "flagged": false, "summary": "Windows: run cmake flag does not work from titanium CLI", "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": "Ti SDK: 6.2.0.v20170630052324\r\nTi CLI: 5.0.14", "closedSprints": [ { "id": 912, "state": "closed", "name": "2017 Sprint 13 Tooling", "startDate": "2017-06-18T16:15:17.914Z", "endDate": "2017-07-02T16:15:00.000Z", "completeDate": "2017-07-06T23:54:40.012Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "423291", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_windows/pull/1030", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-06-30T17:03:36.000+0000", "updated": "2017-06-30T17:03:36.000+0000" }, { "id": "426963", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified in 6.2.0.v20170821001430, closing ticket\r\n", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-08-21T11:12:28.000+0000", "updated": "2017-08-21T11:12:28.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }