[AC-769] Studio fails to detect matching elements/styles with nested folders
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-07-14T22:32:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Michael Stelly |
Assignee | Mauro Parra-Miranda |
Created | 2014-06-02T17:39:19.000+0000 |
Updated | 2016-03-08T07:37:02.000+0000 |
Description
Steps to Reproduce
Place view and matching TSS file in a identical subfolders, e.g. /views/test/index.xml and /styles/test/index.tss.
Add UI element in index.xml, give it an ID.
Create an appropriate style based on the UI element, id'ed with the ID.
Save.
Close/Reopen TSS file.
Actual Result
Warning icon in gutter stating that the style is unused. Style is underlined.
Expected Result
No warning icon, no underline if there is a matching ID or class.
Comments
JSON Source
Subfolder is not support for alloy. Alloy uses a directory structure and naming conventions to organize the application rather than configuration files. Alloy expects to find files in specific locations. Any folder or file not adhering to the below naming conventions is ignored by Alloy. For example, at generation time, Alloy will look for the mandatory files app/views/index.xml and app/controllers/index.js, then the optional corresponding file app/styles/index.tss. Ref: [http://docs.appcelerator.com/titanium/latest/#!/guide/Alloy_Concepts](http://docs.appcelerator.com/titanium/latest/#!/guide/Alloy_Concepts)