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

Console: log only displays first line of output

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Titanium Studio 1.0.8
    • Fix Version/s: Titanium Studio 1.0.8
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      Problem

      In previous versions of Studio, a multi-line output from Ti.API.info() would print in the Console log. In the latest prerelease version of 1.0.7, the output gets clipped to the first line. Logging output is correct when the app is run from the command line.

      Test case

      app.js

      var win = Ti.UI.createWindow();
      win.addEventListener('open', function(e) {
        fooglebar();
      });
      win.open();
      

      Logs

      Titanium Studio Console window

      [INFO] One moment, building ...
      [INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)
      [INFO] iPhone Device family: universal
      [INFO] iPhone SDK version: 5.0
      [INFO] iPhone simulated device: iphone
      [INFO] Launching application in Simulator
      [INFO] Launched application in Simulator (2.95 seconds)
      [INFO] Found 5.0 patch installed
      [INFO] Application started
      [INFO] LogExample/1.0 (1.8.0.1.fbdc96f)
      [WARN] Exception in event callback. {
      

      Command Line

      iago:LogExample paul$ titanium run --platform=iphone
      [INFO] One moment, building ...
      [DEBUG] Detecting modules in /Users/paul/Documents/Titanium Studio Workspace/LogExample/modules
      [DEBUG] Detecting modules in /Users/paul/Library/Application Support/Titanium/modules
      [DEBUG] Detected module for iphone: com.obscure.imageview_ex 1.0 @ /Users/paul/Library/Application Support/Titanium/modules/iphone/com.obscure.imageview_ex/1.0
      [DEBUG] Detected module for iphone: com.obscure.keychain 1.0 @ /Users/paul/Library/Application Support/Titanium/modules/iphone/com.obscure.keychain/1.0
      [DEBUG] Detected module for iphone: nl.icept.overlayhud 1.1 @ /Users/paul/Library/Application Support/Titanium/modules/iphone/nl.icept.overlayhud/1.1
      [DEBUG] Detected module for iphone: ti.flurry 0.1 @ /Users/paul/Library/Application Support/Titanium/modules/iphone/ti.flurry/0.1
      [INFO] Titanium SDK version: 1.8.0.1 (12/22/11 13:09 fbdc96f)
      [INFO] iPhone Device family: iphone
      [INFO] iPhone SDK version: 5.0
      [INFO] iPhone simulated device: iphone
      [DEBUG] executing command: /usr/bin/killall iPhone Simulator
      [DEBUG] No matching processes belonging to you were found
      [DEBUG] finding old log files
      [DEBUG] executing command: mdutil -a -s
      [DEBUG] /:
      [DEBUG] Indexing enabled.
      [DEBUG] /.MobileBackups:
      [DEBUG] No index.
      [DEBUG] /Volumes/MobileBackups:
      [DEBUG] Index is read-only.
      [DEBUG] /Volumes/MobileBackups/Backups.backupdb:
      [DEBUG] Index is read-only.
      [DEBUG] /Volumes/Time Machine:
      [DEBUG] Indexing enabled.
      [DEBUG] /Volumes/Time Machine/Backups.backupdb:
      [DEBUG] Indexing enabled.
      [DEBUG] Searching for old log files with mdfind...
      [DEBUG] executing command: mdfind -onlyin /Users/paul/Library/Application Support/iPhone Simulator/5.0 -name fb2b5237-dcb6-4fb9-888b-da30b3877e39.log
      [DEBUG] /Users/paul/Library/Application Support/iPhone Simulator/5.0/Applications/5BAE8929-216B-4425-8A11-7D24D07B3146/Documents/fb2b5237-dcb6-4fb9-888b-da30b3877e39.log
      [DEBUG] removing old log file: /Users/paul/Library/Application Support/iPhone Simulator/5.0/Applications/5BAE8929-216B-4425-8A11-7D24D07B3146/Documents/fb2b5237-dcb6-4fb9-888b-da30b3877e39.log
      [INFO] Launching application in Simulator
      [INFO] Launched application in Simulator (2.65 seconds)
      [DEBUG] executing command: xcodebuild -version
      [DEBUG] Xcode 4.2.1
      [DEBUG] Build version 4D502
      [INFO] Found 5.0 patch installed
      [INFO] Application started
       
      [DEBUG] reading stylesheet from: /Users/paul/Library/Application Support/iPhone Simulator/5.0/Applications/5BAE8929-216B-4425-8A11-7D24D07B3146/LogExample.app/stylesheet.plist
       
      [INFO] LogExample/1.0 (1.8.0.1.fbdc96f)
       
      [DEBUG] Analytics is enabled = YES
       
      [DEBUG] loading: /Users/paul/Library/Application Support/iPhone Simulator/5.0/Applications/5BAE8929-216B-4425-8A11-7D24D07B3146/LogExample.app/app.js, resource: app_js
       
      [DEBUG] application booted in 26.570022 ms
       
      [WARN] Exception in event callback. {
       
      expressionBeginOffset = 77;
       
      expressionCaretOffset = 86;
       
      expressionEndOffset = 86;
       
      line = 3;
       
      message = "Can't find variable: fooglebar";
       
      name = ReferenceError;
       
      sourceId = 239283104;
       
      sourceURL = "file://localhost/Users/paul/Library/Application%20Support/iPhone%20Simulator/5.0/Applications/5BAE8929-216B-4425-8A11-7D24D07B3146/LogExample.app/app.js";
       
      }
      
      

        Attachments

          Activity

            People

            • Assignee:
              ingo Ingo Muschenetz
              Reporter:
              pegli Paul Mietz Egli
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: