{ "id": "176302", "key": "TIMOB-28549", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "sprint": { "id": 1232, "state": "future", "name": "2021 Sprint 21", "originBoardId": 114 }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21265", "description": "", "name": "Release 10.1.1", "archived": false, "released": true, "releaseDate": "2021-11-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-10-20T16:38:38.000+0000", "created": "2021-10-07T16:07:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "21201", "description": "", "name": "Release 10.1.0", "archived": false, "released": true, "releaseDate": "2021-09-28" } ], "issuelinks": [ { "id": "59325", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "176293", "key": "TIMOB-28542", "fields": { "summary": "iOS: Logging an object on simulator does not show full object", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2021-11-17T10:46:44.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": [], "description": "h5.Description\r\n\r\nTIMOB-28542 focused on the wrong angle of the problem as it focused on the JSON objects rather than the newline issue. So if {{console.log('random\\nnewline\\ncharacters');}} is used then it doesn't show.\r\n\r\n{code}\r\nconst win = Ti.UI.createWindow();\r\nwin.addEventListener('click', (e) => {\r\n\tconsole.log(e);\r\n\tconsole.log(\"{Starts with curly brace } but doesn't end with it.\");\r\n\tconsole.log('random\\nnewline\\ncharacters');\r\n});\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add the above to your app.js\r\n2. Build to iOS and click the window\r\n\r\nh5.Actual\r\n\r\nThe first two logs show ok, but the third doesnt\r\n\r\nh5.Expected\r\n\r\nAll three logs should show correctly", "attachment": [], "flagged": false, "summary": "iOS: Newline characters in logged strings cause the log to be truncated", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": null, "comment": { "comments": [ { "id": "459079", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "ioslib PR: https://github.com/appcelerator/ioslib/pull/215", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-10-07T16:35:17.000+0000", "updated": "2021-10-07T16:35:17.000+0000" }, { "id": "459083", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "titanium_mobile: https://github.com/appcelerator/titanium_mobile/pull/13113", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-10-08T10:08:41.000+0000", "updated": "2021-10-08T10:08:41.000+0000" }, { "id": "459128", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Backported to 10_1_X", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2021-10-21T09:49:08.000+0000", "updated": "2021-10-21T09:49:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }