-
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
无法在 clinit 阶段使用依赖 #1985
Comments
已知有多个插件依赖此库 且其他插件是老版本console的插件 |
编辑 config/console/logger.yml 开启完全日志(all)并提供完整日志 |
|
由于目前的插件系统设计为构造器传递所依赖的插件, 即在 |
我觉得需要支持两种 desc 加载方式,一种是现在的,一种是通过一个文件,如 plugin.yml(实际上现在也是支持的) 可以为 JvmPlugin 增加一个无参数构造器,表示使用 plugin.yml 等来提供依赖信息。那么 JvmPluginLoader 可以在存在 plugin.yml 的情况下分析并在加载 class 前链接依赖。 旧方案将继续支持,IDE 新生成的模板将会使用这种新方案。 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
复现
使用新版的
buildPlugin
在
![image](https://user-images.githubusercontent.com/93422095/164713418-18d13631-c703-4529-b4ff-771ad6275eaa.png)
plugin-libraries
下找到了对应库mirai-core 版本
2.11.0-M2.2
bot-protocol
IPAD
The text was updated successfully, but these errors were encountered: