Kotlin / Kotlin/Storytale

Error compiling stories on a Kotlin 2.2.21 project

Open
#103 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
686
Forks
21
PR merge metrics
No merged PRs in 30d

Description

On an attempt to use the plugin on a more recent project I came across an error suggesting a version mismatch between the plugin and the project's Kotlin version, currently set to `2.2.21`.

I created a simple reproducible on [this repo](https://github.com/eduardo-gualberto/storytalerepro), it is the template project from IntelliJ IDEA's project wizard, set to use Java 21 for the targets of Desktop, iOS and Android.

The error is described as bellow and occurs when running `./gradlew compileStoriesKotlinJvm`

```
Unable to find method ''void org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments.setJvmDefaultStable(java.lang.String)''
'void org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments.setJvmDefaultStable(java.lang.String)'

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked reproducible project and run ./gradlew compileStoriesKotlinJvm to reproduce the compiler-method error. Trace the plugin's interaction with the Kotlin compiler using the reported Kotlin 2.2.21 project; done means the command compiles successfully without the setJvmDefaultStable version-mismatch failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.