Bug 15786 – Line buffering not activated for stdout when running D programs under Eclipse

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2016-03-11T12:32:28Z
Last change time
2024-12-01T16:26:16Z
Assigned to
No Owner
Creator
Bruno Medeiros
Moved to GitHub: phobos#9676 →

Comments

Comment #0 by bruno.do.medeiros+deebugz — 2016-03-11T12:32:28Z
When running D programs under the Eclipse terminal, writeln and similar calls ones do not flush the output, because apparently (according to Adam Ruppe) D does not detect the program is connected to an interactive terminal, it thinks it is writing to a normal file. More info here: http://stackoverflow.com/questions/19498040/eclipse-console-writes-output-only-after-the-program-has-finished
Comment #1 by bruno.do.medeiros+deebugz — 2016-03-11T12:33:19Z
*** Issue 13778 has been marked as a duplicate of this issue. ***
Comment #2 by b2.temp — 2016-03-11T15:35:34Z
I'd rather propose to add a new wrapper function because changing the behavior of writeln() would have a negative impact on existing code performances.
Comment #3 by bruno.do.medeiros+deebugz — 2016-03-15T15:57:48Z
(In reply to b2.temp from comment #2) > I'd rather propose to add a new wrapper function because changing the > behavior of writeln() would have a negative impact on existing code > performances. What I'm suggesting now is not that writeln flushes all the time (like you said, that might have some niche performance implications). Rather the idea is to fix the interactive terminal detection, so that the D runtime correctly detects the Eclipse terminal as interactive.
Comment #4 by robert.schadek — 2024-12-01T16:26:16Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9676 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB