{ "id": "123848", "key": "TIMOB-16004", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "16096", "description": "2014 Sprint 09", "name": "2014 Sprint 09", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "16097", "description": "2014 Sprint 09 SDK", "name": "2014 Sprint 09 SDK", "archived": true, "released": true, "releaseDate": "2014-05-08" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-09T22:30:30.000+0000", "created": "2013-12-17T02:58:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_filesystem", "qe-closed-3.3.0", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "33841", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "123867", "key": "TIMOB-16011", "fields": { "summary": "LiveView: relative paths for commonjs modules do not work", "status": { "description": "This issue is being actively worked on at the moment by the assignee.", "name": "In Progress", "id": "3", "statusCategory": { "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "40881", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "134110", "key": "TIMOB-17629", "fields": { "summary": "Debugger does not stop at the correct breakpoint/position", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "37423", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "104374", "key": "TIMOB-13153", "fields": { "summary": "TiAPI: Get current script relative path to \"Resources\"", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-09-05T14:27:22.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": "__filename and __dirname are available in android but not on ios.", "attachment": [ { "id": "47963", "filename": "Resources.zip", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-09T22:28:30.000+0000", "size": 3434, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Expose current file path and directory path to commonjs module scope", "creator": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 50, "state": "closed", "name": "2014 Sprint 09 Tooling", "startDate": "2014-04-28T15:43:24.381Z", "endDate": "2014-05-10T03:44:00.000Z", "completeDate": "2014-05-12T13:36:16.254Z", "originBoardId": 113 } ], "comment": { "comments": [ { "id": "284654", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR [MASTER] https://github.com/appcelerator/titanium_mobile/pull/5131", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-17T03:08:23.000+0000", "updated": "2013-12-17T03:08:23.000+0000" }, { "id": "287436", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mxia] I have added the blocked ticket to this ticket.\n\nThis is needed to properly resolve the file being required when `..` or `./` is used in the path of the required module.\n\nExample\n\nIf the below example is used it will throw an error when using liveview\n{code}\nvar x = require('../x');\n{code}\n\nCurrently only the absolute path will work.\n{code}\nvar x = require('/lib/x');\n{code}\n\nWith my pr it will add the __dirname and __filename vars that will make it possible to determine what the modules absolute path is. It will also bring it to parity to android's and ios's commonjs implementation.\n", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-09T18:22:49.000+0000", "updated": "2014-01-09T18:22:49.000+0000" }, { "id": "292985", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~mxia] can we get TIMOB-16011 merged in now?", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-13T21:32:02.000+0000", "updated": "2014-02-13T21:32:02.000+0000" }, { "id": "301275", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I'm reviewing this and I'm not sure that it does it the expected way. I have a file \"a.js\" in the Resources directory, this is the result of \"__dirname\"\n{code}\nfile:///Users/penrique/Library/Application%20Support/iPhone%20Simulator/7.1-64/Applications/34C10A38-31A4-4850-8211-336EFD27FB06/Titanium.app\n{code}\nShould it be that or this: \"/\"?", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-17T18:08:09.000+0000", "updated": "2014-04-17T18:08:09.000+0000" }, { "id": "301281", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Update, \nOn Android the file \"a.js\" located in the root of the Resources, when asked for \"__dirname\" it returns this:\n{code}\n.\n{code}\nOn iOS it returns this:\n{code}\nfile:///Users/penrique/Library/Application%20Support/iPhone%20Simulator/7.1-64/Applications/34C10A38-31A4-4850-8211-336EFD27FB06/Titanium.app\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-17T18:29:33.000+0000", "updated": "2014-04-17T18:29:33.000+0000" }, { "id": "302086", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/5641", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-22T21:33:08.000+0000", "updated": "2014-04-22T21:33:08.000+0000" }, { "id": "302719", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Missed the boat for 3.3.0. Will pull into 3.4.0.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-28T16:05:11.000+0000", "updated": "2014-04-28T16:05:11.000+0000" }, { "id": "304239", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Attaching Resources for test case", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-09T18:18:53.000+0000", "updated": "2014-05-09T18:18:53.000+0000" }, { "id": "304273", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR merged", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-09T22:30:30.000+0000", "updated": "2014-05-09T22:30:30.000+0000" }, { "id": "305270", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified the fix on:\r\niOS simulator: 7.1\r\nSDK: 3.3.0.v20140515151935\r\nCLI version : 3.3.0-dev\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-Alpha\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201405121247\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-16T10:07:02.000+0000", "updated": "2014-05-16T10:07:02.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }