Repository navigation
fix(java): 按平台引导 JDT LS 与运行 JDK 环境配置 - #32
Closed
lithe-support[bot] wants to merge 2 commits into
Closed
lithe-support[bot] wants to merge 2 commits into
lithe-support[bot] wants to merge 2 commits into
Conversation
Contributor
|
已接手修复提交 修复内容
验证结果
|
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.
问题与结果
Windows 缺少 JDT LS 时,原来的
launch.server_missing提示会让用户执行brew install jdtls;同时,运行 JDK 17 + 要求 Java 25 的 JDT LS 会先被固定的 Java 21 检查拦截,给出不够准确的要求。本 PR 复用现有 JDT LS 发现、bundle 最低 Java 版本读取、目录选择器与独立
jdtls-runtime工具链,完善检测后的恢复步骤。仅修改 Java 插件,不向宿主/Core 增加 Java 特判。改动
plugins/org.eclipse.equinox.launcher_*.jar与config_win/config.ini。验证
环境:Linux x86_64,Rust 1.100.0,Node.js 24.22.1。Rust 工具链从 static.rust-lang.org 获取并按官方 channel manifest 核对 SHA-256。
所有 GitHub 源码(含固定 SDK
65cf82343c5e315aae2e335b2e8f0217b703e89a)均由 Lithe-Support Bot 读取。为避免 Cargo 直接访问 GitHub,本地测试临时把 SDK dependency 指向这份相同修订的本地源码;测试后已还原 Cargo.toml / Cargo.lock,本 PR 不提交此替换。因此这不是原样--lockedGit dependency 集成验证。cargo test -p lithe-java-backend --lib missing_windows_server_has_official_download_and_local_selection_guidancecargo test -p lithe-java-backend --test session launch_reports_the_selected_servers_java_requirement_before_package_checkstimeout 120 cargo test -p lithe-java-backend --lib --test sessionrustfmt --edition 2021 --check backend/src/jdtls.rs backend/src/launch.rs backend/tests/session.rs范围与未完成验证
commandInstallers仅适用于 systemCommand 启动,JDT LS 使用 backend 启动。没有添加未经校验下载、自动执行、解压覆盖或全局环境修改。e2e/host/.../plugin_native_source_test.go和宿主visual_capture_test.go的 vivahead/lithevisual 入口。尝试node scripts/compiler/visual.mjs /workspace/lithe-host,因环境没有 Lithe 宿主检出/构建产物而在前置检查失败(git cannot change to /workspace/lithe-host)。没有生成应用截图,UI 验证未完成;没有上传替代截图。 现有视觉用例也不覆盖此次错误场景。基线:
02f8007e36b70e4e1172c23c175d8d92eeeb0cfe。开放 PR #30/#21 和 Issue #25/#20/#19/#7 无直接重叠。