Closed aubade closed 9 years ago
I do not have this problem. I have only CDT and DDT installed in Eclipse Kepler SR2.
The 'show on stdout/stderr' option only applies to programs run from launch configurations (Run/Debug). It does not apply to the DUB console (ie, the DUB and compiler processes invoked from a project build). The DUB console is hardcoded to activate the console view only when stderr is written to. An option could be added to configure this behavior, is this what you want?
I think the OP is right and, as a matter of fact, I encountered the same issue. What I find annoying, is that at every save, the dub builds the project (if "Build automatically" is selected), and this writes the output at the console. I think the correspondent CDT option would be: Window->Preferences->Build->Console->Bring console on top when building (if present). And, also, at the same level, Open console when building. I would like to have the same options for DDT's console, that is to disable the focus stealing by the build console.
The workaround that I found, is to minimize the console in its own vie. It still pops-up during the building (just after a Save is triggered), but it will disappear with a click somewhere else.
Wy this is annoying? I use several view in the lower part of Eclipse, for example a Terminal or a Search view. Each time when I save the source file, the Console view pops up and display the messages, thus hiding the current view.
I have no idea if this issue is the same as the OP reported, but it is the most similar that I found. I am on Luna.
I could provide some screen-shots displaying the problem, but I don't know how to attach those here.
The console pops up when there are building errors, which is unfortunately quite frequent because saving a file occurs more often than it is a valid D program.
I think it should be stressed out that I talk about the compile console, not about the running console. And I think the OP has the same in mind. Under Eclipse CDT, there is a menu "Console" under Preferences->C++->Build, and another one under Preferences->Run/Debug. It is the former one that I am concered about (there is no such option under Preferences->DDT).
By the way, should the Option Preferences->DDT be renamed to Preferences->D? (CDT uses C/C++)
And I think your interpretation: " The 'show on stdout/stderr' option only applies to programs run from launch configurations (Run/Debug). It does not apply to the DUB console (ie, the DUB and compiler processes invoked from a project build). The DUB console is hardcoded to activate the console view only when stderr is written to. An option could be added to configure this behavior, is this what you want? " is entirely correct. For me, this is what I would like to have.
I think this could be closed now.
BTW, congratulations, it's always better and better.
DDT seems to forcibly show the console when the compiler is invoked (To the point where it will create a new console view if the current one has been closed) this is very annoying when the 'show on stdout/stderr' are disabled. It notably doesn't do this for actually running the program, however.