Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1152] Alloy 1.5.0 RC3: Compiler fails on TextArea with child control

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-10-31T15:29:37.000+0000
Affected Version/sAlloy 1.5.1
Fix Version/sAlloy 1.6.0, Alloy 1.7.0
ComponentsXML
LabelsTCSupportTriage, alloy
ReporterEd
AssigneeFeon Sua Xin Miao
Created2014-09-26T15:33:38.000+0000
Updated2015-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.

Comments

  1. Mauro Parra-Miranda 2014-09-29

    Hello [~tlukasavage]! Can you please set the reporter to @Ed (Ed) ?
  2. Feon Sua Xin Miao 2014-10-29

    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.
  3. Tim Poulsen 2014-10-31

    Works as expected. PR merged
  4. Feon Sua Xin Miao 2015-01-13

    Backport to 1_6_X: https://github.com/appcelerator/alloy/pull/652
  5. Eric Wieber 2015-03-19

    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.

JSON Source