FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Console Out delayed until Console in completed...

 
Post new topic   Reply to topic     Forum Index -> Descent
View previous topic :: View next topic  
Author Message
wolftousen



Joined: 28 Jan 2008
Posts: 10

PostPosted: Wed Sep 09, 2009 12:17 am    Post subject: Console Out delayed until Console in completed... Reply with quote

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
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Wed Sep 09, 2009 3:14 pm    Post subject: Reply with quote

Hi wolftousen,

Which Eclipse version are you using? With 3.5 ganimede it doesn't happen to me anymore.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
wolftousen



Joined: 28 Jan 2008
Posts: 10

PostPosted: Wed Sep 09, 2009 11:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Thu Sep 10, 2009 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
wolftousen



Joined: 28 Jan 2008
Posts: 10

PostPosted: Thu Sep 10, 2009 10:30 am    Post subject: Reply with quote

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
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Tue Sep 15, 2009 1:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Tue Sep 15, 2009 2:22 pm    Post subject: Reply with quote

Add .flush to newline. I thought newline also flushed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Descent All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group