{ "id": "91909", "key": "TIMOB-9148", "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": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13402", "description": "Sprint 2012-10 Core", "name": "Sprint 2012-10 Core", "archived": true, "released": true, "releaseDate": "2012-05-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-05-20T09:11:22.000+0000", "created": "2012-05-16T09:14:41.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_build", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17301", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "91437", "key": "TIMOB-9011", "fields": { "summary": "iOS: Implement proposed source code security features", "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": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-11T13:18:09.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Broken by commit f9a4f3815ee0\r\n\r\nReproduce:\r\n\r\na) Create an iOS module project: {{titanium create --type=module --name=testmod --id=ti.testmod --platform=iphone --dir=.}}\r\n\r\n(I'm assuming there that `titanium` is aliased to the master branch version of titanium.py -- adjust accordingly if needed.)\r\n\r\nb) Create a file therein: assets/ti.testmod.js and some code:\r\n\r\n{code}\r\nexports.hello = function() { return \"hello world\"; };\r\n{code}\r\n\r\nc) Run ./build.py.\r\n\r\nYou will see:\r\n\r\n{code}\r\nTraceback (most recent call last):\r\n File \"./build.py\", line 216, in \r\n compile_js(manifest,config)\r\n File \"./build.py\", line 81, in compile_js\r\n metadata = compiler.make_function_from_file(path,js_file)\r\nAttributeError: 'Compiler' object has no attribute 'make_function_from_file'\r\n{code}\r\n", "attachment": [ { "id": "28663", "filename": "ti.testmod.js", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T16:02:00.000+0000", "size": 53, "mimeType": "text/javascript" } ], "flagged": false, "summary": "iOS: commonjs external module compilation broken (build.py -> compile.py in module projects)", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS, titanium_mobile master branch (does not affect 2.0.X) since f9a4f3815ee0 (about 5/10/2012)", "comment": { "comments": [ { "id": "195216", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR pending https://github.com/appcelerator/titanium_mobile/pull/2215", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-17T15:28:05.000+0000", "updated": "2012-05-17T15:28:05.000+0000" }, { "id": "199960", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\n\r\nSDK: 2.1.0.v20120622174154\r\nStudio: 2.1.0.201206221045\r\nOS: Lion 10.7.4\r\nXcode: 4.3.2\r\nDevices Tested: iPod 4.3.3, iPad3 5.1.1, iPhone Simulator 5.1\r\n\r\nTest Steps\r\n\r\n1. Create iOS module.\r\n2. Add attached ti.testmod.js file to /assets/\r\n3. Build module (either run build.py from command line or package module from studio).\r\n\r\nExpected Result:\r\n\r\nModule should build without error.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T16:02:00.000+0000", "updated": "2012-06-23T16:02:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }