{ "id": "145299", "key": "TIMOB-18629", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "16586", "description": "Release 3.4.2", "name": "Release 3.4.2", "archived": false, "released": true, "releaseDate": "2017-03-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-03-03T22:56:55.000+0000", "created": "2015-03-02T19:54:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "46345", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "144405", "key": "TIMOB-18538", "fields": { "summary": "CLI: Fix incompatibilities with Node 0.12", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "46344", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "145296", "key": "TIMOB-18628", "fields": { "summary": "Update the node version in vendorDependencies in the package.json", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-03-05T19:35:07.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": "Currently, if you upgrade to Node 0.12 and attempt to build with a pre-3.5.1 SDK, it will fail. This is expected by us, but confusing to the end user.\r\n\r\nTo fix, we will warn the user that they should downgrade (or upgrade) to a supported node version\r\n\r\n# Check the root package.son file for the node range supported\r\n# Compare that against the node version installed.\r\n# If the installed range lies outside the supported range, print a *HIGHLY VISIBLE WARNING* that this node version may not work as expected and encourage them to upgrade (if older) or downgrade (if newer) to a supported node version.", "attachment": [], "flagged": false, "summary": "CLI: Warn if using an unsupported Node version", "creator": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 354, "state": "closed", "name": "2015 Sprint 05 Tooling", "startDate": "2015-02-28T15:56:04.157Z", "endDate": "2015-03-14T00:00:00.000Z", "completeDate": "2015-03-14T01:06:35.190Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "344850", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "node-appc v0.2.25 https://github.com/appcelerator/node-appc/pull/107\r\n\r\nTitanium CLI master pull request: https://github.com/appcelerator/titanium/pull/194\r\nTitanium CLI 3_5_X pull request: https://github.com/appcelerator/titanium/pull/195\r\nTitanium CLI 3_4_X pull request: https://github.com/appcelerator/titanium/pull/198", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-03-02T22:14:27.000+0000", "updated": "2015-03-02T22:14:27.000+0000" }, { "id": "344851", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test, install Node.js 0.12.0, then run:\r\n\r\n{code}\r\nti sdk install 3.5.0.GA\r\nti sdk install -b 3_5_X -d\r\n\r\n# should work\r\nti build -p ios\r\n\r\n# should show error message\r\nti build -p ios --sdk 3.5.0.GA\r\n{code}\r\n\r\nInstall Node.js 0.10.36 (or whatever), then run the build commands above again.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-03-02T22:16:27.000+0000", "updated": "2015-03-02T22:16:27.000+0000" }, { "id": "344934", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~ingo] That's easy enough. I'll get an update today.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-03-03T16:44:42.000+0000", "updated": "2015-03-03T16:44:42.000+0000" }, { "id": "344944", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Titanium CLI master PR: https://github.com/appcelerator/titanium/pull/199\r\nTitanium CLI 3_5_X PR: https://github.com/appcelerator/titanium/pull/201\r\nTitanium CLI 3_4_X PR: https://github.com/appcelerator/titanium/pull/200\r\n\r\nTo test fully test this, you need to use a Node.js version from the future. Since there's nothing newer than 0.12, this is going to be impossible. You will need to edit the titanium.js and fake the process.version.\r\n\r\nAlso, this PR introduces a new CLI config setting: {{cli.hideNodejsWarning}}. It defaults to false. You can test this by running:\r\n\r\n{code}\r\nti build -p ios --config \"{cli:{hideNodejsWarning:true}}\"\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-03-03T18:17:48.000+0000", "updated": "2015-03-03T18:17:48.000+0000" }, { "id": "344946", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could you test this by following the steps here: TIMOB-18632?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-03T18:21:27.000+0000", "updated": "2015-03-03T18:21:27.000+0000" }, { "id": "344988", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The only problem I noticed is with the below configuration -\r\n- Node v0.12 is installed.\r\n- Selected Titanium SDK is 3.5.0.GA\r\n- Create a Titanium app with SDK set to 3.5.1.x and build the command using ``ti build -p ios``\r\n\r\nThe above command will end abruptly while it tries to load node-ios-device libraries without any errors/warnings. However, if we we run the same command with the --sdk parameter, then it runs without any errors as expected.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-03T22:56:45.000+0000", "updated": "2015-03-03T22:56:45.000+0000" }, { "id": "345202", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nTitanium SDK 3.5.1.v20150305100816 & 3.5.0.GA\r\nCLI 3.4.2-rc4\r\n\r\nWarnings about node support are correctly shown for the indicated commands.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-03-05T19:35:07.000+0000", "updated": "2015-03-05T19:35:07.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }