Titanium JIRA Archive
Appcelerator Community (AC)

[AC-769] Studio fails to detect matching elements/styles with nested folders

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-07-14T22:32:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMichael Stelly
AssigneeMauro Parra-Miranda
Created2014-06-02T17:39:19.000+0000
Updated2016-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

  1. Shuo Liang 2014-06-10

    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)

JSON Source