Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-2688

iOS: Ti.API: some console logging calls with array args do not print array to console

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Titanium Studio 3.0.0
    • Component/s: Debugging
    • Environment:
    • Story Points:
      8

      Description

      Some console logging calls with array args do not print array to console.

      The cases are:

      Ti.API.log('freeform', ['arg0', 'arg1'])

      and

      Ti.API.timestamp(['arg0', 'arg1'])

      This does not occur in MobileWeb or Android. This is a parity issue.
      This does not occur to other array printing calls in iOS. This is an internal inconsistency.

      Steps to Reproduce:

      1. Run code:

      Ti.API.log('log', ['Ti.API.log.0', 'Ti.API.log.1']);
      Ti.API.timestamp(['Ti.API.timestamp.0', 'Ti.API.timestamp.1']);
      

      Actual Result:

      [LOG] (
      [TIMESTAMP] 373334748.160333 (
      

      Expected Result:

      [LOG] ( arg0, arg1 )
      [TIMESTAMP] 373334748.160333 ( arg0, arg1 )
      

      There are issues with both the old python and the new CLI with how the multi-line strings are outputted. When we fix it, we should make sure it works for both CLIs

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                dhyde Dustin Hyde
              • Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: