[kdevelop] [Bug 384791] Option for unbuffered output

2020-09-30 Thread Jaka Kranjc
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #11 from Jaka Kranjc --- That could explain it, but: - stdout is supposed to be line-buffered, not fully buffered - why doesn't it behave the same when ran from konsole directly? I can add a setvbuf call that will likely fix it, but I'd lik

[kdevelop] [Bug 384791] Option for unbuffered output

2020-09-30 Thread Milian Wolff
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #10 from Milian Wolff --- Doing that for the python debugger may be OK, but for C/C++ there's no such option. @Jaka Kranjc: Your code in StdioLogger::print is doing: fprintf(stdout, "%s", message); stdout is buffered, this is not KDevelop

[kdevelop] [Bug 384791] Option for unbuffered output

2020-09-30 Thread Gaël de Chalendar
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #9 from Gaël de Chalendar (aka Kleag) --- (In reply to Gaël de Chalendar (aka Kleag) from comment #8) > On my side, the problem appear when running python code. I just noticed that > output of my python script is also buffered when running i

[kdevelop] [Bug 384791] Option for unbuffered output

2020-09-30 Thread Gaël de Chalendar
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #8 from Gaël de Chalendar (aka Kleag) --- On my side, the problem appear when running python code. I just noticed that output of my python script is also buffered when running in a console like that: $ python tracenn.py 2>&1 | tee output.lo

[kdevelop] [Bug 384791] Option for unbuffered output

2020-09-29 Thread Gaël de Chalendar
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #7 from Gaël de Chalendar (aka Kleag) --- I would mark this bug as important instead of normal. It is quite a show stopper for using kdevelop for debugging, dont't you think. Note that I noticed just after submitting #427128 that it does no

[kdevelop] [Bug 384791] Option for unbuffered output

2020-09-29 Thread Francis Herne
https://bugs.kde.org/show_bug.cgi?id=384791 Francis Herne changed: What|Removed |Added CC||kle...@gmail.com --- Comment #6 from Francis He

[kdevelop] [Bug 384791] Option for unbuffered output

2019-10-09 Thread Jaka Kranjc
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #5 from Jaka Kranjc --- Ok, finally took the time to investigate. Our logging does some string construction, but everything ends up being printed by fprintf. It's all in this file: https://github.com/gemrb/gemrb/blob/master/gemrb/core/System

[kdevelop] [Bug 384791] Option for unbuffered output

2017-09-19 Thread Kevin Funk
https://bugs.kde.org/show_bug.cgi?id=384791 Kevin Funk changed: What|Removed |Added Status|UNCONFIRMED |CONFIRMED Ever confirmed|0

[kdevelop] [Bug 384791] Option for unbuffered output

2017-09-18 Thread Jaka Kranjc
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #3 from Jaka Kranjc --- They are newline terminated, but maybe multiline strings (these dumps are long) end up treated differently. I'll take a look. -- You are receiving this mail because: You are watching all bug changes.

[kdevelop] [Bug 384791] Option for unbuffered output

2017-09-18 Thread Kevin Funk
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #2 from Kevin Funk --- @Jaka: Does your program log to stdout without printing a newline? I think if it *does* print a newline, then you shouldn't actually notice the internal buffering -- we're actually processing output at least every 50

[kdevelop] [Bug 384791] Option for unbuffered output

2017-09-18 Thread Kevin Funk
https://bugs.kde.org/show_bug.cgi?id=384791 --- Comment #1 from Kevin Funk --- For the record, relevant code is in kdevelop.git:kdevplatform/outputview/outputmodel.cpp. If you want to investigate the issue yourself, please have a look at further instructions at: https://www.kdevelop.org/contri