View previous topic :: View next topic |
Author |
Message |
wolftousen
Joined: 28 Jan 2008 Posts: 10
|
Posted: Wed Sep 09, 2009 12:17 am Post subject: Console Out delayed until Console in completed... |
|
|
Ok, so It's been forever since I used eclispe with D, usually on linux just using command line...
I recently set it up and got everything working according to tutorials except using dsss instead of rebuild.
I went to make a simple test program to insure all was well with the tango imports, but came to find out the same bug that annoyed me before is still here.
I have this simple program:
module main;
import tango.io.Console;
void main()
{
char[] buffer;
Cout("Hello!").newline;
Cin.readln(buffer);
Cout("Buffer: " ~ buffer).newline;
return 0;
}
But, when i run the program inside of eclipse the "Cout("Hello!").newline; is not printed until after I enter text for the Cin command and press enter to submit said text.
Anyway to fix this or am i just going to have to deal with it like i did before? I realize it's a buffer deal, but is there possibility of a fix? |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Wed Sep 09, 2009 3:14 pm Post subject: |
|
|
Hi wolftousen,
Which Eclipse version are you using? With 3.5 ganimede it doesn't happen to me anymore. |
|
Back to top |
|
|
wolftousen
Joined: 28 Jan 2008 Posts: 10
|
Posted: Wed Sep 09, 2009 11:58 pm Post subject: |
|
|
3.5 Galileo, went to their site and don't see a ganimede version anywhere... Is it a setting somewhere in preferences? |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Thu Sep 10, 2009 7:16 am Post subject: |
|
|
Ah, sorry, those are the name and version of the latest Eclipse release. Just go to
http://www.eclipse.org/downloads/
and pick one. Probably the C/C++ is better for you. |
|
Back to top |
|
|
wolftousen
Joined: 28 Jan 2008 Posts: 10
|
Posted: Thu Sep 10, 2009 10:30 am Post subject: |
|
|
That's where i got my version, which is the most recent you can download from them (I just downloaded classic the other day). I looked at the compare versions and there doesn't appear to be anything between c++ and classic version that would change anything (versions are still galileo though) |
|
Back to top |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Tue Sep 15, 2009 1:59 pm Post subject: |
|
|
Sorry, I don't know how to solve your problem. It's an Eclipse issue, so you might have luck asking this in the Eclipse newsgroups. |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Tue Sep 15, 2009 2:22 pm Post subject: |
|
|
Add .flush to newline. I thought newline also flushed. |
|
Back to top |
|
|
|