An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve file system error messaging for kernel exit code 26 https://github.com/siyuan-note/siyuan/issues/19050
Daniel45444f9279f6
diff --git a/app/electron/main.js b/app/electron/main.jsindex 552d166b9b..1a011651b0 100644--- a/app/electron/main.js+++ b/app/electron/main.js@@ -1634,7 +1634,7 @@ const initKernel = (workspace, port, lang, safeMode) => {errorWindowId = showErrorWindow("初始化工作空间失败", "Failed to create workspace directory", "<div>工作空间文件夹权限不足,请查看 工作空间/temp/siyuan.log 获取详细报错信息</div><div>Insufficient permissions for the workspace folder. Please check workspace/temp/siyuan.log for detailed error information.</div>");break;case 26:- errorWindowId = showErrorWindow("已成功避免潜在的数据损坏", "Successfully avoid potential data corruption", "<div>工作空间下的文件正在被第三方软件(比如同步网盘、杀毒软件等)打开占用,继续使用会导致数据损坏,思源内核已经安全退出。</div><div>请将工作空间移动到其他路径后再打开,停止同步盘同步工作空间,并将工作空间加入杀毒软件信任列表。如果以上步骤无法解决问题,请参考<a href=\"https://ld246.com/article/1684586140917\" target=\"_blank\">这里</a>或者<a href=\"https://ld246.com/article/1649901726096\" target=\"_blank\">发帖</a>寻求帮助。</div><div>The files in the workspace are being opened and occupied by third-party software (such as synchronized network disk, antivirus software, etc.), continuing to use it will cause data corruption, and the SiYuan Kernel is already safe shutdown.</div><div>Move the workspace to another path and open it again, stop the network disk to sync the workspace, and add the workspace to the antivirus software trust list. If the above steps do not resolve the issue, please look for help or report bugs <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">here</a>.</div>", "🚒");+ errorWindowId = showErrorWindow("文件系统访问失败", "File system access failed", "<div>思源内核无法访问所需文件,现已安全退出。可能原因包括文件或文件夹权限不足、文件为只读、文件被其他程序占用,以及同步盘或安全软件干预。</div><div>请查看 工作空间/temp/siyuan.log 获取详细错误信息。</div><div>SiYuan Kernel could not access a required file and has exited safely. Possible causes include insufficient permissions, read-only files, another process using a file, or interference from sync or security software.</div><div>Please check workspace/temp/siyuan.log for details.</div>");break;case 0:break;