{ "id": "169876", "key": "ALOY-1589", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-11-20T18:39:01.000+0000", "created": "2017-09-24T06:05:34.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "batman", "key": "batman", "displayName": "Bruce Wayne", "active": true, "timeZone": "America/New_York" }, "updated": "2018-07-27T12:19:04.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": "12332", "name": "Titanium SDK", "description": "Any integration or issues with the TiSDK" } ], "description": "{code:java}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n\r\n\r\n\r\n{code:java}\r\nvar snippet = \"Test string\";\r\nvar formatter = Ti.UI.createAttributedString({\r\n text : snippet,\r\n attributes : [{\r\n type : Titanium.UI.ATTRIBUTE_FOREGROUND_COLOR,\r\n value : 'red',\r\n range : [0, 4]\r\n }]\r\n});\r\n\r\nvar item = {\r\n snippet : {\r\n text : snippet,\r\n attributedString : formatter\r\n },\r\n properties : {\r\n accessoryType : Titanium.UI.LIST_ACCESSORY_TYPE_NONE\r\n },\r\n};\r\n \r\n$.section.appendItems([item]);\r\n\r\n{code}\r\n\r\n{code}\r\nIt's always giving an error like this :-\r\n[ERROR] : Script Error: {\r\n[ERROR] : column = 32;\r\n[ERROR] : line = 223;\r\n[ERROR] : message = \"Invalid type passed to function\";\r\n[ERROR] : nativeLocation = \"-[TiUILabel setAttributedString_:] (TiUILabel.m:491)\";\r\n[ERROR] : nativeReason = \"expected: TiUIAttributedStringProxy, was: NSNull\";\r\n[ERROR] : stack = \"[native code]\\nrefresh\\nController\\ncreateController\\ngoToInspectionPanel\\n\";\r\n[ERROR] : }\r\n{code}\r\n\r\n\r\n", "attachment": [ { "id": "63572", "filename": "Simulator Screen Shot - iPhone 7 Plus - 2017-11-09 at 12.48.59.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-11-09T20:49:49.000+0000", "size": 70709, "mimeType": "image/png" } ], "flagged": false, "summary": "ListItem having a Label with AttributedString is not working", "creator": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 6.2.0\r\nIOS", "comment": { "comments": [ { "id": "428381", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Looks related to AC-1009 which was resolved by the creator of the ticket. Please ensure you cleaned your build-directory and watch out for possible typos. If it's still not working after that, we can move it to the Alloy-space, thx!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-24T08:59:25.000+0000", "updated": "2017-09-24T08:59:25.000+0000" }, { "id": "429112", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~speedyankur@gmail.com], Can you please follow up on [~hknoechel], comment above? Let us know if you have done the things properly. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-10-15T18:57:58.000+0000", "updated": "2017-10-15T18:57:58.000+0000" }, { "id": "429906", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~speedyankur@gmail.com], Any update on your issue?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-10-31T18:10:39.000+0000", "updated": "2017-10-31T18:10:39.000+0000" }, { "id": "429942", "author": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No its still not working for me.", "updateAuthor": { "name": "speedyankur@gmail.com", "key": "speedyankur@gmail.com", "displayName": "ankur garha", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-01T07:08:33.000+0000", "updated": "2017-11-01T07:08:33.000+0000" }, { "id": "430359", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Works for me with SDK 6.3.0.GA, CLI 6.3.0. Above test app launched with no error, please see attached screen shot.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-11-09T20:52:06.000+0000", "updated": "2017-11-09T20:52:06.000+0000" }, { "id": "431047", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "Please reopen with more information if occurs. ", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-11-20T18:39:01.000+0000", "updated": "2017-11-20T18:39:01.000+0000" }, { "id": "439535", "author": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Using 7.1.1.GA the error is reproducible if template with a Ti.UI.TextArea is set with Ti.UI.AttributedString in one Ti.UI.ListItem and plain string value in another. ", "updateAuthor": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-27T12:19:04.000+0000", "updated": "2018-07-27T12:19:04.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }