{ "id": "171402", "key": "ALOY-1612", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "20671", "description": "Alloy items that will be included in CLI 7.1.0", "name": "CLI Release 7.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20836", "name": "Alloy 1.14.0", "archived": false, "released": true, "releaseDate": "2019-07-05" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-07-12T23:23:30.000+0000", "created": "2018-03-26T09:35:33.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [ { "id": "57697", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "173781", "key": "TIMOB-27167", "fields": { "summary": "CLI: Move Alloy optimizations into core SDK build", "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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "57731", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173850", "key": "ALOY-1696", "fields": { "summary": "CLI: Unable to see project files in Chrome debugger on Windows", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "57699", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173552", "key": "TIMOB-27098", "fields": { "summary": "iOS: debugger does not show all app files loaded", "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": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2019-07-12T23:23:30.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": "Based on a recent discussion with [~cbowley]! Currently, when debugging Alloy in Safari / Chrome, the dev-experience is pretty bad, because the developer sees the generated spaghetti code instead of the actual Alloy code. But there is help! We generate proper [source-maps|https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/] already (look into {{build/map/*}}, but it seems like they are not actively used. In addition, it seems like they are indeed used during compile time - for compilation errors when using Babel, where they are doing a great job in indicating the actual line number and character of the error. \r\n\r\nIf we could adapt source-maps to the Safari- and Chrome-debugger, we could enable a whole new debugging experience, e.g. by integrating it into our editor plugins and be able to create web-based debuggers like some others do.\r\n\r\nThoughts welcome!", "attachment": [], "flagged": false, "summary": "CLI: Be able to use Alloy source-maps in Safari Debugger / Chrome Dev-Tools", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1019, "state": "closed", "name": "2018 Sprint 07 Tooling", "startDate": "2018-03-25T21:58:00.558Z", "endDate": "2018-04-08T21:58:00.000Z", "completeDate": "2018-04-08T17:56:19.404Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "435974", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "In theory, all we need to do is adding the {{//# sourceMappingURL=path/to/source.map}} to the generated files and the debuggers will pick it up via their source map protocol. Read more [here|https://developers.google.com/web/updates/2013/06/sourceMappingURL-and-sourceURL-syntax-changed]. [~fmiao], do you think this is a change possible in Alloy? I am just reading through the source where we are [copying the generated files|https://github.com/appcelerator/alloy/blob/master/Alloy/utils.js#L248-L301] and thought that we could eventually simply inject the source-map command during generation and be good to go. The benefit for the whole platform would be huge!\r\n\r\n*EDIT*: I hacked the comment into the generated files, but it seems like absolute paths may not work? [Here|https://abload.de/img/bildschirmfoto2018-04wpo0m.png] is a screenshot of the hack in its current state.\r\n", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-27T15:12:47.000+0000", "updated": "2018-04-03T08:52:22.000+0000" }, { "id": "449200", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/appcelerator/alloy/pull/893", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-06-19T14:58:36.000+0000", "updated": "2019-06-19T14:58:36.000+0000" }, { "id": "449277", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cwilliams][~eharris] When debugging an Alloy project using the Safari/Chrome debugger on mac the original JS file from the alloy project is shown int he debugger. The breakpoints in those JS files works fine.\r\nHowever on a windows machine the debug of Alloy project in chrome debugger does not show the project JS files.\r\nTest Env:\r\nMac OS 10.14.3, Win 10 Pro\r\nTi SDK: 8.1.0.v20190619134801\r\nAppc CLI: 7.1.0-master.22\r\nNode: 10.13.0\r\nAlloy: 1.14.0-1\r\nJDK: 1.8.0_144\r\nXcode: 10.2.1 ", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-21T22:43:59.000+0000", "updated": "2019-06-21T22:43:59.000+0000" }, { "id": "449713", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-10T18:11:13.000+0000", "updated": "2019-07-10T18:11:13.000+0000" }, { "id": "449783", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS 10.14.3\r\nTi SDK: 8.1.0.v20190709083308\r\nAppc CLI: 7.1.0-master.24\r\nNode: 8.16.0\r\nAlloy: 1.14.0-1\r\nJDK: 1.8.0_144\r\nXcode: 10.2.1", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-12T23:23:30.000+0000", "updated": "2019-07-12T23:23:30.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }