{ "id": "118706", "key": "ALOY-793", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-01T15:27:32.000+0000", "created": "2013-08-17T00:52:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.4.0", "qe-manualtest" ], "versions": [ { "id": "15570", "description": "Alloy 1.2.1", "name": "Alloy 1.2.1", "archived": false, "released": true, "releaseDate": "2013-08-27" }, { "id": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" }, { "id": "15512", "description": "Alloy 1.1.3", "name": "Alloy 1.1.3", "archived": false, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2014-09-12T16:38:38.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13603", "name": "Styling", "description": "TSS, dynamic styling, styling API" } ], "description": "h5. Problem description\r\n\r\nWhen using the ' \\ ' character in some text defined in the styles .tss files, Alloy compiler fails instead of ignoring it.\r\n\r\nIf setting it in the view .xml (for example as a Label text), the \\ character is ignored as expected.\r\n\r\nh5. Steps to reproduce\r\nh6. 1. Use following sample\r\n \r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\napp.tss\r\n{code}\r\n\"Label\":{\r\n\tfont:{\r\n\t\tfontSize:'18dp'\r\n\t}\r\n}\r\n\r\n\"#topLabel\":{\r\n\ttext:'foo \\ bar'\r\n}\r\n{code}\r\n\r\nh6. 2. Build and run (any platform/device)\r\nResult: Alloy compile fails.\r\n{code}\r\n[INFO] : ----- MVC GENERATION -----\r\n[INFO] : [app.tss] global style processing...\r\n[ERROR] : [ERROR] Error processing style \"/Users/fcasali/Documents/Appcelerator_Studio_Workspace_5/alloySamples/app/styles/app.tss\"\r\n[ERROR] : [ERROR] Expected \"Alloy\", \"L\", \"Ti\", \"Titanium\", \"WPATH\", \"[\", \"false\", \"null\", \"true\", \"{\", comment, end of line, number, string or whitespace but \"'\" found.\r\n[ERROR] : [ERROR] \r\n[ERROR] : [ERROR] - line: 9\r\n[ERROR] : [ERROR] - column: 7\r\n[ERROR] : [ERROR] - offset: 64\r\n[ERROR] : Alloy compiler failed\r\n{code}\r\n\r\nh6. 3. Change\r\n{code}\r\ntext:'foo \\ bar'\r\n{code}\r\nto \r\n{code}\r\ntext:\"foo \\ bar\"\r\n{code}\r\n\r\nand build.\r\n\r\nResult: Alloy compile fails with a slightly different error.\r\n\r\n{code}\r\n[ERROR] : [ERROR] Expected \"Alloy\", \"L\", \"Ti\", \"Titanium\", \"WPATH\", \"[\", \"false\", \"null\", \"true\", \"{\", comment, end of line, number, string or whitespace but \"\\\"\" found.\r\n{code}\r\n\r\nh6. 4. Delete text:\"foo \\ bar\" from app.tss and build (leave the one in index.xml) \r\nResult: Alloy compiles and app is run. '\\' is ignored.\r\n\r\nh5. Note\r\nIt is also reproducible with previous versions of Alloy, not a regression.", "attachment": [], "flagged": false, "summary": "Build fails if using ' \\ ' character as text in styles .tss ", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.1.2.GA\r\nAlloy 1.2.1-cr\r\nAppcelerator Studio 3.1.2.201308091728\r\nCLI 3.1.2.GA\r\nNode 0.10.13", "closedSprints": [ { "id": 147, "state": "closed", "name": "2014 Sprint 13 Alloy", "startDate": "2014-06-23T14:36:08.509Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T16:06:44.759Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "311795", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/467\r\nTest app: https://github.com/feons/alloy/tree/ALOY-793/test/apps/testing/ALOY-793\r\n\r\nFunctional Test:\r\n\r\n 1. Run the test app on iOS\r\n 2. No compile error and backslash shows up", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-07-01T14:17:21.000+0000", "updated": "2014-07-01T14:17:21.000+0000" }, { "id": "311804", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "PR reviewed and merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-07-01T15:27:32.000+0000", "updated": "2014-07-01T15:27:32.000+0000" }, { "id": "323317", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on iPad iOS 8, Android 4.3 and Mobileweb.\r\n\r\nTiSDK 3.4.0.v20140911135715\r\nAppcelerator Studio 3.4.0.201409111151 \r\nCLI 3.4.0-rc2\r\nAlloy 1.5.0-rc\r\nXcode6-beta7\r\n\r\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T16:30:55.000+0000", "updated": "2014-09-12T16:30:55.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }