IDEA consoles swallowing newlines

已回答

Since IDEA 2018 I regularily have the problem that the consoles (run/debug) tend to swallow newlines.

e.g.

public class Hello {
public static void main(String[] args) {
System.out.println("foo");
System.out.println("bar");
}
}

results in

foobar

in the console.

This does not happen consistently, mixed output from stdout and stderr seems to promote the effect (note that the newlines are completely missing, they won't be added later). At first, I only had it when running Spock tests, now I have this effect about everywhere. Since no bug has been filed yet, I suppose I'm missing some option or something, because this is quite annoying.

Any ideas?

0

stderr/stdout not synchronized is a known issue, it should not happen with just stdout.

https://youtrack.jetbrains.com/issue/IDEA-70016

0

Thanks, but this is different. It's really like the example above, several consecutive calls to System.out.println() print a single line to the console, no newlines whatsoever (not even later, just none).

0

Please file a new bug at https://youtrack.jetbrains.com/issues/IDEA with the sample project to reproduce and the video of the problem.

0

请先登录再写评论。