{ "id": "171191", "key": "TIMOB-25809", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "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": "2019-05-14T21:53:41.000+0000", "created": "2018-02-25T13:50:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engTriage", "es6", "logging" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [], "assignee": null, "updated": "2019-05-14T21:53:41.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "While migrating my [canteen app|https://github.com/hansemannn/studentenfutter-app] to ES6, I noticed that logs (e.g. {{Ti.API.warn}}) do not work anymore. The only logs appearing are:\r\n{code}\r\n[TRACE] \b\b \b[ioslib] App launched\r\n[TRACE] \b\b \b[ioslib] Trying to connect to log server port 28416...\r\n[TRACE] \b\b \b[ioslib] Connected to log server port 28416\r\n-- Start simulator log -------------------------------------------------------\r\n[TRACE] \b\b \bupdating tiapp metadata with Appcelerator Platform...\r\n[TRACE] \b\b \bUploaded tiapp metadata with Appcelerator Platform!\r\n{code}\r\n\r\nTo reproduce:\r\n{code:js}\r\n var win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n Ti.API.error('Hello?')\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "ES6: Logs do not work anymore", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": "7.1.0.v20180223174212", "comment": { "comments": [ { "id": "434899", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~hknoechel] Weird, I'm using the same SDK version and I can see the logs just fine from both ti and appc\r\n\r\n{code}\r\n[TRACE] [ioslib] Connected to log server port 55408\r\n-- Start simulator log -------------------------------------------------------\r\n[DEBUG] Reading stylesheet from: /Users/eharris/Library/Developer/CoreSimulator/Devices/19A348C6-7F86-4096-AEDE-90BB291BC971/data/Containers/Bundle/Application/58E5F4B5-6983-46F5-98E5-612834262309/prodteamclassic.app/stylesheet.plist\r\n[INFO] prodteamclassic/1.0 (7.1.0.50003f5)\r\n[DEBUG] Loading: /Users/eharris/Library/Developer/CoreSimulator/Devices/19A348C6-7F86-4096-AEDE-90BB291BC971/data/Containers/Bundle/Application/58E5F4B5-6983-46F5-98E5-612834262309/prodteamclassic.app/app.js, Resource: app_js\r\n[DEBUG] Loading: /Users/eharris/Library/Developer/CoreSimulator/Devices/19A348C6-7F86-4096-AEDE-90BB291BC971/data/Containers/Bundle/Application/58E5F4B5-6983-46F5-98E5-612834262309/prodteamclassic.app/_app_props_.json, Resource: _app_props__json\r\n[DEBUG] Application booted in 56.133986 ms\r\n[TRACE] Uploaded tiapp metadata with Appcelerator Platform!\r\n[ERROR] Hello?\r\n[ERROR] Hello?\r\n[ERROR] Hello?\r\n[ERROR] Hello?\r\n[ERROR] Hello?\r\n{code}", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-02-26T10:56:50.000+0000", "updated": "2018-02-26T10:56:50.000+0000" }, { "id": "447724", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce.I can also see the logs just fine from both ti and appc. Node.js\r\n Node.js Version = 8.11.3\r\n npm Version = 6.7.0\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 8.0.0.GA", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-16T21:07:47.000+0000", "updated": "2019-04-16T21:07:47.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }