[ALOY-693] Alloy: Detect using the same ID for multiple view elements
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2014-01-17T17:59:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | XML |
Labels | alloy, compiler, validation, views |
Reporter | Fokke Zandbergen |
Assignee | Tony Lukasavage |
Created | 2013-06-06T07:53:16.000+0000 |
Updated | 2014-02-28T23:57:14.000+0000 |
Description
We could expand the validation asked for in ALOY-682, to do detect using the same ID any multiple view elements (which causes conflicts).
This seems like an easy thing to do, but as [Tony points out](https://github.com/appcelerator/alloy/pull/140#issuecomment-18973129), conditional view elements make it more challenging.
Considering the runtime conditionals make this pretty much impossible, since we can't determine whether they are valid or not until runtime, I'd rather not implement this as a complex, incomplete solution. If this turns out to be a major issue, we can revisit, but for now I'm going to close this.
Totally understand. Something related that I don't know a ticket exists for is that the existing warning is also given when the root element manually has been given a different then default ID. It will then still warn if child elements use an ID named after the controller.