{ "id": "123614", "key": "AC-2065", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-12-28T18:34:30.000+0000", "created": "2013-12-11T22:48:20.000+0000", "labels": [ "3.2.0,", "beta", "cli,", "node", "titanium," ], "versions": [], "issuelinks": [ { "id": "34045", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "122831", "key": "TIMOB-15804", "fields": { "summary": "CLI: All commands fail if \"node\" executable is not actually called \"node\"", "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": "High", "id": "2" }, "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": "2016-03-08T07:41:01.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "attachment": [], "flagged": false, "summary": "titanium cli wans't shifting argv right", "creator": { "name": "razvanc87@gmail.com", "key": "razvanc87@gmail.com", "displayName": "Răzvan Rădulescu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "razvanc87@gmail.com", "key": "razvanc87@gmail.com", "displayName": "Răzvan Rădulescu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ubuntu 13.10", "comment": { "comments": [ { "id": "285635", "author": { "name": "a.marcone", "key": "a.marcone", "displayName": "Alberto Marcone", "active": true, "timeZone": "Europe/Berlin" }, "body": "same thing here, but your solution didn't work. Did you just comment the if part and applied the shift no matter what?", "updateAuthor": { "name": "a.marcone", "key": "a.marcone", "displayName": "Alberto Marcone", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-12-23T14:44:18.000+0000", "updated": "2013-12-23T14:44:18.000+0000" }, { "id": "285636", "author": { "name": "ethraza", "key": "ethraza", "displayName": "Allan Brazute", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "After the update to 3.2.0, on my Ubuntu 12.04, the ti command started to give the same error and the Titanium Studio was not detecting the Android SDK. So I edited the cli.js as mentioned above and it started to work and detected the Android SDK.\nThanks", "updateAuthor": { "name": "ethraza", "key": "ethraza", "displayName": "Allan Brazute", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-12-23T15:31:36.000+0000", "updated": "2013-12-23T15:31:36.000+0000" }, { "id": "285733", "author": { "name": "razvanc87@gmail.com", "key": "razvanc87@gmail.com", "displayName": "Răzvan Rădulescu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~a.marcone] that's exactly what I did. I commented the if out and applied the shift no matter what. It doesn't break anything as far as I can tell on my machine.", "updateAuthor": { "name": "razvanc87@gmail.com", "key": "razvanc87@gmail.com", "displayName": "Răzvan Rădulescu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-24T13:49:14.000+0000", "updated": "2013-12-24T13:49:14.000+0000" }, { "id": "286135", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is a dupe of TIMOB-15804.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-12-28T18:34:30.000+0000", "updated": "2013-12-28T18:34:30.000+0000" }, { "id": "287922", "author": { "name": "hardnett", "key": "hardnett", "displayName": "Charles Hardnett", "active": true, "timeZone": "America/Havana" }, "body": "What worked for me was to replace the if statement with:\n{code:javascript}\nif (args[0].replace(/\\\\/g, '/').replace(/js$/,'').split('/').pop().replace(/\\.exe$/, '') == proce~ss.execPath.replace(/\\\\/g, '/').replace(/js$/,'').split('/').pop().replace(/\\.exe$/, '')) {\n{code}\n\nfound here [http://developer.appcelerator.com/question/160741/titanium-cli-32-doesnt-work-on-ubuntu-because-it-doesnt-strip-the-node-executable-from-the-args]\n", "updateAuthor": { "name": "hardnett", "key": "hardnett", "displayName": "Charles Hardnett", "active": true, "timeZone": "America/Havana" }, "created": "2014-01-13T00:59:52.000+0000", "updated": "2014-01-13T00:59:52.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }