{ "id": "109913", "key": "TIMOB-12792", "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": [], "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": "2013-03-29T00:05:51.000+0000", "created": "2013-02-20T16:27:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "25954", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "99909", "key": "TIMOB-10672", "fields": { "summary": "CodeProcessor: Implement support for modules in the Code processor", "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": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-14T20:48:26.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": "13102", "name": "Code Processor", "description": "Analyzes JavaScript source" } ], "description": "I tried running the code processor against a Titanium Mobile project on latest master build (3.1.0.v20130215185802). The project includes a require of the \"com.soasta.touchtest\" module. The line is returned as an error by the code processor:\r\n{code}\r\nThe require path \"/Users/cwilliams/workspaces/runtime-Titanium-360/sadfasdf/Resources/com.soasta.touchtest.js\" could not be found\r\n{code}\r\n\r\nThe module is inside the project at {{modules/iphone/com.soasta.touchtest}}\r\n", "attachment": [], "flagged": false, "summary": "Code Processor marks require of module by id as problem", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "239048", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Did you run the code processor with \"-o iphone\"? Also can you check which version of the code processor you are running by opening the package.json file and looking at the version entry? The code processor is typically installed in /usr/local/lib/node_modules/titanium-code-processor on OS X and Linux.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T18:12:06.000+0000", "updated": "2013-02-20T18:12:06.000+0000" }, { "id": "239076", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I'm running 0.3.1 with a couple hacks (two overwritten files) pinnamuri gave me to get it working when integrated with Studio. I ran it specifying \"iphone\" as the platform.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-20T19:18:34.000+0000", "updated": "2013-02-20T19:18:34.000+0000" }, { "id": "239081", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just to verify:\nthe require looks like:\n{code}\nrequire('com.soasta.tocuhtest');\n{code}\nand the module file is at 'Resources/iphone/com.soasta.tocuhtest.js' correct?", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T19:38:34.000+0000", "updated": "2013-02-20T19:38:34.000+0000" }, { "id": "239103", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "I had a type in my description, just fixed it.\n\nThe line of code is: {{var touchTestModule = require(\"com.soasta.touchtest\");}}\nThe module is installed in the project at {{modules/iphone/com.soasta.touchtest}}\n\nI believe it is a native module. There is no {{Resources/iphone/com.soasta.touchtest.js}} file.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-20T20:44:31.000+0000", "updated": "2013-02-20T20:44:31.000+0000" }, { "id": "239108", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you check if it's native and, if so, that it's listed in the tiapp.xml? Native modules *must* be listed in the tiapp.xml file according to the docs and some of the people I talked to.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T21:03:15.000+0000", "updated": "2013-02-20T21:03:15.000+0000" }, { "id": "239112", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Here's the relevant portion fo the tiapp.xml file. It's in there, and it's a native iphone module.\n{code}\n\n ti.cloud\n com.soasta.touchtest\n \n \n false\n false\n false\n true\n true\n true\n \n 3.1.0.v20130215185802\n \n \n \n CFBundleURLTypes\n \n \n CFBundleTypeRole\n Editor\n CFBundleURLName\n sfdafsd.asfdasdf\n CFBundleURLSchemes\n \n touchtest-0b23a413-bf03-4982-a6bd-97ed596ee47b\n \n \n \n \n \n \n \n com.soasta.touchtest.android\n \n{code}", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-20T21:08:42.000+0000", "updated": "2013-02-20T21:08:42.000+0000" }, { "id": "239115", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That's strange, that should work. Would you mind attaching your complete project (or a minimum working sample w/ tiapp.xml) so I can investigate further?", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-20T21:12:08.000+0000", "updated": "2013-02-20T21:12:08.000+0000" }, { "id": "239166", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I ran the code processor on your project and it worked just fine for me. I used the command:\n\ntitanium-code-processor analyze -o iphone --all-plugins -l debug\n\nWhat is the exact command that you ran? Also, those hacked files are out of date. You should go into the code processor and run \"npm update\" (with sudo if necessary) to pull the latest node-appc from NPM, which should work just fine without modification.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-21T00:15:40.000+0000", "updated": "2013-02-21T00:15:40.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }