{ "id": "165196", "key": "TIMOB-24278", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "2017-01-09T15:12:52.000+0000", "created": "2017-01-05T19:10:22.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "console", "indentation" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" } ], "issuelinks": [ { "id": "53889", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "165190", "key": "TIMOB-24280", "fields": { "summary": "iOS: CLI - Console logs cut initial words if starts with log levels substrings", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T19:54:48.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "After the Appcelerator 4.8.0, I've noticed that the logs are always align at the left side without spaces/tabs before, before that, if the log is a JS object or array it should have some space or tab to distinguish from its parent.\r\n\r\n*OLD WAY:*\r\n\r\n{code:java}\r\n[INFO] {\r\n[INFO] prop1: \"val1\",\r\n[INFO] prop2: \"val2\",\r\n[INFO] prop3: {\r\n[INFO] subprop: \"subval\"\r\n[INFO] }\r\n[INFO] }\r\n{code}\r\n\r\n*NOW:*\r\n\r\n{code:java}\r\n[INFO] {\r\n[INFO] prop1: \"val1\",\r\n[INFO] prop2: \"val2\",\r\n[INFO] prop3: {\r\n[INFO] subprop: \"subval\"\r\n[INFO] }\r\n[INFO] }\r\n{code}\r\n\r\n!Screen Shot 2017-01-05 at 11.50.16.png|thumbnail!", "attachment": [ { "id": "61183", "filename": "Screen Shot 2017-01-05 at 11.50.16.png", "author": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2017-01-05T19:10:12.000+0000", "size": 49852, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: CLI - Console logs align to left even when logging object properties and subproperties", "creator": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "subtasks": [], "reporter": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "environment": "MacBook Pro with MacOS Sierra 10.12.1\r\niPad Retina Simulator v10.1\r\nAppcelerator 4.8.1.201612050850\r\nTitanium SDK 6.0.0.GA", "comment": { "comments": [ { "id": "404166", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hi, I can't reproduce the issue in iOS with the below code section. \r\n{code}\r\nTi.API.info({\r\n\r\n infomation : \"appcelerator\",\r\n\r\n logical : \"appcelerator\",\r\n\r\n warning : {\r\n\r\n subwarning : \"appcelerator\"\r\n }\r\n\r\n });\r\n{code}\r\nI got\r\n{code}\r\n[INFO] {\r\n[INFO] infomation = appcelerator;\r\n[INFO] logical = appcelerator;\r\n[INFO] warning = {\r\n[INFO] subwarning = appcelerator;\r\n[INFO] };\r\n[INFO] }\r\n{code}\r\nProperly indented. \r\nTest environment for studio 4.8.1.201612050850\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.12.2\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\n\r\nNode.js\r\n Node.js Version = 4.7.0\r\n npm Version = 2.15.11\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.11\r\n\r\nTitanium SDK\r\n SDK Version = 6.0.1.GA\r\n Target Platform = iphone\r\n{code}\r\nTested in studio and terminal. Please update SDK and CLI. Thanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-01-05T21:28:22.000+0000", "updated": "2017-01-05T21:28:22.000+0000" }, { "id": "404170", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~ricardo_jcp] Thanks for this additional ticket! Please provide us your node-version, it must be something like that.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-05T21:39:02.000+0000", "updated": "2017-01-05T21:39:02.000+0000" }, { "id": "404205", "author": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "body": "Appcelerator Command-Line Interface, version 6.1.0\r\nCopyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.12.1\r\n Architecture = 64bit\r\n # CPUs = 2\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.6.2\r\n npm Version = 2.15.11\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.8\r\n Core Package = 6.1.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.11\r\n node-appc Version = 0.2.39\r\n\r\nTitanium SDKs\r\n 6.0.1.GA\r\n Version = 6.0.1\r\n Install Location = /Users/rpereira/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA\r\n Platforms = iphone, android, mobileweb\r\n git Hash = 265db0d\r\n git Timestamp = 12/20/2016 00:55\r\n node-appc Version = 0.2.39", "updateAuthor": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2017-01-06T10:40:43.000+0000", "updated": "2017-01-06T10:40:43.000+0000" }, { "id": "404245", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~cbarber] You having an idea why this could happen?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-08T21:52:08.000+0000", "updated": "2017-01-08T21:52:08.000+0000" }, { "id": "404255", "author": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "body": "could be the node js version?\r\n\r\nNode.js Version = 4.6.2\r\nnpm Version = 2.15.11\r\n\r\nin the appc 4.8.0 changelog says that the latest is 4.6.x, but I've saw a stack overflow question or a jira ticket (don't remember) that only worked between 4.2.0 and 4.6.0", "updateAuthor": { "name": "ricardo_jcp", "key": "ricardo_jcp", "displayName": "Ricardo Pereira", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2017-01-08T23:28:07.000+0000", "updated": "2017-01-08T23:28:27.000+0000" }, { "id": "404287", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "We trim log messages ONLY when it begins with a known log tag such as {{\\[info\\]}}. If the app logs a multi-line output, subsequent lines should not be trimmed.\r\n\r\nI just tested with Titanium SDK master (6.1.0) and I couldn't reproduce. I tried both {{Ti.API.log()}} and {{console.log()}}.\r\n\r\n{code}\r\n[INFO] {\r\n[INFO] bleh = \"\";\r\n[INFO] bye = bye;\r\n[INFO] foo = bar;\r\n[INFO] num = 123;\r\n[INFO] things = (\r\n[INFO] a,\r\n[INFO] b,\r\n[INFO] c\r\n[INFO] );\r\n[INFO] }\r\n{code}\r\n\r\nEven if there is a bug here, it's almost certainly NOT because of the Node.js version.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-01-09T15:08:22.000+0000", "updated": "2017-01-09T15:08:22.000+0000" }, { "id": "404288", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as {{Cannot Reproduce}} for now, since all three Engineering tests could not reproduce this issue. The logged data in your image looks like some kind of API, so maybe you JSON-stringifies it and forgot to set an indentation level to it? Or some other node-dependency making problems here. If nothing helps, reinstall the CLI and cleanup your other dependencies to have a fresh install. I hope that helps for now. Thanks!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-09T15:12:53.000+0000", "updated": "2017-01-09T15:12:53.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }