-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在 idea 直接运行 RunTerminal 时出现大量 NoClassDefError 等错误 #2055
Comments
建议是 用 remote dehug,隔离类环境 |
remote debug 是指丢服务器吗 |
Remote JVM Debug 准备一份 mcl 作为正常运行环境,然后 mcl 启动时添加 java 参数, 8089是端口,你可以改 然后在 idea 里 添加 一个 Remote Debug ,端口是 上面 的 8089, 启动测试, 实际 gradle/maven 的 test 的 环境和 mlc运行环境 还是有不小差异,只能做单元测试 |
我没有过这方面的知识,看起来有点麻烦,我研究一下 😧 |
由于直接在 test 启动和实际运行环境有很大差异, 目前我们有计划提供一种更好的测试环境. 目前最好的方法就是如 cssxsh 所说使用 Remote Debug 代替. 可以使用 |
明白了! 另外我发现换到真实环境后,发现 |
我发现即使通过 shadowLink 把 core 打包进去了也一样会报错 NoSuchMethod, 目前貌似只能通过
|
问题描述
插件依赖了高版本的 Ktor 与 Serialization 后运行 test 会报错:
复现
如问题所述。
mirai-core 版本
2.11.0
bot-protocol
ANDROID_PHONE
其他组件版本
Ktor 版本为 2.0.1
Serialization 为 1.3.3
Kotlin 版本为 1.6.21
系统日志
网络日志
No response
补充信息
除了降级外有什么临时解决这个办法的建议吗?将 test 的 runtime-classpath 替换为 shadowJar 并且 relocate 相关依赖包名是否能解决?
The text was updated successfully, but these errors were encountered: