{ "id": "173083", "key": "ALOY-1645", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-03-05T15:23:28.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2019-03-05T15:23:28.000+0000", "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" } }, "components": [ { "id": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "h5.Description\r\n\r\nI attempted to generate a new TSS grammar using the latest pegjs version and it errored with the below. It looks to be coming from [this line|https://github.com/appcelerator/alloy/blob/784c0a7ea45510953533b1748dae0407316434b8/Alloy/grammar/tss.pegjs#L38], because of that, I would also be suspicious of [this line|https://github.com/appcelerator/alloy/blob/784c0a7ea45510953533b1748dae0407316434b8/Alloy/grammar/tss.pegjs#L51]\r\n\r\nThe current grammar was generated with pegjs@0.7.0, it breaks using pegjs@0.8.0 and up\r\n\r\n{code}\r\nTypeError: Cannot read property '0' of null\r\n at peg$c11 (/Users/eharris/Documents/git/alloy/Alloy/grammar/tss.js:50:34)\r\n at peg$parsetopmembers (/Users/eharris/Documents/git/alloy/Alloy/grammar/tss.js:679:16)\r\n at peg$parsetopobject (/Users/eharris/Documents/git/alloy/Alloy/grammar/tss.js:502:18)\r\n at peg$parsestart (/Users/eharris/Documents/git/alloy/Alloy/grammar/tss.js:430:14)\r\n at Object.parse (/Users/eharris/Documents/git/alloy/Alloy/grammar/tss.js:3439:18)\r\n at Object.exports.loadStyle (/Users/eharris/Documents/git/alloy/Alloy/commands/compile/styler.js:293:19)\r\n at Object.exports.loadAndSortStyle (/Users/eharris/Documents/git/alloy/Alloy/commands/compile/styler.js:317:36)\r\n at /Users/eharris/Documents/git/alloy/Alloy/commands/compile/index.js:684:28\r\n at arrayEach (/Users/eharris/Documents/git/alloy/node_modules/lodash/lodash.js:537:11)\r\n at Function.forEach (/Users/eharris/Documents/git/alloy/node_modules/lodash/lodash.js:9359:14)\r\n at parseAlloyComponent (/Users/eharris/Documents/git/alloy/Alloy/commands/compile/index.js:680:6)\r\n at /Users/eharris/Documents/git/alloy/Alloy/commands/compile/index.js:451:6\r\n at arrayEach (/Users/eharris/Documents/git/alloy/node_modules/lodash/lodash.js:537:11)\r\n at Function.forEach (/Users/eharris/Documents/git/alloy/node_modules/lodash/lodash.js:9359:14)\r\n at /Users/eharris/Documents/git/alloy/Alloy/commands/compile/index.js:439:6\r\n at arrayEach (/Users/eharris/Documents/git/alloy/node_modules/lodash/lodash.js:537:11)\r\n at Function.forEach (/Users/eharris/Documents/git/alloy/node_modules/lodash/lodash.js:9359:14)\r\n at module.exports (/Users/eharris/Documents/git/alloy/Alloy/commands/compile/index.js:435:4)\r\n at Object. (/Users/eharris/Documents/git/alloy/Alloy/alloy.js:112:46)\r\n at Module._compile (internal/modules/cjs/loader.js:738:30)\r\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)\r\n at Module.load (internal/modules/cjs/loader.js:630:32)\r\n at tryModuleLoad (internal/modules/cjs/loader.js:570:12)\r\n at Function.Module._load (internal/modules/cjs/loader.js:562:3)\r\n at Module.require (internal/modules/cjs/loader.js:667:17)\r\n at require (internal/modules/cjs/helpers.js:20:18)\r\n at Object. (/Users/eharris/Documents/git/alloy/bin/alloy:3:1)\r\n at Module._compile (internal/modules/cjs/loader.js:738:30)\r\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)\r\n at Module.load (internal/modules/cjs/loader.js:630:32)\r\n at tryModuleLoad (internal/modules/cjs/loader.js:570:12)\r\n at Function.Module._load (internal/modules/cjs/loader.js:562:3)\r\n at Function.Module.runMain (internal/modules/cjs/loader.js:801:12)\r\n at internal/main/run_main_module.js:21:11 line: NaN\r\n{code}", "attachment": [], "flagged": false, "summary": "Fix TSS pegjs definition to work on newer pegjs versions", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }