{ "id": "140191", "key": "AC-3305", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-11-21T22:44:31.000+0000", "created": "2014-11-21T22:29:01.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-03-08T07:57:43.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": [ { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" } ], "description": "h4. Problem\r\nRun {code}ti --help{code} when not in a project directory and you receive an error that means nothing:\r\n{code}\r\n17:24 $ ti --help\r\n\r\nnode.js:815\r\n var cwd = process.cwd();\r\n ^\r\nError: ENOENT, no such file or directory\r\n at Function.startup.resolveArgv0 (node.js:815:23)\r\n at startup (node.js:58:13)\r\n at node.js:906:3\r\n{code}\r\n\r\nh4. Expectation\r\nWhen ti --help is run, the user should receive the help information", "attachment": [], "flagged": false, "summary": "Running ti --help when not in a project directory errors", "creator": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "environment": "{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10.1\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 24.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.10.29\r\n npm Version = 1.4.14\r\n\r\nTitanium CLI\r\n CLI Version = 3.4.1\r\n node-appc Version = 0.2.14\r\n{code}", "comment": { "comments": [ { "id": "333292", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "At first glance, you might think this is a Titanium CLI issue when in fact it is a user error.\r\n\r\nTry this:\r\n\r\n{code}\r\ncd /\r\nti --help\r\n{code}\r\n\r\nWorks, right?\r\n\r\nNow, try this:\r\n\r\n{code}\r\nmkdir ~/iowechrisabeer\r\ncd ~/iowechrisabeer\r\nti --help\r\n{code}\r\n\r\nStill works!\r\n\r\nOpen a NEW terminal and run:\r\n\r\n{code}\r\ncd ~\r\nrm -rf ~/iowechrisabeer\r\n{code}\r\n\r\nSwitch back to the first terminal and run:\r\n\r\n{code}\r\nti --help\r\n{code}\r\n\r\nOh noes!\r\n\r\nTake Titanium CLI out of the equation and just try running Node:\r\n\r\n{code}\r\nnode\r\n{code}\r\n\r\nIn short, you cannot run Node.js in a folder that no longer exists.\r\n", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-11-21T22:48:37.000+0000", "updated": "2014-11-21T22:48:37.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }