Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: Release 3.0.0
    • Fix Version/s: Release 3.1.0
    • Component/s: CLI
    • Environment:

      Titanium Studio: 3.0.0
      Titanium SDK: 2.1.3, 3.0.0
      OS: Mountain Lion 10.8.2
      Titanium CLI: enabled

    • Story Points:
      8

      Description

      Console: colors, lines, and messages ill-formatted with CLI enabled (see screenshots).

      Steps to Reproduce:

      1. Run code:

      /* console */
       
      if(Ti.Platform.osname != 'android') // TIMOB-11294 - Android: console: log functions fail in commonjs require
      {
      	console.log('console LOG');
      	console.log(['console LOG', 'ARG1', 'ARG2']);
      	 
      	console.debug('console DEBUG');
      	console.debug(['console DEBUG', 'ARG1', 'ARG2']);
      	 
      	console.info('console INFO');
      	console.info(['console INFO', 'ARG1', 'ARG2']);
      	 
      	console.warn('console WARN');
      	console.warn(['console WARN', 'ARG1', 'ARG2']);
      	
      	console.error('console ERROR');
      	console.error(['console ERROR', 'ARG1', 'ARG2']);
      }
      else
      {
      	Ti.API.info('TIMOB-11294 - Android: console: log functions fail in commonjs require');
      }
       
      /* Ti.API */
       
      Ti.API.trace('Ti.API TRACE');
      Ti.API.trace(['Ti.API TRACE', 'ARG1', 'ARG2']);
       
      Ti.API.debug('Ti.API DEBUG');
      Ti.API.debug(['Ti.API DEBUG', 'ARG1', 'ARG2']);
       
      Ti.API.info('Ti.API INFO');
      Ti.API.info(['Ti.API INFO', 'ARG1', 'ARG2']);
       
      Ti.API.warn('Ti.API WARN');
      Ti.API.warn(['Ti.API WARN', 'ARG1', 'ARG2']);
       
      Ti.API.error('Ti.API ERROR');
      Ti.API.error(['Ti.API ERROR', 'ARG1', 'ARG2']);
       
      /* Ti.API.log */
       
      Ti.API.log('TRACE', 'Ti.API.log TRACE');
      Ti.API.log('TRACE', ['Ti.API.log TRACE', 'ARG1', 'ARG2']);
       
      Ti.API.log('DEBUG', 'Ti.API.log DEBUG');
      Ti.API.log('DEBUG', ['Ti.API.log DEBUG', 'ARG1', 'ARG2']);
       
      Ti.API.log('INFO', 'Ti.API.log INFO');
      Ti.API.log('INFO', ['Ti.API.log INFO', 'ARG1', 'ARG2']);
       
      Ti.API.log('WARN', 'Ti.API.log WARN');
      Ti.API.log('WARN', ['Ti.API.log WARN', 'ARG1', 'ARG2']);
       
      Ti.API.log('ERROR', 'Ti.API.log ERROR');
      Ti.API.log('ERROR', ['Ti.API.log ERROR', 'ARG1', 'ARG2']);
       
      Ti.API.log('LOG', 'Ti.API.log LOG');
      Ti.API.log('LOG', ['Ti.API.log LOG', 'ARG1', 'ARG2']);
       
      /* Ti.iOS.API */
       
      if(Ti.Platform.osname == 'iphone' || Ti.Platform.osname == 'ipad')
      {
          Ti.API.timestamp('Ti.API TIMESTAMP');
          Ti.API.timestamp(['Ti.API TIMESTAMP', 'ARG1', 'ARG2']);
      }
      

      Actual Result:

      colors, line formatting misaligned, and some messages do not display at all.

      Expected Result:

      colors, lines, and messages should appear and be properly formatted

        Attachments

        1. cli disabled.png
          cli disabled.png
          43 kB
        2. cli enabled.png
          cli enabled.png
          42 kB
        3. colors0.png
          colors0.png
          51 kB
        4. colors1.png
          colors1.png
          52 kB
        5. colors2.png
          colors2.png
          50 kB

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-14950
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration