{
"id": "164246",
"key": "ALOY-1527",
"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": "18409",
"name": "Release 6.1.0",
"archived": false,
"released": true
},
{
"id": "18731",
"name": "alloy 1.9.5",
"archived": false,
"released": true,
"releaseDate": "2016-11-30"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2016-11-22T02:41:41.000+0000",
"created": "2016-10-27T11:25:59.000+0000",
"priority": {
"name": "High",
"id": "2"
},
"labels": [],
"versions": [
{
"id": "18312",
"name": "alloy 1.9.2",
"archived": false,
"released": true,
"releaseDate": "2016-09-09"
}
],
"issuelinks": [],
"assignee": {
"name": "fmiao",
"key": "fmiao",
"displayName": "Feon Sua Xin Miao",
"active": true,
"timeZone": "America/Vancouver"
},
"updated": "2016-12-09T00:11: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": [],
"description": "When using the following code inside an Alloy view, the Alloy compiler will crash:\r\n\r\nCode:\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nCrash:\r\n{code}\r\n[DEBUG] /usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:71\r\n[DEBUG] \t\t\t\treturn childTemplates + '.push(' + state.item.symbol + ');';\r\n[DEBUG] \t\t\t\t ^\r\n[DEBUG] TypeError: Cannot read property 'symbol' of undefined\r\n[DEBUG] at Object.CU.generateNodeExtended.post (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:71:51)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:14:17)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemArray.js:18:27)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.BarItemTypes.js:19:48)\r\n[DEBUG] at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48)\r\n[DEBUG] at Object.exports.generateNodeExtended (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17)\r\n[DEBUG] at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:51:15\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:31:4)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract._ItemContainer.js:20:27)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ButtonBar.js:14:52)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.iOS.TabbedBar.js:2:38)\r\n[DEBUG] at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48)\r\n[DEBUG] at Object.exports.generateNodeExtended (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17)\r\n[DEBUG] at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:64:15\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:54:5)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:10:27)\r\n[DEBUG] at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48)\r\n[DEBUG] at Object.exports.generateNodeExtended (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:269:17)\r\n[DEBUG] at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:132:17\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:123:6\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:49:4)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)\r\n[DEBUG] at Object.exports.parse (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:30:27)\r\n[DEBUG] at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:48)\r\n[DEBUG] at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:416:29\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at Object.exports.generateNode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:407:5)\r\n[DEBUG] at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:777:28\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at parseAlloyComponent (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:771:5)\r\n[DEBUG] at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:406:6\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:395:6\r\n[DEBUG] at Array.forEach (native)\r\n[DEBUG] at Function._.each._.forEach (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)\r\n[DEBUG] at module.exports (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:391:4)\r\n[DEBUG] at Object. (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:113:46)\r\n[DEBUG] at Module._compile (module.js:409:26)\r\n[DEBUG] at Object.Module._extensions..js (module.js:416:10)\r\n[DEBUG] at Module.load (module.js:343:32)\r\n[DEBUG] at Function.Module._load (module.js:300:12)\r\n[DEBUG] at Module.require (module.js:353:17)\r\n[DEBUG] at require (internal/module.js:12:17)\r\n[DEBUG] at Object. (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)\r\n[DEBUG] at Module._compile (module.js:409:26)\r\n[DEBUG] at Object.Module._extensions..js (module.js:416:10)\r\n[DEBUG] at Module.load (module.js:343:32)\r\n[DEBUG] at Function.Module._load (module.js:300:12)\r\n[DEBUG] at Function.Module.runMain (module.js:441:10)\r\n[DEBUG] at startup (node.js:139:18)\r\n[DEBUG] at node.js:974:3\r\n[ERROR] Alloy compiler failed\r\n{code}",
"attachment": [],
"flagged": false,
"summary": "Cannot use Ti.UI.iOS.TabbedBar in ListView template",
"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": 751,
"state": "closed",
"name": "2016 Sprint 23 Tooling",
"startDate": "2016-11-05T00:40:36.428Z",
"endDate": "2016-11-19T01:40:00.000Z",
"completeDate": "2016-11-28T03:51:25.291Z",
"originBoardId": 199
}
],
"comment": {
"comments": [
{
"id": "400196",
"author": {
"name": "fmiao",
"key": "fmiao",
"displayName": "Feon Sua Xin Miao",
"active": true,
"timeZone": "America/Vancouver"
},
"body": "PR: https://github.com/appcelerator/alloy/pull/802",
"updateAuthor": {
"name": "fmiao",
"key": "fmiao",
"displayName": "Feon Sua Xin Miao",
"active": true,
"timeZone": "America/Vancouver"
},
"created": "2016-11-01T18:11:23.000+0000",
"updated": "2016-11-01T18:11:23.000+0000"
},
{
"id": "401646",
"author": {
"name": "hknoechel",
"key": "hansknoechel",
"displayName": "Hans Knöchel",
"active": true,
"timeZone": "Europe/Berlin"
},
"body": "[~fmiao] Which fix-version should this fix go into?",
"updateAuthor": {
"name": "hknoechel",
"key": "hansknoechel",
"displayName": "Hans Knöchel",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2016-11-21T20:18:48.000+0000",
"updated": "2016-11-21T20:18:48.000+0000"
},
{
"id": "403039",
"author": {
"name": "wluu",
"key": "wluu",
"displayName": "Wilson Luu",
"active": false,
"timeZone": "America/Los_Angeles"
},
"body": "Closing ticket as fixed. Verified that if I use the above Alloy view code, then I do not get the {{TypeError: Cannot read property 'symbol' of undefined}} when I use {{appc run}}. Also, verified that I get the error when I compile the Alloy view with alloy@1.9.2.\r\n\r\nTested on:\r\n\r\nAppc CLI NPM: 4.2.8\r\nAppc CLI Core: 6.1.0-312\r\nAlloy: 1.9.5\r\nArrow: 1.10.0-19\r\nSDK: 6.0.0.GA\r\nNode: v4.6.2\r\nOS: Mac OS X (10.12.1)\r\nXcode: 8.1\r\nDevices: iphone 7 plus simulator (10.1)\r\n",
"updateAuthor": {
"name": "wluu",
"key": "wluu",
"displayName": "Wilson Luu",
"active": false,
"timeZone": "America/Los_Angeles"
},
"created": "2016-12-09T00:10:59.000+0000",
"updated": "2016-12-09T00:10:59.000+0000"
}
],
"maxResults": 4,
"total": 4,
"startAt": 0
}
}
}