debugging IntelliJ调试器找不到局部变量“FileNotFoundException762_DebugLabel”,发生了什么?

6qftjkof  于 2023-04-21  发布在  其他
关注(0)|答案(1)|浏览(202)

每当我使用远程调试器中的内置版本在IntelliJ中调试单元测试时,我都会得到以下错误:

Cannot find local variable 'FileNotFoundException762_DebugLabel'
url= file:/Users/rutgerterheide/.gradle/caches/modules-2/files-2.1/com.sun.xml.bind/jaxb-core/2.3.0/d044c784e41d026778693fb44a8026c1fd9a7506/jaxb-api.jar

我不知道发生了什么,为什么IntelliJ一直给我这个错误。有没有人知道是什么导致了这个错误,以及如何修复它?
当我在Finder中查找路径时,我确实可以看到没有jaxb-api.jar。现在我可以手动添加它,但这是缓存数据,所以这没有意义。我尝试删除/Users/rutgerterheide/.gradle/caches文件夹中的所有内容并重建,但它不起作用。我也尝试在IntelliJ的项目结构中切换到JDK 1.8,但结果相同。
我使用Gradle 6.8OpenJDK 11。项目在Spring Boot中,我正在运行MacOS 13.3.1 (22E261)。我的build.gradle包含以下可能相关的代码(它们已安装):

configurations {
    saxon

    compile.exclude group: 'stax', module: 'stax-api'
    compile.exclude group: 'com.sun.xml.bind', module: 'jaxb-impl'

}

dependencies {

    implementation "javax.xml.bind:jaxb-api:2.3.0"
    implementation "com.sun.xml.bind:jaxb-core:2.3.0"
    implementation "com.sun.xml.bind:jaxb-impl:2.3.0"
    implementation "com.sun.xml.ws:jaxws-ri:2.3.3"

}

这是我的IntelliJ版本信息:

IntelliJ IDEA 2023.1 (Ultimate Edition)
Build #IU-231.8109.175, built on March 28, 2023
Runtime version: 17.0.6+10-b829.5 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 10
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
editor.minimap.enabled=true

Non-Bundled Plugins:
com.jetbrains.jax.ws (231.8109.90)
com.intellij.bigdatatools (231.8109.175)
aws.toolkit (1.64-231)

Kotlin: 231-1.8.20-IJ8109.175

我只是不希望它像往常一样失败并调试测试。

v7pvogib

v7pvogib1#

我在本地删除了我的项目,并从Git再次克隆了它。加载它后,IntelliJ调试器再次工作。

相关问题