Skip to content
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

[BUG] 第一次启动后,更新依赖后会导致报错。 #12

Open
tiehu opened this issue Oct 24, 2023 · 1 comment
Open

[BUG] 第一次启动后,更新依赖后会导致报错。 #12

tiehu opened this issue Oct 24, 2023 · 1 comment

Comments

@tiehu
Copy link

tiehu commented Oct 24, 2023

#环境信息#
Koishi Android版本:0.0.12
系统版本:Android 13

#复现方式#
1.安装Koishi Android后正常初始化。
2.进入Console界面
3.在依赖管理中点击右上角火箭图标并更新所有依赖,等待更新完成。
5.检查日志输出,会发现报错。
6.之后每次启动Koishi都会出现相同报错(日志贴在下面)。
PS:已确认该问题可多次稳定复现,清除应用数据后重新重复上面的步骤仍会触发问题。

#相关日志#
2023-10-25 06:46:36 [I] app Koishi/4.15.2
2023-10-25 06:46:36 [I] app apply plugin group:entry
2023-10-25 06:46:36 [I] app apply plugin group:basic
2023-10-25 06:46:36 [I] app apply plugin commands
2023-10-25 06:46:36 [I] app apply plugin help
2023-10-25 06:46:36 [I] app apply plugin locales
2023-10-25 06:46:36 [I] app apply plugin rate-limit
2023-10-25 06:46:36 [I] app apply plugin group:console
2023-10-25 06:46:36 [I] app apply plugin analytics
2023-10-25 06:46:36 [I] app apply plugin config
2023-10-25 06:46:36 [I] app apply plugin console
2023-10-25 06:46:36 [I] app apply plugin dataview
2023-10-25 06:46:36 [I] app apply plugin explorer
2023-10-25 06:46:36 [I] app apply plugin logger
2023-10-25 06:46:36 [I] app apply plugin insight
2023-10-25 06:46:36 [I] app apply plugin market
2023-10-25 06:46:36 [I] app apply plugin sandbox
2023-10-25 06:46:36 [I] app apply plugin status
2023-10-25 06:46:36 [I] app apply plugin theme-vanilla
2023-10-25 06:46:36 [I] app apply plugin group:storage
2023-10-25 06:46:36 [I] app apply plugin database-sqlite
2023-10-25 06:46:36 [I] app apply plugin assets-local
2023-10-25 06:46:36 [I] app apply plugin group:adapter
2023-10-25 06:46:36 [I] app apply plugin gocqhttp
2023-10-25 06:46:37 [I] assets missing config "selfUrl", fallback to "file:" scheme
2023-10-25 06:46:37 [I] app server listening at http://127.0.0.1:5140
2023-10-25 06:46:37 [I] sqlite migrating to data directory
2023-10-25 06:46:37 [I] assets migrating to data directory
2023-10-25 06:46:38 [W] app SystemError [ERR_FS_EISDIR]: Path is a directory: cp returned EISDIR (/home/koishi-app/public is a directory (not copied)) /home/koishi-app/public
at new SystemError (node:internal/errors:234:5)
at new NodeError (node:internal/errors:337:7)
at getStatsForCopy (node:internal/fs/cp/cp:213:11)
at async LocalAssets._start (/home/koishi-app/node_modules/koishi-plugin-assets-local/lib/index.js:47:13)
2023-10-25 06:48:26 [I] app terminated by SIGINT

#预期行为#
更新依赖时不应该报错。

同时:
个人建议1:在下个版本中提高APP中预装的依赖版本,目前预装的基本过时了。
个人建议2:加入一键输出日志文件的功能或允许在程序内复制日志信息,目前获取日志要连控制台或者访问程序data目录下的日志文件,不是很方便。

@shigma
Copy link
Member

shigma commented Oct 25, 2023

感谢反馈。近期应该会更新 KA 的预装版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants