{ "id": "153831", "key": "ALOY-1340", "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": "17081", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" }, { "id": "17582", "name": "alloy 1.7.30", "archived": false, "released": true, "releaseDate": "2015-12-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-12-16T19:43:38.000+0000", "created": "2015-12-14T17:32:48.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "alloy", "compiler" ], "versions": [ { "id": "17537", "name": "alloy 1.7.29", "archived": false, "released": true, "releaseDate": "2015-11-30" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2016-02-02T23:41:50.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": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "Since [this commit|https://github.com/feons/alloy/commit/25855c1f342eecf6cb6e69dca007d05ebde1771b#diff-ddbdb7300fa15590afdfee9246ac61fcR177], Alloy's selective compilation is broken since the {{Resources}}'s {{alloy.js}} file gets replaced each and every time the alloy compile command is called.\r\n\r\nInstead, the fix should look if there's a file restriction, and not replace {{alloy.js}} if this restriction does not affect this file.\r\n\r\nThis is particularly problematic when using some compilation watcher (aka. tishadow + grunt-tishadow), which look for changes in the {{Resources}} folder to re-launch the app. With the current change, the app will be refreshed using a template-based {{alloy.js}} file (not a recompiled one).", "attachment": [], "flagged": false, "summary": "Alloy selective compilation broken since ALOY-1332", "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": null, "closedSprints": [ { "id": 538, "state": "closed", "name": "2015 Sprint 25 Tooling", "startDate": "2015-12-07T18:48:43.028Z", "endDate": "2015-12-19T03:48:00.000Z", "completeDate": "2016-01-04T19:45:31.946Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "372851", "author": { "name": "xavier", "key": "xavier", "displayName": "Xavier Lacot", "active": true, "timeZone": "Europe/Paris" }, "body": "A Pull Request fixing this problem is available in https://github.com/appcelerator/alloy/pull/746", "updateAuthor": { "name": "xavier", "key": "xavier", "displayName": "Xavier Lacot", "active": true, "timeZone": "Europe/Paris" }, "created": "2015-12-14T17:36:40.000+0000", "updated": "2015-12-14T17:36:40.000+0000" }, { "id": "373130", "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-12-16T19:43:38.000+0000", "updated": "2015-12-16T19:43:38.000+0000" }, { "id": "375799", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.3 (15D21)\r\nStudio 4.5.0.201601262138\r\nTi SDK 5.2.0.v20160202103508\r\nAppc NPM 4.2.3-1\r\nAppc CLI 5.2.0-239\r\nAlloy 1.7.33\r\nXcode 7.2 (7C68)\r\n\r\n{{Alloy.js}} is no longer replaced when building selectively with Alloy. Tested with the Alloy CLI and running commands similar to: {{appc alloy compile --config platform=ios,file=app/controllers/index.js}}. The Alloy.js file is not touched with the previous command.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-02T23:41:50.000+0000", "updated": "2016-02-02T23:41:50.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }