{ "id": "83917", "key": "TIMOB-6689", "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": "12090", "description": "", "name": "Sprint 2011-50", "archived": true, "released": true, "releaseDate": "2011-12-19" } ], "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": "2011-12-15T18:05:28.000+0000", "created": "2011-12-15T08:08:41.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14263", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "83914", "key": "TIMOB-6688", "fields": { "summary": "iOS: CommonJS - Module variables not updated", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-12-19T06:23:33.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": "Expected: require('ui').createMainWindow().open() should load module and any include() statements within ui.js should work\r\n\r\nActual: throws file not found error on the include() statement; need to use require('/ui').createMainWindow().open()\r\n\r\nAttached file demonstrates problem.\r\n\r\nThe relative path worked in 1.7.6 and the CI build of 1.8 noted in the code comments\r\n\r\nPossibly related to TIMOB-6602", "attachment": [ { "id": "24722", "filename": "RequireTest_ios.zip", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-15T08:08:41.000+0000", "size": 2320486, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: CommonJS - relative path in require() causes nested include() statements to fail", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": "Mac OS X 10.6.8, Ti Studio 1.0.7.201112120322, version=1.8.0.1, timestamp=12/09/11 16:48, githash=531977c", "comment": { "comments": [ { "id": "176296", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From the provided test, we cannot reproduce. Three team members ran the attached test and were unable to get the error; everybody saw the label with the correct text within it. This could be the result of changes since the tested SDK.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-15T18:05:28.000+0000", "updated": "2011-12-15T18:05:28.000+0000" }, { "id": "176459", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Tested with 1.8.0.1.v20111218001633 and I cannot reproduce the error.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-19T06:23:33.000+0000", "updated": "2011-12-19T06:23:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }