iTXTech / mcl-installer

MCL一键安装工具
GNU Affero General Public License v3.0
351 stars 35 forks source link

./mcl-installer 运行报错 panicked at 'called `Option::unwrap()` on a `None` value' #47

Closed ssmzhn closed 2 years ago

ssmzhn commented 2 years ago

使用 cargo build --features rustls --release 构建好 mcl-installer,运行 ./mcl-installer 后报错如下。

iTXTech MCL Installer 1.0.7 [OS: linux]
Licensed under GNU AGPLv3.                                      https://github.com/iTXTech/mcl-installer                                                                                        iTXTech MCL and Java will be downloaded to "/home/namesetter/qqbot/target/release"

Checking existing Java installation.
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment (build 11.0.17+8-post-Ubuntu-1ubuntu222.04)
OpenJDK 64-Bit Server VM (build 11.0.17+8-post-Ubuntu-1ubuntu222.04, mixed mode, sharing)

Would you like to install Java? (Y/N, default: Y) n
iTXTech Mirai Console Loader detected.
Major Version: 2.1.0 Revision: 71ec418

Fetching iTXTech MCL Package Info from https://mirai.mamoe.net/assets/mcl/org/itxtech/mcl/package.json
Mirai Console Loader 公告栏

如果在图片上传的时候遇到问题请与我们联系 (需要提供图片文件源本)
`- 如 Unsupported image type for ExternalResource *
`  considering use gif/png/bmp/jpg format.
`- Tracker: https://github.com/mamoe/mirai/issues/new/choose

常用资源整合
`- https://mirai.mamoe.net/topic/653

MCL 已推出 2.1.0,更好的支持 Mirai 2.11 的插件系统,建议更新。

The latest stable version of iTXTech MCL is 2.1.2
Would you like to download it? (Y/N, default: Y) y
panicked at 'called `Option::unwrap()` on a `None` value', src/main.rs:354:37
cssxsh commented 2 years ago

https://github.com/project-mirai/mirai-repo-mirror/commit/fa1942cdccd49b9729304ff6040da52b1ed74c5d

更新信息不全导致的

cssxsh commented 2 years ago

https://repo1.maven.org/maven2/org/itxtech/mcl/2.1.2/mcl-2.1.2.zip

你可以手动下载解压安装

ssmzhn commented 2 years ago

https://github.com/project-mirai/mirai-repo-mirror/commit/fa1942cdccd49b9729304ff6040da52b1ed74c5d

更新信息不全导致的

好像解决了,谢谢