Can't diagnose build error, no logs
Answered
I have a dead simple java program and IntelliJ fails to build it. I'm just using IntelliJ's built-in build system. The IDE Messages: Build frame just prints:
Information:2/28/20, 9:36 AM - Build completed with 1 error and 0 warnings in 10 ms
Error:Address already in use
The error makes no sense to me, this is just some plain vanilla pure Java code:
import java.util.Arrays;
public class Test {
static String[] sortTest = new String[] { "x", "x_1", "x_100", "x_2", "x_2000" };
public static void main(String[] args) {
Arrays.sort(sortTest);
System.out.println("Sorted: " + Arrays.toString(sortTest));
}
}
I clicked on show build logs and the directory named build-log doesn't have any files in it that have been touched today. I grepped the entire system/log directory and never found "address already in use".
How can I diagnose this issue. It seems IntelliJ is just throwing logs away.
I quit the IDE and started it again, and the issue persists.


Please sign in to leave a comment.
Please enable debug logging for build.log and share both idea.log and build.log files, see https://intellij-support.jetbrains.com/hc/articles/207241085 .
It looks like some networking issue on your system. IPC between IntelliJ IDEA process and the build process seems to fail. Could be caused by invalid localhost configuration or some local firewall blocking the connection.
Thanks, I have enabled the debug logging and restarted intellij. Now the build works, no idea why. I will keep debug logging enabled and keep an eye out for this error.