{ "id": "176123", "key": "TIMOB-28393", "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": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-04-07T15:32:43.000+0000", "created": "2021-03-15T12:41:22.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "regression" ], "versions": [ { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-04-07T15:32:43.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" } ], "description": "h5.Description\r\n\r\n*This is blocking CI builds on Jenkins, we should revert the node-ios-device update*\r\n\r\nWhen building with {{-C}} the build will error with an error like below, this is because node-pre-gyp is parsing our {{-C}} flag and assuming it's meant for itself and changing the directory which is then causing the error.\r\n\r\nI think node-pre-gyp-init needs to maybe try and force node-pre-gyp to not do this.\r\n\r\n{code}\r\n Error: ENOENT: no such file or directory, open 'foooo/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/node-ios-device/package.json'\r\n at Object.openSync (fs.js:462:3)\r\n at Object.readFileSync (fs.js:364:35)\r\n at Run.parseOpts [as parseArgv] (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js:176:37)\r\n at new Run (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js:85:8)\r\n at exports.find (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js:21:16)\r\n at Immediate. (/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/node-pre-gyp-init/index.js:21:21)\r\n at processImmediate (internal/timers.js:461:21) {\r\n errno: -2,\r\n syscall: 'open',\r\n code: 'ENOENT',\r\n path: 'foooo/Users/awam/Library/Application Support/Titanium/mobilesdk/osx/10.0.0.v20210312130708/node_modules/node-ios-device/package.json'\r\n}\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. With a 10.0.0 build pass in the {{-C}} option when building to ios\r\n\r\nh5.Actual\r\n\r\nAbove error\r\n\r\nh5.Expected\r\n\r\nNo error", "attachment": [], "flagged": false, "summary": "CLI: Building with -C option will fail with \"ENOENT: no such file or directory, open\" error", "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": null, "comment": { "comments": [ { "id": "458409", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "10_0_X revert: https://github.com/appcelerator/titanium_mobile/pull/12577\r\nmaster revert : https://github.com/appcelerator/titanium_mobile/pull/12578", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-03-15T12:50:30.000+0000", "updated": "2021-03-15T12:50:30.000+0000" }, { "id": "458410", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "node-pre-gyp-init PR to clear process.argv before calling @mapbox/node-pre-gyp https://github.com/cb1kenobi/node-pre-gyp-init/pull/3", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-03-15T13:10:04.000+0000", "updated": "2021-03-15T13:10:04.000+0000" }, { "id": "458411", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "master PR to update node-pre-gyp-init dependency: https://github.com/appcelerator/titanium_mobile/pull/12579 ", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-03-15T17:34:46.000+0000", "updated": "2021-03-15T17:34:46.000+0000" }, { "id": "458536", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed error no longer seen when running {{appc run -p ios -C }} Tested using SDK Version {{10.1.0.v20210407072202}} and {{10.0.0.v20210407072525}}. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-07T15:31:13.000+0000", "updated": "2021-04-07T15:32:18.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }