Run/debug configuration: Additional logs are not reliably shown
已回答
We went from a pretty old IntelliJ community version 2018.3.1 to one of the latest 2021.2.1.
The behavior of run configuration additional log windows somehow changed or is buggy now. Sometimes the window contains no text although the actual log contains entries. Changing the setting "Skip Content" doesn't change anything.
Any ideas on this? Did something change between those versions in that area? Sometimes it works, sometimes not...

请先登录再写评论。
What is the type of run configuration?
May you share a screenshot of the behavior you are describing?
It's a regular application run configuration (and it was when it was working).
Well, what can I share what could be helpful for you? The window saying "... Errors" is empty although the actual log file contains content. So all I could share is an empty window together with an editor view of a filled log..
It could be important that the log file to watch is actually not part of the IntelliJ project.
So the directory structure is somehow like this:
Can't reproduce that, sorry
May you share a sample project where this could be reproduced? May be related to log writing method, or something else.
The problem is: I cannot reproduce it either, not reliably. If I have the time, I will try to set up a sample project. And if it is reproducible there, I'll file a bug. But something is fishy there... But if you don't see any hint in the code what could be wrong there, I understand that there is no use.
Question: AFAIK, this "log window" is a community feature. Is the source code available? If yes, I could have a look by myself. Maybe I see something where we might not use the feature correctly.
Logging package is community/platform/execution-impl/src/com/intellij/diagnostic/logging
LogConsoleBase/LogConsoleImpl are creating file reader and catches the content changes.
Thanks for pointing me to the right code place!
I've had a look at the implementation. As far as I see it, the functionality does not fit our needs: We want to show the content of a file which is always cleared after program start (and then filled incrementally during program run). This somehow seems to confuse some logic in the current log console implementation.
Our solution is now a custom implementation/sub-class of LogConsoleBase which always reloads the whole file content on each change. This fits better to our needs. The file is always quite small, so a full reload does not harm.
So all is good ;) Thanks for the help! BTW: While browsing/debugging the code, I believe I saw something which looked like a small bug: If the user manually clears the console via context menu, LogConsoleBase.clear() seems not to be called. This might result in LogConsoleBase.myOriginalDocument still containing some content, which might be undesired. But I'm not deep enough into the whole code to judge if this is really a problem ;)
Having exactly the same problem in PyCharm for a long time. New content in a log file, no content in the file's tab in the run/debug window. It's sad that important features have not been working for years in JetBrains' IDEs.
There must be an issue raised on this. If someone from JetBrains could point us to such issue, that would be helpful.
Hi Piotr Dobrogost (softax)
I couldn't find any similar issues in YouTrack. You are welcome to submit a new bug report there providing the following: