I noticed this issue related to the IJ version and...
# spek
a
I noticed this issue related to the IJ version and spec version compatibility on looking through past issues. Still seeing it however after keeping both the IJ and spek version to 2.0.11 java.lang.NoSuchMethodError: org.spekframework.spek2.runtime.execution.DiscoveryRequest.<init>(Lorg/spekframework/spek2/runtime/discovery/DiscoveryContext;Ljava/util/List;)V at org.spekframework.ide.Spek2ConsoleLauncher.run(console.kt:20) at org.spekframework.ide.ConsoleKt$main$1.invoke(console.kt:45) at org.spekframework.ide.ConsoleKt$main$1.invoke(console.kt) at shadow.com.xenomachina.argparser.SystemExitExceptionKt.mainBody(SystemExitException.kt:74) at shadow.com.xenomachina.argparser.SystemExitExceptionKt.mainBody$default(SystemExitException.kt:72) at org.spekframework.ide.ConsoleKt.main(console.kt:43)
my build.gradle.kts looks like so :
Copy code
dependencies {
    implementation("ch.qos.logback:logback-classic:$logback_version")
    implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version")
    implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version")
    implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
    implementation("org.spekframework.spek2:spek-dsl-js:$spek_version")
    testImplementation("org.amshove.kluent:kluent:$kluent_version")
    testImplementation("org.spekframework.spek2:spek-dsl-jvm:$spek_version")
    testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:$spek_version")
    // spek requires kotlin-reflect, can be omitted if already in the classpath
    testRuntimeOnly("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
}

tasks.withType<Test> {
    useJUnitPlatform {
        includeEngines("spek2")
    }
}
spek plugin version : 2.0.11-IJ2020.1
IntelliJ IDEA 2020.1.2 (Ultimate Edition) Build #IU-201.7846.76, built on May 31, 2020 Runtime version: 11.0.7+10-b765.53 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 10.15.3 GC: ParNew, ConcurrentMarkSweep Memory: 1979M Cores: 16 Non-Bundled Plugins: com.github.redfoos.logstash-intellij-plugin, CheckStyle-IDEA, Lombook Plugin, com.godwin.json.parser, net.hexar.json2pojo, org.jetbrains.plugins.hocon, mobi.hsz.idea.gitignore, Pythonid, aws.toolkit, com.kite.intellij, training, org.intellij.scala, com.jetbrains.edu, io.ktor.intellij.plugin, org.spekframework, com.jetbrains.php
@raniejade ^^
nm, the old
spec-dsl-jvm-2.0.0 jar
was still in the cache and causing the issue. the spec framework plugin is working fine after force clean
r
Good to hear that you were able to solve your issue. I’m not really sure why I wasn’t notified about this message earlier.