I've noticed a problem with Kotest run configurati...
# kotest
p
I've noticed a problem with Kotest run configurations in IntelliJ - the VM options does not save when storing as a project file, and it sometimes loses its content. Has anyone else noticed this?
s
You mean if you close / open intellij the vm options on the run configurations disappear
p
Yes closing and opening IntelliJ causes the vm options to disappear, but other fields such as program arguments and package are are ok.
It'll be fixed in 1.1.0
p
Thanks for raising that, I'll add some more info.
s
p
That was quick, I'll give it a try 🙂
That fixed the problem with vm options but I'm getting this error when running tests, which worked ok before installing the plugin from the zip file (I uninstalled the previous version of kotest first)
Copy code
Exception in thread "main" java.lang.NoSuchMethodError: 'void io.kotest.core.engine.KotestEngine.<init>(java.util.List, java.util.List, io.kotest.core.Tags, io.kotest.core.engine.TestEngineListener, java.util.List, int, kotlin.jvm.internal.DefaultConstructorMarker)'
	at io.kotest.launcher.ExecuteTestsKt.executeTests(executeTests.kt:41)
	at io.kotest.launcher.Execute.run(launcher.kt:71)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:154)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:14)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:252)
	at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:249)
	at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:267)
	at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:290)
	at io.kotest.launcher.LauncherKt.main(launcher.kt:14)
s
what version of kotest ?
p
4.1.0
s
Will patch the plugin now. Thanks for the quick feedback
p
👍
s
p
I'm getting a slightly different error with that one:
Copy code
java.lang.NoSuchMethodError: 'java.lang.String io.kotest.core.test.Description.path()'
	at io.kotest.launcher.TestPathTestCaseFilter.filter(TestPathTestCaseFilter.kt:23)
	at io.kotest.core.test.ActiveKt.isActive(active.kt:37)
	at io.kotest.core.runtime.TestExecutor.executeIfActive(TestExecutor.kt:86)
	at io.kotest.core.runtime.TestExecutor.intercept(TestExecutor.kt:75)
	at io.kotest.core.runtime.TestExecutor.execute(TestExecutor.kt:56)
	at io.kotest.core.engine.SingleInstanceSpecRunner.runTest(SingleInstanceSpecRunner.kt:59)
	at io.kotest.core.engine.SingleInstanceSpecRunner$execute$2$invokeSuspend$$inlined$invoke$lambda$1.invokeSuspend(SingleInstanceSpecRunner.kt:69)
	at io.kotest.core.engine.SingleInstanceSpecRunner$execute$2$invokeSuspend$$inlined$invoke$lambda$1.invoke(SingleInstanceSpecRunner.kt)
	at io.kotest.core.engine.SpecRunner$runParallel$$inlined$map$lambda$1$1.invokeSuspend(SpecRunner.kt:51)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:79)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:54)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:36)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at io.kotest.core.engine.SpecRunner$runParallel$$inlined$map$lambda$1.run(SpecRunner.kt:50)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Also this:
Copy code
Exception in thread "main" java.lang.NoSuchMethodError: 'void io.kotest.core.engine.KotestEngine.cleanup()'
	at io.kotest.launcher.ExecuteTestsKt.executeTests(executeTests.kt:52)
	at io.kotest.launcher.Execute.run(launcher.kt:71)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:168)
	at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:16)
	at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:258)
	at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:255)
	at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:273)
	at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:298)
s
is there a full stack trace or just that error ?
p
Yeah will copy the stack trace too
s
The second one I've fixed
I guess the .path() method doesn't exist in kotest 4.1.0
will need 10 minutes to publish another version of something
Appreciate the testing btw, really helpful
p
You're welcome 🙂 I'll go back to the official plugin version for now but I should have time later today to try out any more of your changes.
s
great thanks