Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1706] Compile error if Alloy view filename contains hyphen

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-11-19T13:59:30.000+0000
Affected Version/sn/a
Fix Version/sCLI Release 7.1.2
Componentsn/a
Labelsn/a
ReporterBrenton House
AssigneeBrenton House
Created2019-10-01T21:42:54.000+0000
Updated2019-11-19T13:59:30.000+0000

Description

If an Alloy view filename contains a hyphen (i.e. login-view.xml), you will get either a compile time or runtime error. Property assignments in auto-generated code should probably use [ ] notation instead of . (dot) notation.

Comments

  1. Brenton House 2019-10-01

    Created PR: https://github.com/appcelerator/alloy/pull/939
  2. Samir Mohammed 2019-11-19

    *Closing ticket.* Fix verified in CLI Version "NPM":"4.2.15-1","CLI":"7.1.2-7". Tested using the KitchenSink app and changing the names of some of the files to include '-'. *Test Environment*
       MacOS Catalina 10.15.1 beta
       Xcode 11 
       Node.js 10.16.3
       iphone 8 13.2
       "NPM":"4.2.15-1","CLI":"7.1.2-7"
       SDK Version 8.3.0.v20191114073239
       

JSON Source