We might be using semantic model diagnostics instead of the Compilations, which contains global diags too. Check this.