Titanium JIRA Archive
Alloy (ALOY)

[ALOY-923] TextField with proxy property causes compile error as ItemTemplate

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-06-06T15:00:32.000+0000
Affected Version/sAlloy 1.3.0
Fix Version/sAlloy 1.5.0
ComponentsXML
Labelsqe-manualtest
ReporterTony Lukasavage
AssigneeFeon Sua Xin Miao
Created2014-01-13T20:30:29.000+0000
Updated2014-12-30T16:01:40.000+0000

Description

index.xml

<Alloy>
    <Window id="settingsWin" title="Settings" class="container" tabBarHidden="true">
        <ListView id="listView" defaultItemTemplate="template" allowsSelection="false">
            <Templates>
                <ItemTemplate id="inputTemplate" name="inputTemplate">
                    <TextField bindId="textfield" id="tf_username"  autocorrect="false" keyboardType="TI.Ui.KEYBOARD_EMAIL" hintText="User name / e-mail address">
                    	<RightButton>
                    		<Button height="40" width="40" title="!"/>
                    	</RightButton>
                    </TextField>
                </ItemTemplate>
            </Templates>

            <ListSection headerTitle="Login Id" id="idSection">
                <ListItem template="inputTemplate" textfield:value=""/>
            </ListSection>
        </ListView>
    </Window>
</Alloy>

index.js

$.settingsWin.open();

error

[INFO]  ----- MVC GENERATION -----
[INFO]  [global style] loading from cache...
[INFO]  [index.xml] view processing...
[INFO]    style:      "index.tss"
[INFO]    view:       "index.xml"
[DEBUG] /Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/_ProxyProperty.js:46
[DEBUG]         			proxy = state.parent.symbol;
[DEBUG]         			                    ^
[ERROR] : Cannot read property 'symbol' of undefined
[DEBUG]     at Object.CU.generateNodeExtended.post (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/_ProxyProperty.js:46:25)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/base.js:14:17)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/default.js:8:27)
[DEBUG]     at parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.Button.js:30:30)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.Button.js:14:27)
[DEBUG]     at Object.exports.generateNode (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:277:48)
[DEBUG]     at Object.exports.generateNodeExtended (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:229:17)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/_ProxyProperty.js:43:14
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/_ProxyProperty.js:32:4)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/_ProxyProperty.js:16:27)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/_ProxyProperty.RightButton.js:12:37)
[DEBUG]     at Object.exports.generateNode (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:277:48)
[DEBUG]     at Object.exports.generateNodeExtended (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:229:17)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.TextField.js:36:14
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.TextField.js:18:4)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.TextField.js:8:27)
[DEBUG]     at Object.exports.generateNode (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:277:48)
[DEBUG]     at Object.exports.generateNodeExtended (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:229:17)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:64:15
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:54:5)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Alloy.Abstract.ItemTemplate.js:10:27)
[DEBUG]     at Object.exports.generateNode (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:277:48)
[DEBUG]     at Object.exports.generateNodeExtended (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:229:17)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:119:17
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:110:6
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:43:4)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/base.js:11:17)
[DEBUG]     at Object.exports.parse (/Users/tlukasavage/development/alloy/Alloy/commands/compile/parsers/Ti.UI.ListView.js:28:27)
[DEBUG]     at Object.exports.generateNode (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:277:48)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:347:29
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at Object.exports.generateNode (/Users/tlukasavage/development/alloy/Alloy/commands/compile/compilerUtils.js:342:5)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/index.js:535:28
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at parseAlloyComponent (/Users/tlukasavage/development/alloy/Alloy/commands/compile/index.js:532:5)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/index.js:239:6
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at /Users/tlukasavage/development/alloy/Alloy/commands/compile/index.js:228:6
[DEBUG]     at Array.forEach (native)
[DEBUG]     at Function._.each._.forEach (/Users/tlukasavage/development/alloy/Alloy/lib/alloy/underscore.js:79:11)
[DEBUG]     at module.exports (/Users/tlukasavage/development/alloy/Alloy/commands/compile/index.js:224:4)
[DEBUG]     at Object.<anonymous> (/Users/tlukasavage/development/alloy/Alloy/alloy.js:99: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.<anonymous> (/Users/tlukasavage/development/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:902:3
[ERROR] Alloy compiler failed

Comments

  1. Tim Poulsen 2014-01-16

  2. Tim Poulsen 2014-01-29

    Apparently not a dupe of ALOY-697, as the problem still exists with 1.3.0 and 1.3.1 beta 4.
  3. Feon Sua Xin Miao 2014-06-06

    PR: https://github.com/appcelerator/alloy/pull/429 Test app: https://github.com/feons/alloy/tree/ALOY-923/test/apps/testing/ALOY-923 Functional Test: 1. Run the test app on iOS. 2. App compiles with no error.
  4. Tim Poulsen 2014-06-06

    PR tested and merged
  5. Federico Casali 2014-09-12

    Verified as fixed. TiSDK 3.4.0.v20140911135715 Appcelerator Studio 3.4.0.201409111151 CLI 3.4.0-rc2 Alloy 1.5.0-rc Xcode6-beta7 Closing.
  6. Nick DiZazzo 2014-12-29

  7. Tim Poulsen 2014-12-29

    [~ndizazzo] Would you file a new ticket? Make sure to reference this one. And include the sample app that's failing. It will be easier for me to track the work and get it through QE testing as a separate ticket. Thanks!
  8. Nick DiZazzo 2014-12-30

    @skypanther Created TC-5160. I'm guessing it should have been in the Alloy project but it wasn't letting me create the ticket. Can it be moved?

JSON Source