A league boss that does not compile shows as "Boss N eliminated: timeout", with no compile error for the author

Hello,

A Java boss with a compile error is reported as a timeout, so the author cannot see what is wrong. Details below.

Environment

  • CodinGame SDK, gameengine 4.7.8
  • Multiplayer contribution, uploaded with the contribution game-build upload, bosses in config/levelN/Boss.java
  • November 2026, IDE preview in Chrome

Steps to reproduce

  1. Put this boss in a league folder, for example config/level2/Boss.java. Note the public class whose name does not match the file name:
import java.util.Scanner;

public class Player {
    public static void main(String[] a) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) {
            in.nextLine(); // read the turn input
            System.out.println("WAIT");
        }
    }
}

(A real boss must read the full turn input before answering. The point here is only that public class Player cannot compile in Boss.java.)

  1. Build the contribution, open the preview in that league and press Play.

What happens

  • IDE console: Game Summary: Boss 2 eliminated: timeout (the same with Boss 3).
  • In the top league the opponent is labelled “Default”, and it shows Default eliminated: timeout.
  • The viewer stays black. No compile output appears anywhere.

Expected
The boss’s compile error is shown to the author, at build time (a failed build) or in the preview console. Here
javac would say: class Player is public, should be declared in a file named Player.java.

Workaround
Declare the class without public:

class Player { public static void main(String[] a) { /* ... */ } }

With only that change, the bosses of leagues 2, 3 and 4 played full games on the next build.

Thanks!