I am running into something that I have never see ...
# intellij
d
I am running into something that I have never see before. Maybe someone on this channel has an idea what could be going on?
Copy code
text
FAILURE: Build failed with an exception.
* Where:
Initialization script 'C:\Users\local_myuser\Temp\ijJvmDebugger1.gradle' line: 19
* What went wrong:
Execution failed for task ':someproject:test'.
> 'void org.gradle.api.tasks.testing.Test.setForkEvery(long)'
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
I am trying to debug a JUnit 4 test with IntelliJ. Execution is handled by Gradle.
The cause seems to be:
Copy code
Caused by: java.lang.NoSuchMethodError: 'void org.gradle.api.tasks.testing.Test.setForkEvery(long)'
	at com.intellij.gradle.toolingExtension.impl.initScript.util.GradleJvmForkedDebuggerHelper.setupDebugger(GradleJvmForkedDebuggerHelper.java:29)
	at com.intellij.gradle.toolingExtension.impl.initScript.util.GradleJvmForkedDebuggerHelper$setupDebugger$0.call(Unknown Source)
	at ijJvmDebugger1_9orzu1mv81owfb5i0y3ukpl5n$_run_closure1$_closure2$_closure3.doCall(C:\Users\local_myuser\Temp\ijJvmDebugger1.gradle:19)
h
What Gradle version do you use?
The method IntelliJ tries to execute was added in Gradle 8.1
d
LOL
This is fun
Someone snuck in a change that switched Gradle to version 7.5.1
Thanks for the tip!
h
Anyway, it’s a bug at IntelliJ too because they do want to support Gradle 4.5+ 😅
d
Good to know. I'll file an issue for that.
113 Views