[Interest] Behavior of write() to stdErr in Qt Creator

Bernhard Lindner private at bernhard-lindner.de
Sat Apr 29 11:12:45 CEST 2023


Ok, I see. That is plausible. I will create an issue.

Thanks for your support.

On Fr, 2023-04-28 at 16:21 -0700, Thiago Macieira wrote:
> On Friday, 28 April 2023 01:31:39 PDT Bernhard Lindner wrote:
> > Please note that lines are not interleaved. Still a line feed is added after
> > each write() call when executing the code snippet from a sub thread.
> > 
> > The effect is completely reproducible when starting the debug build from Qt
> > Creator under gdb supervision. However when manually stepping through the
> > code or when running the debug build without debugger the output looks just
> > fine.
> 
> I can reproduce this with the attached test. The problem appears to be that 
> when Qt Creator reads from the pipe, it assumes that whatever it read is a 
> full line after a time out, when it isn't. It doesn't update the previous line 
> when more characters are received.
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

-- 
Best Regards,
Bernhard Lindner


More information about the Interest mailing list