https://kotlinlang.org logo
Title
p

phil-t

07/27/2020, 9:08 AM
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

sam

07/27/2020, 10:44 AM
You mean if you close / open intellij the vm options on the run configurations disappear
p

phil-t

07/27/2020, 10:49 AM
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

phil-t

07/27/2020, 10:52 AM
Thanks for raising that, I'll add some more info.
s

sam

07/27/2020, 11:09 AM
p

phil-t

07/27/2020, 12:00 PM
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)
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

sam

07/27/2020, 12:24 PM
what version of kotest ?
p

phil-t

07/27/2020, 12:31 PM
4.1.0
s

sam

07/27/2020, 12:32 PM
Will patch the plugin now. Thanks for the quick feedback
p

phil-t

07/27/2020, 12:34 PM
👍
s

sam

07/27/2020, 12:35 PM
p

phil-t

07/27/2020, 12:40 PM
I'm getting a slightly different error with that one:
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:
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

sam

07/27/2020, 12:40 PM
is there a full stack trace or just that error ?
p

phil-t

07/27/2020, 12:41 PM
Yeah will copy the stack trace too
s

sam

07/27/2020, 12:42 PM
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

phil-t

07/27/2020, 12:46 PM
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

sam

07/27/2020, 12:47 PM
great thanks