Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15569] OS X 10.9: No output from warn, info, debug when debugging

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-11-02T00:13:47.000+0000
Affected Version/sRelease 3.1.4
Fix Version/s2013 Sprint 22, 2013 Sprint 22 Core, Release 3.2.0
ComponentsCLI, iOS
Labelsmerge-3.1.4
ReporterMauro Parra-Miranda
AssigneeChris Barber
Created2013-10-23T09:07:51.000+0000
Updated2013-11-13T19:26:17.000+0000

Description

Looks like a regression of TISTUD-5283...
var win = Ti.UI.createWindow({
    backgroundColor: 'white'
});
 
var b1 = Ti.UI.createButton({
    title: 'Button',
    top: 50,
    height: Ti.UI.SIZE,
    width: Ti.UI.SIZE
});
 
b1.addEventListener('click', function() {
    Ti.API.warn('this is warn output');
    Ti.API.info('this is info output');
    Ti.API.debug('this is debug output');
});
 
win.add(b1);
win.open();
*Output* nothing - console is blank *Expected output* [WARN] : this is warn output [DEBUG] : this is debug output [INFO] : this is info output

Comments

  1. Seth Benjamin 2013-10-23

    This appears to be happening when building with the Titanium CLI; Studio appears to show the console output just fine.
  2. Matthew Delmarter 2013-10-23

    That's not true for me Seth. It does not show any console logging output inside Studio. Maybe you are not using the exact same environment?
  3. Mauro Parra-Miranda 2013-10-23

    Hello, just go and update to 3.1.4.RC, and the new Studio, which have support for Mavericks. If the issue is still there, we can reopen it. http://www.appcelerator.com/blog/2013/10/studio-3-1-4-for-os-x-mavericks/ BEst, Mauro
  4. Seth Benjamin 2013-10-23

    @Mauro I am testing against the latest studio, as well as 3.1.4.v20131016191639 Still doesn't work with the CLI. It works with Studio when ran with the debug settings.
  5. Mauro Parra-Miranda 2013-10-23

    Seth, can you please paste your Studio log (whatever is there, just to take a look). Thanks! Best, Mauro
  6. Mauro Parra-Miranda 2013-10-23

    There is evidence of this happening with 3.1.4.
  7. Matthew Delmarter 2013-10-23

    @Seth - I wonder why I do not see the output inside Studio and you do? Are you using Mavericks?
  8. Seth Benjamin 2013-10-23

    Mauro, As i mentioned it would seem Studio is fine. It's the CLI that I am having issues with, although @Matthew seems to be having trouble with Studio. Thanks, Seth
  9. Matthew Delmarter 2013-10-23

    Just to clarify - I also have trouble with the CLI. Both Studio and CLI are included in the issue.
  10. Seth Benjamin 2013-10-23

    @Matthew - Im using 10.9 and I launch the sim using the debug configuration. It doesn't seem to work any other way.
  11. Michael Xia 2013-10-23

    We should take a look at the CLI side first and resolve there, then move to Studio if the output is still not seen from Studio console.
  12. Matej 2013-10-24

    Similiar issue. I have been using Ti 3.1.3.GA and Xcode 5 (Mountain Lion) everything worked ,but yesterday I updated Xcode to 5.0.1 and I can't see any console output with iOS 7 simulator (iOS 6.1 does work).
  13. Tony Lukasavage 2013-10-24

    I'm seeing the issue using only the latest CLI (no studio), pulled from github today
  14. Matej 2013-10-25

    After downgrade Xcode from 5.0.1 to 5.0 the console works again.
  15. Sebastian Klaus 2013-10-25

    That's my experience, too.
  16. Sebastian Klaus 2013-10-25

    After starting the simulator in debug-mode http://cl.ly/image/0p0e2b1D2a1B I could switch back to "Resource" view and see all logs as normal http://cl.ly/image/0d2L1G263u2B
  17. Viktor Korol 2013-10-25

    Try to enable Developer Mode https://discussions.apple.com/thread/3780934
  18. Sebastian Klaus 2013-10-25

    I tried with a complete restart, bit that won't work.
  19. Seth Benjamin 2013-10-25

    It would seem the common cause here is XCode 5.0.1, if anything that'd be a good place to start. @Tony, I was seeing this with the latest stable and the edge release of the CLI. I don't believe this is SDK related. CLI & Studio seem to be borked with updates to XCode. Is there a chance this will be patched sometime soon before the 3.2 release? Seems odd to peg it then when something like this can drastically change development workflows for customers and patrons of the Open-Source code.
  20. Ingo Muschenetz 2013-10-25

    I admit, I'm sort of perplexed that an XCode change would cause this. In both cases, you are using the same version of iOS SDK and emulator?
  21. Mark Ross 2013-10-25

    I have NOT updated to Mavericks, I only updated to XCode 5.0.1. After that update, I no longer see logging using the iPhone simulator in Studio 3.1.3, so i can confirm its likely due to XCode update and not Mavericks.
  22. Matej 2013-10-25

    Ingo: XCode 5.0.1 (Simulator iOS 7) -> console doesn't work (I am not sure ,but simulator is I think iOS 7.0.3 maybe this is problem) XCode 5.0.1 (Simulator iOS 6.1) -> console does work XCode 5 -> No problem *On 100% problem is not in an OS X I tested it with Mountain Lion and Mavericks as well.
  23. Sebastian Klaus 2013-10-25

    I agree with Mark and Matej. But also I can confirm, that apps started in debug mode show the log as normal.
  24. Wilson Luu 2013-10-25

    This is what I found after my investigation: Warn, info, and debug information *appears* in the console view when you debug the above app on an iOS simulator (i.e. Right-click > Debug As > iPhone Simulator). Verified on: Titanium Studio, build: 3.1.3.201309132423, 3.1.4.201310152018 Ti CLI: 3.1.2 SDK build: 3.1.3.GA OS: Mountain Lion (10.8.5), Maverick (10.9) Xcode: 5.0, 5.0.1 *However,* warn, info, and debug information *do not appear* in the console view when you run the above app on an iOS simulator (i.e. Right-click > Run As > iPhone Simulator) using either Xcode 5.0 or 5.0.1 and targeting Simulator Version 7.0 from Studio. Also, verified on: Titanium Studio, build: 3.1.3.201309132423, 3.1.4.201310152018 Ti CLI: 3.1.2 SDK build: 3.1.3.GA OS: Mountain Lion (10.8.5), Maverick (10.9) Xcode: 5.0, 5.0.1
  25. Malcolm Hollingsworth 2013-10-26

    Whilst the debug mode does show the logging, it also clears the compiling information when the first entry is displayed.
  26. Alex Peckham 2013-10-28

    I can confirm I have latest version of Titanium (build: 3.1.3.201309132423) and am running Mavericks - I have the same error. I was also experiencing the issue on Mountain Lion before I upgraded the OS.
  27. Dan Tamas 2013-10-28

    I can also confirm that with Xcode 5.0.1 all the console is gone :(
  28. Dan Tamas 2013-10-28

    It seems that the log file that before was created in the documentsDirectory is not created anymore for some reason. I even try to hack the SDK to comment the #ifdef __LOG__ID__ (in main.m) but no love :(
  29. Ingo Muschenetz 2013-10-28

    Hi All...we believe this is a result of the simulator version "7.0.3" included with XCode 5.0.1. Previous versions of simulators did not include a 3rd segment, and this appears to confuse ios-sim and the CLI. We are working on a fix and hope to have one available in a nightly build shortly.
  30. Sebastian Klaus 2013-10-28

    Thanks a lot, Ingo!
  31. Chris Barber 2013-11-01

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/4898
  32. Seth Benjamin 2013-11-01

    @Chris, Awesome. Can't wait to try this. Any ETA as to when this will be accepted and merged? I really would like to test this out.
  33. Chris Barber 2013-11-01

    [~animecyc] ASAP :)
  34. Matthew Delmarter 2013-11-02

    Is there a simple patch I can apply to 3.1.3 to get the output working again?
  35. Chris Barber 2013-11-02

    [~mdelmarter] Sorry, there's no patch. We may backport to 3.1.X, but for now, it's only in 3.2 (master).
  36. Seth Benjamin 2013-11-04

    @Chris, Is Nov 14th a good estimate as to when 3.2 (where this fix was made) will be getting released?
  37. Chris Barber 2013-11-04

    [~animecyc] This fix has been merged into master, so you can play with it today. Just don't use CI builds for production work.
        sudo npm install -g git://github.com/appcelerator/titanium.git
        ti sdk install -b master -d
        
    To get back to stable:
        sudo npm install -g titanium@3.1.2
        ti sdk select 3.1.3.GA
        
    As far as the actual release date is concerned, I would say Nov 14th is NOT a good estimate. I'm not sure exactly when 3.2 will ship, but certainly not Nov 14th. I'm sure there's at least one watcher on this ticket that has an approximate release date range.
  38. Neeraj Gupta 2013-11-04

    Release 3.2.0 is scheduled to be released around the middle of December. We also plan to merge this fix to 3.1.X branch shortly.
  39. Seth Benjamin 2013-11-05

  40. Ingo Muschenetz 2013-11-05

    [~animecyc] Yes, those dates were adjusted forward to our code freeze dates for planning purposes. That's been moved back.
  41. Wilson Luu 2013-11-13

JSON Source