{ "id": "146853", "key": "ALOY-1262", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "16692", "name": "Alloy 1.7.0", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-05-28T06:11:57.000+0000", "created": "2015-04-13T10:03:46.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "defect" ], "versions": [ { "id": "16596", "name": "Alloy 1.6.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2015-09-04T21:00:18.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "This bug is related to [ALOY-920], which introduced a fix for the specific case of {{should.js}}.\r\n\r\nWhen building an Alloy project containg a library directory named with a {{.js}} suffix, the compiler fails:\r\n\r\n{code}\r\n[INFO] ----- OPTIMIZING -----\r\n[INFO] - iphone/vendor/validator.js\r\n[ERROR] Error generating AST for \"/Users/xavier/titanium/DemoApp/Resources/iphone/vendor/validator.js\"\r\n[ERROR] EISDIR, illegal operation on a directory\r\n[ERROR] Alloy compiler failed\r\n{code}\r\n\r\nThe {{getJsFiles()}} Alloy compiler method filters which files have to be optimized, as in https://github.com/appcelerator/alloy/blob/master/Alloy/commands/compile/index.js#L1017\r\nThis method fails to exclude items which are directories ending with {{.js}}, and {{uglifyjs.parse()}} then throws an error.\r\n\r\nA pull request has been submitted at https://github.com/appcelerator/alloy/pull/683", "attachment": [], "flagged": false, "summary": "a directory ending with \".js\" causes Alloy compiler error", "creator": { "name": "xavier", "key": "xavier", "displayName": "Xavier Lacot", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "xavier", "key": "xavier", "displayName": "Xavier Lacot", "active": true, "timeZone": "Europe/Paris" }, "environment": "Alloy 1.7.0-dev", "closedSprints": [ { "id": 415, "state": "closed", "name": "2015 Sprint 11 Tooling", "startDate": "2015-05-23T02:31:08.429Z", "endDate": "2015-06-06T02:31:00.000Z", "completeDate": "2015-06-08T15:25:54.837Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "353745", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-05-28T06:11:57.000+0000", "updated": "2015-05-28T06:11:57.000+0000" }, { "id": "362344", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nMac OS 10.10.5\r\nAppc NPM 4.2.0-1\r\nAppc CLI Core 5.0.0-41 (Alloy 1.7.X)\r\nTi SDK 5.0.0.v20150903221516\r\n\r\nDirectories ending in .js no longer cause compiler errors\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-09-04T21:00:12.000+0000", "updated": "2015-09-04T21:00:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }