Repository navigation
feat(java): prepare and reuse JDT LS with a private JDK 25 - #34
Merged
Merged
Conversation
32 of 36 tasks
Lithe-core-rust#96 merged as 7f1fc4b; the three schema digests are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1lck
marked this pull request as ready for review
November 18, 2026 11:33
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
Refs 1lck/Lithe-IDEA#2057
Refs 1lck/Lithe-IDEA#2151
配套 Core:Lithe-IDEA/Lithe-core-rust#96
改动说明
首次安装或更新前,由宿主调用 Java 插件的资格检查;分别复用合格的完整 JDK 25 与固定 JDT LS,仅下载缺失项。依赖缓存独立于插件版本,项目编译 JDK 保持自己的选择。
managedRuntimes: 0、runtimes.install和java.resolveRuntimes。jdtls-runtime。7f1fc4b(Core #96 合入提交,三份 schema 摘要与原2dbc177相同)的三份 schema 及 SHA;保留现有 SDK pin,已有 CI/Release 脚本继续验证新声明。没有 workflow 改动。Refs #2151 仅关联“已有安装识别与不兼容诊断”,未宣称完成其所有候选来源展示需求。通用 package-manager 安装器及所有后端最低版本声明也不在本 PR 范围。
Lithe Review
结论:未发现需要阻塞合并的问题。
独立复核已修复自动发现 JDK 抢占已有受管候选的优先级错误并补充回归;核对了显式配置失败、完整指纹、只读启动、项目 Java 隔离和发布验证链。
验证
宿主集成使用已从官方获取并校验的完整归档,仅替换 HTTP transport:
最终 smoke 的两次完整 JDT 指纹校验为 62.1 / 58.1 ms,仅为本机热缓存观测。复现脚本、输入锁及限制见 docs/managed-runtimes.md。
限制与发布
实际机器验证为 Linux x64;其余平台已核对官方归档/校验值/布局并有原生文件头单测,尚未完成 macOS/Windows 原生工作流验收。Windows ARM64 runtime 条目不代表新增 ARM64 host 或插件发行包。
按仓库流程提交 Draft。需先合入 Core 和声明 managedRuntimes 能力的宿主,再发布本插件;本次没有发布 Release 或修改 Store。
合入前复验(2026-11-18)
7f1fc4b)和宿主 feat(plugins): prepare and reuse managed runtimes before installation 1lck/Lithe-IDEA#2160 已合入。contract.lock.json改为 Core main 上的7f1fc4b,原来的2dbc177不在 main 上;scripts/verify-sdk-lock.sh --download通过。cargo test --workspace --locked443 项通过;Linux CI 全绿。