[ALOY-1152] Alloy 1.5.0 RC3: Compiler fails on TextArea with child control
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-10-31T15:29:37.000+0000 |
Affected Version/s | Alloy 1.5.1 |
Fix Version/s | Alloy 1.6.0, Alloy 1.7.0 |
Components | XML |
Labels | TCSupportTriage, alloy |
Reporter | Ed |
Assignee | Feon Sua Xin Miao |
Created | 2014-09-26T15:33:38.000+0000 |
Updated | 2015-03-19T15:53:04.000+0000 |
Description
Problem:
Placing a child control inside a TextArea that is part of a ListView template causes the Alloy compiler to fail with:
{quote}
[ERROR] Cannot read property 'symbol' of undefined
[ERROR] Alloy compiler failed
{quote}
Test:
Build the sample code below.
<Alloy>
<Window>
<ListView>
<Templates>
<ItemTemplate name="tMsg">
<TextArea bindId="cMsg">
<Label bindId="lHintText" />
</TextArea>
</ItemTemplate>
</Templates>
<ListSection>
<ListItem itemId="liMessage" template="tMsg" />
</ListSection>
</ListView>
</Window>
</Alloy>
If you remove <Label bindId="lHintText" />
from the TextArea control. It compiles fine.
The code above worked fine under Alloy 1.3 and 1.4.
Hello [~tlukasavage]! Can you please set the reporter to @Ed (Ed) ?
PR: https://github.com/appcelerator/alloy/pull/616 Test app: https://github.com/feons/alloy/tree/ALOY-1152/test/apps/testing/ALOY-1152 Function test: 1. Run the test app 2. There should be no compilation error. Note: TextField parser is also updated.
Works as expected. PR merged
Backport to 1_6_X: https://github.com/appcelerator/alloy/pull/652
Verified fixed using: Titanium SDK 4.0.0.v20150317234215 Studio 3.4.2.201502181619 CLI 3.4.2 Xcode 6.2 Node 0.12 Alloy 1.6.0-alpha Sample code compiles and runs as expected.