Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Cdt-launch-inbox] [Bug 102043] New: Console Output Does Not Appear When Launching An Application

https://bugs.eclipse.org/bugs/show_bug.cgi?id=102043

           Summary: Console Output Does Not Appear When Launching An
                    Application
           Product: CDT
           Version: 3.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cdt-launch
        AssignedTo: cdt-launch-inbox@xxxxxxxxxxx
        ReportedBy: j_apter@xxxxxxxxxxx


Starting with Eclipse 3.1RC2, when I launch a C/C++ Local Application I don't
get output on the console.  For example, the following program produces no
output in the Eclipse console:

#include <stdio.h>

int main()
{
  printf("hello world\n");
  printf("hello world\n");
  printf("hello world\n");
  printf("hello world\n");
  printf("hello world\n");
}

I am sometimes able to see one "hello world", but most times I see nothing at
all, and I am never able to see all 5 "hello world"'s.  If I put a sleep after
the first "hello world" I am able to see it, and then I am sometimes able to see
the next "hello world", but again, never able to see them all (unless I put a
sleep after the last "hello world").  This appears to be a timing issue with
regards to when the console is cleared after an application is launched.  Since
the results are somewhat inconsistent (sometimes I get one line, sometimes
none), I'm inclined to believe this issue is not related to any settings I have.

This problem occurs in Eclipse 3.1RC2 and newer (I've tried all the latest RC
builds, including RC4).  However, it DOES NOT occur in Eclipse 3.1RC1 or older.
 I have also tried all CDT 3.0 milestones (as well as some daily/weekly builds)
but they seem to have no effect on this issue.  It looks to me as though
something was changed between Eclipse 3.1RC1 and 3.1RC2 that would effect the
console output.  Note that Java console output seems to be working fine.

Another issue I have noticed is that line breaks don't occur when writing to
stdout after writing to stderr (i.e. cerr << "error" << endl; cout << "stdout"
<< endl; both appear on the same line in the console, though, in different
colors), I'm not sure this is related as I believe this occurs in Eclipse 3.1RC1.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Back to the top