[AC-2079] Alloy compiler failed when using Picker in ItemTemplate...
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-09-09T13:49:51.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Studio, Titanium SDK & CLI |
Labels | 'symbol', alloy, compiler, error, failed, listview, picker, property, template |
Reporter | Henry David Spells III |
Assignee | Ritu Agrawal |
Created | 2013-09-06T19:28:52.000+0000 |
Updated | 2016-03-08T07:41:02.000+0000 |
Description
When I include a Picker in an ItemTemplate for a ListView I get the following error [ERROR] : : Cannot read property 'symbol' of undefined [ERROR] : Alloy compiler failed
Here is the larger traceback
[INFO] : view: "scoresTab.xml"
[DEBUG] : /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js:36
[DEBUG] : return args.symbol + '.addRow(' + state.parent.symbol + ');\n';
[DEBUG] : ^
[ERROR] : : Cannot read property 'symbol' of undefined
[DEBUG] : at Object.CU.generateNodeExtended.post (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js:36:51)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:14:17)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/default.js:8:27)
[DEBUG] : at Object.exports.generateNode (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:48)
[DEBUG] : at Object.exports.generateNodeExtended (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:223:17)
[DEBUG] : at parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js:33:14)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.PickerColumn.js:6:27)
[DEBUG] : at Object.exports.generateNode (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:48)
[DEBUG] : at Object.exports.generateNodeExtended (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:223:17)
[DEBUG] : at /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/default.js:58:16
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/share/npm/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/default.js:57:6)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/default.js:8:27)
[DEBUG] : at parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.Picker.js:17:31)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.Picker.js:6:27)
[DEBUG] : at Object.exports.generateNode (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:48)
[DEBUG] : at Object.exports.generateNodeExtended (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:223:17)
[DEBUG] : at /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:64:15
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/share/npm/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:54:5)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:10:27)
[DEBUG] : at Object.exports.generateNode (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:48)
[DEBUG] : at Object.exports.generateNodeExtended (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:223:17)
[DEBUG] : at /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:57:17
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/share/npm/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:48:6
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/share/npm/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:31:4)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:17:27)
[DEBUG] : at Object.exports.generateNode (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:48)
[DEBUG] : at /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:332:29
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/share/npm/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at Object.exports.generateNode (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:327:5)
[DEBUG] : at Object.exports.generateNodeExtended (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:223:17)
[DEBUG] : at parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.Tab.js:27:14)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG] : at Object.exports.parse (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/parsers/Ti.UI.Tab.js:7:27)
[DEBUG] : at Object.exports.generateNode (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:271:48)
[DEBUG] : at /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/index.js:496:28
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/share/npm/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at parseAlloyComponent (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/index.js:493:5)
[DEBUG] : at /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/index.js:241:6
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/share/npm/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at /usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/index.js:233:6
[DEBUG] : at Array.forEach (native)
[DEBUG] : at Function._.each._.forEach (/usr/local/share/npm/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG] : at module.exports (/usr/local/share/npm/lib/node_modules/alloy/Alloy/commands/compile/index.js:229:4)
[DEBUG] : at Object. (/usr/local/share/npm/lib/node_modules/alloy/Alloy/alloy.js:102:46)
[DEBUG] : at Module._compile (module.js:456:26)
[DEBUG] : at Object.Module._extensions..js (module.js:474:10)
[DEBUG] : at Module.load (module.js:356:32)
[DEBUG] : at Function.Module._load (module.js:312:12)
[DEBUG] : at Module.require (module.js:364:17)
[DEBUG] : at require (module.js:380:17)
[DEBUG] : at Object. (/usr/local/share/npm/lib/node_modules/alloy/bin/alloy:3:1)
[DEBUG] : at Module._compile (module.js:456:26)
[DEBUG] : at Object.Module._extensions..js (module.js:474:10)
[DEBUG] : at Module.load (module.js:356:32)
[DEBUG] : at Function.Module._load (module.js:312:12)
[DEBUG] : at Function.Module.runMain (module.js:497:10)
[DEBUG] : at startup (node.js:119:16)
[DEBUG] : at node.js:901:3
[ERROR] : Alloy compiler failed
Here is the xml
1) If you create a JIRA ticket, please include very minimal test code, not a real-world snippet from your app, which can include all kinds of other factors causing the error. 2) Pickers are not supported in ListView templates.
As Fokke stated, Picker is not supported in ListView. You should log a feature request asking that it be implemented in Titanium, then Alloy will support it automatically.
Thanks Tony. I'm fairly new to appcelerator (i.e. I've been programming it for less than month). How / where do I log a feature request?
Same place you logged this issue, just set the "type" to feature request. Try adding the label "timob" as well, to make it easier to identify as an issue that belongs in the TIMOB project after vetting.