Kotlin / Kotlin/kotlin-interactive-shell
Incompatible with Kotlin 2.0
- Dominant language
- Java
- Stars
- 612
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
It seems the ki-shell is incompatible with Kotlin 2.0. We now get the following errors when we try to execute code; more specifically if we call any function (just assigning variables does not seem to trigger it):
```
The root cause java.lang.IllegalStateException was thrown at: org.jetbrains.kotlin.ir.util.SymbolTableSlice$Scoped.noScope(SymbolTableSlice.kt:178) (Line_16.kts): org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during psi2ir
```
I tried manually upgrading the Kotlin version to 2.0 and using the artefact in our project, but that does not help.
Any ideas?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure in ki-shell with Kotlin 2.0, comparing a variable assignment with a function call as described. Inspect the Kotlin version configuration and the reported psi2ir/SymbolTableSlice exception; done means function calls execute successfully without the BackendException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100