Repository navigation
test(maven): Spring Boot 调试端到端测试,文档标明调试可用 - #29
Merged
Merged
Conversation
- 新增宿主端到端测试 TestOfficialMavenPluginDebugsASpringBootApplication:和 Java Support 一起安装,断点命中、继续后请求完成、停止后服务结束;登记进 lithe-host.json,宿主固定到 合入 1lck/Lithe-IDEA#2113 的 1ce4085e7。 - installOfficialPluginArchive 像 app.go 一样给插件服务接上 LogDirectory,语言服务器的 ${logDir} 才有值。 - README 和功能矩阵:调试已可用,记录验证结果。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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
Refs 1lck/Lithe-IDEA#2107(Spring Boot 运行配置可直接点调试)。宿主配套 1lck/Lithe-IDEA#2113(已合入
1ce4085e7):服务运行按debug.configurationType选出其他插件的调试适配器,分配端口、请求本插件准备挂起的服务后连接;同时修好真实端到端测试暴露的 3 个宿主缺陷。PR 类型 / Type
改动说明 / What changes
e2e/host/desktop/internal/workbench/official_maven_plugin_debug_e2e_test.go,测试TestOfficialMavenPluginDebugsASpringBootApplication:ShopApplication可调试;ShopApplication.java设断点,从标题栏点调试;java适配器连上;GET /hello停在断点,栈顶是断点所在行,且请求在断点处阻塞;Hello, Lithe from eu-west;official_maven_plugin_e2e_test.go的installOfficialPluginArchive:照app.go给自己打开的插件服务接上LogDirectory。Java Support 的语言服务器启动参数用到${logDir},没有日志目录时 Core 拒绝启动(The launch request has no usable logDirectory.)。测试里用pluginFilesLog提供目录。e2e/host/lithe-host.json:1ce4085e7(合入 #2113 的 main);DebugsASpringBootApplication;LITHE_TEST_JAVA_PLUGIN_ARCHIVE的说明补上“它的 java 适配器负责调试”。README.md、docs/feature-matrix.md:去掉“调试待宿主支持”;maven-run-applications写明调试可用,并记录这次的验证结果,以及宿主修好的 3 个问题。验证 / Verification
official_maven_plugin_*_test.go复制进宿主 #2113 分支,用LITHE_TEST_MAVEN_PLUGIN_ARCHIVE=dist/maven-build-1.0.0-darwin.zip、LITHE_TEST_JAVA_PLUGIN_ARCHIVE=Lithe-Java-Support-4.0.1-darwin-arm64.zip运行scripts/desktop/desktop-go.sh test ./internal/workbench/ -run '^TestOfficialMavenPlugin' -count=1DebugsASpringBootApplicationPASS(17.4s)、BuildsAReactorPASS(48.9s)、RunsASpringBootApplicationPASS(6.9s)lsp.request: The language server did not advertise this capability. (not_supported)(#2113 修的宿主问题)未能执行的检查: 没有用
node scripts/e2e-host.mjs从固定修订重新检出宿主并编译 Core 再跑一遍。上面的测试是在 #2113 分支上跑的,它和固定修订只差 main 上两个与运行和调试无关的提交(#2110、#2111)。Windows 没有运行。🤖 Generated with Claude Code