Repository navigation
fix(java): 接入 Viva 契约并恢复 Maven 运行调试链路 - #8
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 13, 2026 16:46
24 tasks done
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 / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
旧清单、SDK 和协议版本不能被当前 Viva/Core 接受。即使语言服务启动,过早注册的 Run 动作会在 JDT 就绪前查询;编译错误还可能继续运行已有 class。本 PR 恢复现有插件的 Maven/Java 工作流,不在客户端或 Core 加 Java 专属逻辑。
改动 / Changes
65cf82343c5e315aae2e335b2e8f0217b703e89a,同步 Cargo.lock、sdk.lock 与校验脚本。该版本文档写有发布 tag,但远端尚无 tag/资产,因此固定实际 commit,不引用虚构下载物。不在本 PR 范围内 / Out of scope
不发布版本,不改版本元数据,不解决 #7。Windows/Linux、原生窗口、Java EE 容器、所有生成器/行内测试运行器未验收。Java 5/7 原源码级别仍无法完成 Run/Debug:Maven/JDK 8 能编译,但当前 ECJ 最低 source 8;不会通过允许编译失败绕过它。
类型专属:fix
复现与根因
28628cb中的清单/运行路径保留旧客户端协议与“build with errors 可启动”行为。真实 ZIP 安装/调用和修复前失败的编译状态回归用于复现。检查项
backend/src/run.rs:compiler_errors_do_not_launch_previous_bytecode。范围检查 / Scope checks
功能矩阵 / Feature matrix
N/A:本仓库是独立插件;客户端 PR 1lck/Lithe-IDEA#1862 同步 editor actions/providers/run 三项矩阵,未验证平台保持 pending。
统一日志系统 / Structured logging
plugins/io.github.lithe-idea.java-support/host,类别和来源表见 README“日志”。无新目录事件或自由文本日志。run.build_failed、真实 op 身份、高频 collection 成功抑制。界面文案 / i18n
N/A:没有新增用户文案,构建失败使用已有错误文字;只迁移已有字段和声明。
逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
N/A:未新增设置;生成器旧 runtime 引用改为当前 tool 字段,不添加影子配置。
插件契约 / Plugin contract
N/A:消费当前契约,不增加宿主 API、通知或 schema。SDK/契约参考 commit 已固定并记录,不改协议。
发行包与资源 / Bundle and resources
scripts/verify-sdk-lock.sh核对 Cargo/SDK/清单一致,拒绝未知/多余参数。无用代码与重构 / Dead code and refactoring
验证 / Verification
未能执行的检查和原因: 原生窗口与 Windows/Linux 未执行,按用户要求使用无头模式。私有仓库、真实 Java 5/7 VM、Ant 命令、Java EE 容器、全部生成器和行内测试运行器未覆盖。README 中的临时 POM 升级结果不代表原旧项目配置可用。
提交前确认 / Final checks