Repository navigation
fix(toolchains): 项目工具链部分发现失败不再静默吞错(#1986) - #2353
Draft
lithe-support[bot] wants to merge 12 commits into
Draft
lithe-support[bot] wants to merge 12 commits into
lithe-support[bot] wants to merge 12 commits into
Conversation
Contributor
Author
|
Lithe Review(最新提交 1764035) 已继续完善 #1986,原 PR 描述“只记日志、未改运行消费者”的段落已经过时:现在用 功能矩阵、格式和 i18n 生成门禁已重新通过,Linux 全量测试仍待最终结果;macOS/Windows 原生测试因 Draft 跳过。本 PR 不应在跨平台验证前合并。 |
24 tasks done
Contributor
Author
|
Lithe Review|#1986 完整实现与回归总结(head
原描述的“第一阶段、没有设置页提示”已过时;本评论一次性更新最新范围与实测结果。 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1986(第一阶段,不关闭 Issue)。
根因
settingsToolchains.loadAt对toolchainManifests返回的“部分有效 manifests + 非空错误”只检查len(manifests)==0,其余错误被忽略;外层Load的失败记录只看返回错误,因此当另一个已启用插件的 manifest 缺失时,项目工具链页看起来加载成功但无法解释有提供者未出现。同一入口的全局视图目前仍拒绝非空错误。修复
loadAt使用已有recordFailure在处理边界发一次toolchain_settings_discovery失败记录。不在每个工具或项目中重复打日志、不把读取失败伪装成无工具。正常用户取消仍按既有边界不记错。限制与后续
当前环境缺 Go 1.27 / 固定 Rust Core,尚未运行真实主仓库工具链回归,需 Draft CI 验证编译、测试与日志字段。本 PR 没有提供设置页显式的遗漏原因 UI,也没有改变运行准备对部分失败的拒绝策略;#1986 的“跨消费者统一处理与用户可见诊断”仍需另一个设计闭环,因此不标记 Closes。此改动不碰 Core 或插件协议,不自动合并。