{ "id": "109181", "key": "AC-2117", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-02-19T16:18:51.000+0000", "created": "2013-02-05T14:43:42.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "33909", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "107621", "key": "TIDOC-972", "fields": { "summary": "Remove expr() syntax, show how to use Alloy namespace properties in TSS files ", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:05.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "http://pastie.org/private/gigutdvlml8zjzjc3pc0g\r\n\r\nUpon compiling this tss file, we get the following error below. The tss is perfectly valid. \r\n\r\n[INFO] logfile = D:\\My-Projects\\Mobile\\Guhah\\dsd\\build.log\r\n[INFO] Building dsd for Android ... one moment\r\n[INFO] plugin=C:\\Users\\vinothb\\AppData\\Roaming\\Titanium\\plugins\\ti.alloy\\1.0\\plugin.py\r\n[INFO] Detected compiler plugin: ti.alloy/1.0\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 1\r\n[INFO] alloy app found at D:\\My-Projects\\Mobile\\Guhah\\dsd\\app\r\n[INFO] Executing Alloy compile:\r\n[INFO] alloy.cmd compile D:\\My-Projects\\Mobile\\Guhah\\dsd\\app --no-colors --config platform=android,version=8,simtype=none,devicefamily=none,deploytype=development,\r\n .__ .__ \r\n_____ | | | | ____ ___.__.\r\n\\__ \\ | | | | / _ < | |\r\n / __ \\| |_| |_( <_> )___ |\r\n(____ /____/____/\\____// ____|\r\n \\/ \\/\r\n[ERROR] Error processing style \"D:\\My-Projects\\Mobile\\Guhah\\dsd\\app\\styles\\index.tss\"\r\n[ERROR] Alloy compile failed", "attachment": [], "flagged": false, "summary": "Alloy compilation fails if tss has expr function", "creator": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "alloy 0.3.6 titanium sdk 3.0 G.A", "comment": { "comments": [ { "id": "238847", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-18T21:50:59.000+0000", "updated": "2013-02-18T21:56:01.000+0000" }, { "id": "238876", "author": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "the expr function is referenced via the styles for calculation. for instance, top:expr((((Ti.Platform.displayCaps.platformHeight * 0.95) * 0.1) * 0.18)). the value of top is calculated something like this, because we are not able to directly call the Ti.Platform.displayCaps.platformHeight. ", "updateAuthor": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-19T09:16:15.000+0000", "updated": "2013-02-19T09:16:15.000+0000" }, { "id": "238877", "author": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I see the problem now, https://github.com/appcelerator/alloy/commit/e9fdc93c9760a1590c0abd0136662c11dc678066#commitcomment-2401085. I just got to tony's comment and it seems tss would not perform any calculation. \r\n\r\nheight:expr(Ti.Platform.displayCaps.platformHeight * 0.075) // would fail. \r\nheight:Ti.Platform.displayCaps.platformHeight * 0.075 // would also fail. \r\n\r\n", "updateAuthor": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-19T09:35:59.000+0000", "updated": "2013-02-19T13:10:40.000+0000" }, { "id": "238885", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-19T16:18:51.000+0000", "updated": "2013-02-19T16:18:51.000+0000" }, { "id": "286040", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi Vinothbabu,\n\nNow that the documentation has been updated, please let me know if we can close this ticket.\n\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-28T00:47:51.000+0000", "updated": "2013-12-28T00:47:51.000+0000" }, { "id": "286343", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-31T07:01:15.000+0000", "updated": "2013-12-31T22:14:53.000+0000" }, { "id": "288299", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing since we have not heard back from the reporter and the issue can't be reproduced.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-15T18:42:19.000+0000", "updated": "2014-01-15T18:42:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }