{ "id": "112250", "key": "AC-2459", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-06T06:01:38.000+0000", "created": "2013-04-05T10:47:02.000+0000", "labels": [ "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:30.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I have created one titanium project. Please see the attachment. Now I try to run the Titanium Code Processor by using the command titanium-code-processor analyze -o android -d D:\\SampleUIModule\r\n\r\nBut it shows below error:\r\n---------------------------\r\n\r\nTitanium Code Processor v0.3.2\r\nCopyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.\r\ninfo: Analyzing project at \"D:\\SampleUIModule\"\r\nerror: Could not run the \"titanium project\" command: Error: Command failed: [ERR\r\nOR] Missing required option \"--username\"\r\n\r\nC:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\r\n\\lib\\analytics.js:180\r\nsessionCookie = status.cookie.match\r\n ^\r\n(/(PHPSESSID=\r\n[A-Za-z0-9]+)/),\r\n TypeError: Cannot call method 'match' of undefined\r\n at C:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\no\r\nde-appc\\lib\\analytics.js:180:35\r\n at async.parallel (C:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\r\n\\node_modules\\async\\lib\\async.js:476:17)\r\n at async.forEach (C:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\\\r\nnode_modules\\async\\lib\\async.js:94:25)\r\n at async.parallel (C:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\r\n\\node_modules\\async\\lib\\async.js:473:21)\r\n at process.on.async.parallel.osinfo (C:\\Users\\263668\\AppData\\Roaming\\npm\\nod\r\ne_modules\\titanium\\node_modules\\node-appc\\lib\\analytics.js:56:5)\r\n at module.exports.getOSInfo (C:\\Users\\263668\\AppData\\Roaming\\npm\\node_module\r\ns\\titanium\\node_modules\\node-appc\\lib\\environ.js:215:4)\r\n at ChildProcess.exithandler (child_process.js:538:7)\r\n at ChildProcess.EventEmitter.emit (events.js:99:17)\r\n at maybeClose (child_process.js:638:16)\r\n at Process._handle.onexit (child_process.js:680:5)\r\nMake sure that the Titanium CLI is installed and a 3.0 or newer SDK is installed\r\n.\r\n\r\n---------------------------\r\n\r\n\r\nI am behind a proxy server.", "attachment": [ { "id": "37062", "filename": "SampleUIModule.zip", "author": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T10:47:02.000+0000", "size": 753651, "mimeType": "application/zip" } ], "flagged": false, "summary": "Titanium Code Processor error on Windows", "creator": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OS: Windows\r\nTitanium Studio Version: 3.0.2.201302191606\r\nTitanium SDK Version: 3.0.2 GA\r\nTitanium CLI Version: 3.0.24\r\nAlloy Version: 1.0.0", "comment": { "comments": [ { "id": "245940", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello,\r\n\r\nI tried to run the code processor with the code you mentioned, and it works fine on my machine.\r\n\r\nThis is the command I run:\r\n\r\n{code}\r\n$ titanium-code-processor analyze -a -o android -d SampleUIModule\r\nTitanium Code Processor v0.3.2\r\nCopyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.\r\ninfo: Analyzing project at \"/tmp/SampleUIModule\"\r\ninfo: Code processing finished successfully in 1216 ms.\r\n{code}", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-04-05T13:49:56.000+0000", "updated": "2013-04-05T13:49:56.000+0000" }, { "id": "246377", "author": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello\r\n\r\nI also tried with the same command but it is giving me the error:\r\n\r\n{quote}\r\ntitanium-code-processor analyze -a -o android -d D:\\SampleUIModu\r\nle\r\nTitanium Code Processor v0.3.2\r\nCopyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved.\r\ninfo: Analyzing project at \"D:\\SampleUIModule\"\r\nerror: Could not run the \"titanium project\" command: Error: Command failed: [ERR\r\nOR] Missing required option \"--username\"\r\n\r\nC:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\node-appc\r\n\\lib\\analytics.js:180\r\n sessionCookie = status.cookie.match(/(PHPSESSID=\r\n[A-Za-z0-9]+)/),\r\n ^\r\nTypeError: Cannot call method 'match' of undefined\r\n at C:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\\node_modules\\no\r\nde-appc\\lib\\analytics.js:180:35\r\n at async.parallel (C:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\r\n\\node_modules\\async\\lib\\async.js:476:17)\r\n at async.forEach (C:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\\\r\nnode_modules\\async\\lib\\async.js:94:25)\r\n at async.parallel (C:\\Users\\263668\\AppData\\Roaming\\npm\\node_modules\\titanium\r\n\\node_modules\\async\\lib\\async.js:473:21)\r\n at process.on.async.parallel.osinfo (C:\\Users\\263668\\AppData\\Roaming\\npm\\nod\r\ne_modules\\titanium\\node_modules\\node-appc\\lib\\analytics.js:56:5)\r\n at module.exports.getOSInfo (C:\\Users\\263668\\AppData\\Roaming\\npm\\node_module\r\ns\\titanium\\node_modules\\node-appc\\lib\\environ.js:215:4)\r\n at ChildProcess.exithandler (child_process.js:538:7)\r\n at ChildProcess.EventEmitter.emit (events.js:99:17)\r\n at maybeClose (child_process.js:638:16)\r\n at Process._handle.onexit (child_process.js:680:5)\r\nMake sure that the Titanium CLI is installed and a 3.0 or newer SDK is installed\r\n.\r\n{quote}\r\n\r\nCan you please place the sample code to some directory such as D:\\Code\\\r\n\r\nI am on windows machine", "updateAuthor": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-08T06:41:24.000+0000", "updated": "2013-04-08T06:41:24.000+0000" }, { "id": "246380", "author": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nI have tested the same in MAC. And it is working there. But not working in windows.", "updateAuthor": { "name": "surajit_rcc8", "key": "surajit_rcc8", "displayName": "Surajit Biswas", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-08T07:27:06.000+0000", "updated": "2013-04-08T07:27:06.000+0000" }, { "id": "246473", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The code processor uses the Titanium CLI to query projects, etc. It seems that you are not logged in. The code processor should handle this more gracefully, but you can get around this by logging in using \"titanium login\"", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-08T19:41:24.000+0000", "updated": "2013-04-08T19:41:24.000+0000" }, { "id": "283143", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. If so, please send us the details per Bryan's recommendations so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it. ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-09T04:16:42.000+0000", "updated": "2013-12-09T04:16:42.000+0000" }, { "id": "286723", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this ticket as we have not been able to reproduce the issue and we have not heard back from the reporter. We would be happy to reopen the ticket and investigate it further if you can provide the requested information.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T06:01:38.000+0000", "updated": "2014-01-06T06:01:38.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }