【发布时间】:2021-09-14 11:43:04
【问题描述】:
每次我在 IntelliJ 中开始调试时都会收到:
Error occurred during initialization of VM
agent library failed to init: instrument
Failed to find Premain-Class manifest attribute in /Users/me/.m2/repository/org/jetbrains/kotlinx/kotlinx-coroutines-core/1.4.3/kotlinx-coroutines-core-1.4.3.jar
Process finished with exit code 1
我已经
- 重新启动、无效的缓存
- 更新 POM 中的所有依赖项
- 重新下载项目
- 将项目重置为各种旧分支
- 已删除本地 Maven 缓存
只有在我想调试时才会出现。测试、编译、运行,一切正常——只是调试不行。调试在所有其他项目上照常工作。
有人知道到底发生了什么吗?
【问题讨论】:
-
您使用什么 IDE 版本?这个建议有帮助吗:youtrack.jetbrains.com/issue/… ?
-
天哪,非常感谢!我终于可以再次调试了。第一条评论解决了我的问题:
Does it help to "File | Settings | Build, Execution, Deployment | Debugger | Data Views | Kotlin | Disable coroutine agent"? -
请将其作为答案发布,以便我可以给您“正确答案”批次
标签: maven kotlin intellij-idea