Affects Version/s: Titanium Studio 3.1.1
Component/s: Code Processor
Appcelerator Studio 18.104.22.168306101955
Titanium Code Processor 1.0.1-cr4
When a Warning or Error is found by the Code Analyzer for an Alloy project, Warning or Error icons are placed in the code gutter in the Resources file projects instead than in the App file projects. The result is that the Project is now marked with the red/white error icon and the 'Errors in Workspace' alert is displayed every time the project is being build.
'Resources' folder is by default not visible for Alloy projects on Studio, so the default result is also that the project is marked with an error icon, but the user can't see any other red error icon next to any visible Project file.
Also, having an error or a warning reported for the Alloy compiled code in the Resources folder is not adding much value for the user as the intended behavior is not to manually modify the compiled code files in the Resources (user should only handle Alloy files, all included into the App folder).
Paste the sample code. Note the code error in the controller.js , where foobar is actually not a function.
The error is correctly reported by the Code Analyzer (see the screenshot), also getting the correct position in the Alloy project.
However, in Studio the Error icon is placed in 'Resources/alloy/controllers/index.js' , which is hidden by default and should in any case manually modified by the user.
Alloy projects could also be displaying errors or warning relative to compiled code, generated by Alloy, not necessarily linked to "App" alloy files created by the user but only present in "Resources" folder.