Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24185] Windows: console log not printing right arguments

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-01-24T00:54:58.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsconsole, parity, windows
ReporterShuo Liang
AssigneeKota Iguchi
Created2016-12-01T00:35:32.000+0000
Updated2017-01-25T19:38:24.000+0000

Description

Reproduce

1. Create a simple default app. 2. Add following code into it
const LOG_TAG = '\x1b[31m' + '[window]' + '\x1b[39;49m ';
console.log(LOG_TAG, '- init');
3. Run it on Windows device

Expect

The output should be
[window] - init

Actual

The output is
[window]

Note

This works as expected on android and iOS, but not on windows

Comments

  1. Kota Iguchi 2017-01-17

    https://github.com/appcelerator/titanium_mobile_windows/pull/926
  2. Samir Mohammed 2017-01-25

    Verified fix, using the test code provided in the description and also the test code provided in https://github.com/appcelerator/titanium_mobile_windows/pull/926. Was able to see the following message for the test code provided in the description.
       [INFO] [window]  - init
       
    And was able to see the following message in the console from the test case in https://github.com/appcelerator/titanium_mobile_windows/pull/926.
       [INFO] :   TEST
       [INFO] :   TEST1 TEST2 TEST3
       
    *Environment*
       
       Lumia 640 LTE (RM-1073) (OS Build 10.0.14393.693)
       Operating System
       Name                        = Microsoft Windows 10 Pro
       Version                     = 10.0.14393
       Architecture                = 64bit
       

    CPUs = 4

    Memory = 17034395648 Node.js Node.js Version = 4.6.0 npm Version = 2.11.3 Titanium SDK SDK Version = 6.1.0.v20170125103400

JSON Source