Open Camotoy opened 1 year ago
Can reproduce the same issue on Windows 11; also with the Geyser project
Sorry for the delay in getting to this! Just on a hunch, can you still reproduce this issue if you change this line to tasks.withType<JavaCompile>().configureEach {
?
i have an unfortunate feeling that this has something to do with eager task realization :(
That indeed solves the issue! For me at least. But that line isn't even needed because Indra enforces that for us right?
As of this commit: https://github.com/GeyserMC/Geyser/commit/a72e49527ddb48885b5bdaf57c766de8070d4c4b, I can verify three different Linux computers read the Geyser project as Java 8. Gradle still correctly compiles to Java 16.
Reproduced on IntelliJ versions 2021/2022/2023.
To reproduce should be as simple as cloning the Geyser repository, finding a record class, and noting how IntelliJ doesn't process the class correctly.
Here's the output of
uname -a
on my current computer:Linux HOSTNAME 6.2.6-76060206-generic #202303130630~1679424972~22.04~4a8cde1 SMP PREEMPT_DYNAMIC Tue M x86_64 x86_64 x86_64 GNU/Linux
Andcat /etc/os-release
:IntelliJ: