也许有人对以下问题有所了解(见下文)并有一些解决方法。如果您知道有关以下问题的解决方法或更新,请告诉我。
我已于 2024 年 11 月 13 日安装了最新版本的 IntelliJ,但出现以下错误:
java.lang.IllegalStateException: Check failed.
at org.jetbrains.kotlin.analysis.api.impl.base.lifetime.KaBaseLifetimeTracker.afterLeavingAnalysis(KaBaseLifetimeTracker.kt:27)
at org.jetbrains.kotlin.analysis.api.impl.base.sessions.KaBaseSessionProvider.afterLeavingAnalysis(KaBaseSessionProvider.kt:71)
at org.jetbrains.kotlin.analysis.api.impl.base.sessions.KaBaseSessionProvider.afterLeavingAnalysis(KaBaseSessionProvider.kt:62)
at org.jetbrains.kotlin.idea.debugger.core.KotlinSourcePositionProvider.computeSourcePosition(KotlinSourcePositionProvider.kt:216)
at org.jetbrains.kotlin.idea.debugger.core.KotlinSourcePositionProvider.computeSourcePosition(KotlinSourcePositionProvider.kt:49)
这是我正在使用的IntelliJ版本:
构建#IU-242.23726.103,建于2024年10月23日
这是错误消息的屏幕截图:
我的项目是一个 Gradle 项目,使用 build.gradle.kts 和以下库:
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
application
val springBootVersion = "3.3.5"
id("org.springframework.boot") version springBootVersion // Replace with the latest version
id("io.spring.dependency-management") version "1.1.6" // Replace with the latest version
val kotlinSpringPluginVersion = "2.0.21"
kotlin("jvm") version kotlinSpringPluginVersion // Use the appropriate Kotlin version
kotlin("plugin.spring") version kotlinSpringPluginVersion // Adds support for Spring in Kotlin
id("com.ncorti.ktfmt.gradle") version "0.21.0"
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
mavenLocal()
}
dependencies {
implementation("org.bkwsu.registration:events-web-model:2.0-SNAPSHOT")
implementation("org.postgresql:postgresql:42.7.4")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server")
// https://mvnrepository.com/artifact/com.nimbusds/nimbus-jose-jwt
// implementation("com.nimbusds:nimbus-jose-jwt:9.46")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
// Use the Kotlin JUnit 5 integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
// Use the JUnit 5 integration.
testImplementation(libs.junit.jupiter.engine)
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
// Optional dependencies for testing
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")
// https://mvnrepository.com/artifact/org.assertj/assertj-core
testImplementation("org.assertj:assertj-core:3.26.3")
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testImplementation("org.mockito:mockito-core:5.14.2")
// https://mvnrepository.com/artifact/org.mockito.kotlin/mockito-kotlin
testImplementation("org.mockito.kotlin:mockito-kotlin:5.4.0")
// This dependency is used by the application.
implementation(libs.guava)
}
您可以使用此窗口中的按钮报告这些问题吗? 将会出现问题的 ID,您可以单击其 ID,然后您将看到报告的链接。您能否提供这些报告的几个链接? 谢谢!