Repository navigation
fix(java): 汇总触发文件扫描的非预期读取降级诊断 - #43
Merged
Merged
Conversation
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.
关联 Issue
改动与根因
backend/src/launch.rs::trigger_files之前对read_dir打开错误、迭代Err、file_type读取错误分别静默continue/filter_map(Result::ok)。正常的目录消失和权限或 I/O 降级无法区分,JDT LS 启动后没有可定位的降级统计。NotFound无告警,其他读失败只累计失败项数,部分成功文件仍返回。java.resolveLaunch诊断边界先检查取消再一次性发送launch.trigger_scan_unreadable和数量,不记录路径、内容、错误字串、用户环境;失败不阻断 JDT LS 启动。trigger_filesAPI 与其文档注释,并扩充LAUNCH_CATEGORIES与 Java 插件 README 诊断表。新增回归
NotFound缺失不产生降级;权限拒绝恰好一次。#[cfg(unix)]真实符号链接测试,确认不跟随文件和目录符号链接且不误计为不可读。验证与局限
已在本地 macOS(arm64)复核并运行 CI 等价检查(对应 HEAD
d99f96e36927203ff91c2418baa8eda8585b0d3a):cargo fmt --all --check:通过cargo clippy --workspace --all-targets --locked -- -D warnings:通过cargo test --workspace --locked:467 个测试全部通过(lithe-java-backend单元测试 169、repository_pins10、session4、lithe-java-domain单元测试 284)node --test --test-timeout=60000 scripts/package/*.test.mjs:11/11 通过node --test --test-timeout=15000 scripts/compiler/process.test.mjs:2/2 通过scripts/verify-sdk-lock.sh --download:通过(Verified manifest and 1 translations against Core 0b6da2725ded74de7c3b62b49d12c1947dc0a38a)lithe/log通道)和 Windows/Linux 目标留待 CI 或宿主集成验收。范围
只修改 Java 插件自己的 launch 模块与 README。无宿主、Core、SDK 契约或额外运行时依赖变更。不提交构建产物、用户数据或日志。