arrow-kt / arrow-kt/arrow-analysis

NoSuchMethod error during compileKotlin

Open
#67 2 comments 4 reactions 0 assignees View on GitHub
bug
Dominant language
Kotlin
Stars
30
Forks
3
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Adding the arrow analysis gradle plugin results in a NoSuchMethodError exception when we try to compile our project

**To Reproduce**
Steps to reproduce the behavior:
1. Add `id("io.arrow-kt.analysis.kotlin") version "2.0.2"` to the gradle plugins section
2. Try to build your project
3. See that the compileKotlin task fails with "java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.ir.util.KotlinLikeDumpOptions.(boolean, boolean, boolean, boolean, org.jetbrains.kotlin.ir.util.LabelPrintingStrategy, org.jetbrains.kotlin.ir.util.FakeOverridesStrategy, boolean, int, kotlin.jvm.internal.DefaultConstructorMarker)'"

**Expected behavior**
Compilation should succeed without exceptions

**Environment (please complete the following information):**
- Kotlin version 1.9.22 (jvm)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the compileKotlin failure with the arrow analysis Gradle plugin version 2.0.2 and Kotlin 1.9.22, using the plugin declaration and steps in the report. Check the plugin and Kotlin compiler compatibility around KotlinLikeDumpOptions; done means the project builds without the NoSuchMethodError.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system, compilers
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.