Repository navigation
feat(desktop): Core 固定到 Lithe-core-rust#55,调试配置可绑定适配器自有参数和包目录工作目录 - #1975
Merged
Merged
Conversation
This was referenced Nov 15, 2026
xiaoyumuxi
marked this pull request as ready for review
November 15, 2026 10:34
xiaoyumuxi
added a commit
to Lithe-IDEA/lithe-plugin-go
that referenced
this pull request
Nov 15, 2026
1.0.0 预发布已撤回(release 和 tag 已删除),从包含 #10 的 main 重发: - 发布说明的调试功能补充包目录、多模块工作区、子包和没有 go.mod 的目录 - 兼容性和升级说明改为需要固定 Lithe-core-rust#55 的桌面端(1lck/Lithe-IDEA#1975) - release.yml 的预发布说明同步
This was referenced Nov 15, 2026
xiaoyumuxi
added a commit
that referenced
this pull request
Nov 15, 2026
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
go.mod、并排放多个模块时,Go 调试报Failed to launch: Build error”。Issue 草稿等维护者确认后再提交。PR 类型 / Type
改动说明 / What changes
背景 / Why
一个工作区里并排放几个独立的 Go 模块(根目录没有
go.mod)时,调试插件语言文件会失败:go build,报Build error;修复放在共享 Core(Lithe-core-rust#55),具体做法有两点:
targetBindings新增adapterArguments,可以把目标的路径事实填进适配器自己定义的参数,env.<变量>给环境加一个变量;targetBindings.cwd可以绑到target.directory,被调程序在源文件所在目录运行,不再落到调试引擎给缺cwd的 launch 默认的工作区根目录。启动参数由 Core 的
debug.adapters.startArguments填好,宿主代码不需要改。本 PR 只把 Core 固定版本升到 #55,并补宿主侧测试和功能矩阵说明。改动 / Changes
scripts/desktop/build-desktop-core.sh:PINNED_CORE_REVISION从c550c2b(Lithe-core-rust#53)升到268d9a2937a6d49708a05ba36c98562c79e5119c,即 Lithe-core-rust#55 的分支头;workbench.notifications.reduceReadState,桌面端暂未调用);adapterArguments、env.<变量>和cwd←target.directory。desktop/internal/workbench/debug_test.go:扩展TestRunLaunchTargetBindsTheRunsProcessIntoTheLaunch,内联的合成清单增加两个adapterArguments:fixture.programDirectory←target.directory:嵌套参数路径;env.FIXTURE_DIRECTORY←target.directory:往环境加一个变量。断言这两个值都出现在发给适配器的 launch 参数里,原有的
program、cwd、args和env.APP_MODE不受影响。shared/platform-feature-matrix/features/plugin-debug-adapters.json:notes补一句,说明adapterArguments和cwd←target.directory由共享 Core 填好,宿主不需要改动。验证状态不变,仍是pending。不在本 PR 范围内 / Out of scope
PINNED_CORE_REVISION要改成合入后的 main commit,可以在本 PR 合入前改,也可以开跟进 PR。adapterArguments,会拒绝安装,所以插件要等带本 PR 的桌面端版本发布后再发版。.java文件可以由 JDT 打开,但 main 启动的工作目录仍是工作区根。这部分没有在本 PR 处理,需要的话另行跟进。类型专属:feat
多平台对齐
范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/plugin-debug-adapters.json的notes;两端状态如实保持partial/pending./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh(validated 193 platform capabilities);[N/A]verify-platform-feature-matrix-change.sh:没有改平台实现路径.artifacts/下生成的矩阵视图插件归属 / Plugin ownership
develop-lithe第三节的自查命令,结果为空plugin-debug-adapters是宿主通用能力,新增说明不引用插件TestOfficialGoPluginBuildsAndServesAModule)在固定 671cdc6 时通过;cwd落到工作区根目录的问题,于是有了 Core 的cwd←target.directory;UI 验证 / UI evidence
N/A:没有布局、控件、文案或可见交互变化。
统一日志系统 / Structured logging
N/A:没有新增或改动生命周期、终态或失败路径的日志。
界面文案 / i18n
N/A:没有新增用户可见文字。
逻辑归属 / Logic placement
dlvCwd、env.PWD只写在 Go 插件的清单里性能与内存 / Performance and memory
N/A:没有新增后台功能、子进程、缓存或依赖。
设置 / Settings
N/A:没有新增或修改设置。
插件契约 / Plugin contract
debugAdapters0 内的补充)PINNED_CORE_REVISION已升到 268d9a2;桌面端测试经scripts/desktop/desktop-go.sh读到的就是这份契约发行包与资源 / Bundle and resources
N/A:没有新增或修改运行时资源。
无用代码与重构 / Dead code and refactoring
验证 / Verification
cd desktop && ../scripts/desktop/desktop-go.sh test ./internal/workbench/ -run 'Debug|Launch' -count=1(固定 268d9a2)./scripts/desktop/desktop-go.sh test ./...(固定 671cdc6,即加cwd前的 #55)./scripts/platform-feature-matrix/verify-platform-feature-matrix.shdevelop-lithe第三节插件归属自查rgcargo test -p lithe-debug -p lithe-core -p lithe-plugin-model、注释、平台测试、文档链接校验未能执行的检查和原因:
cwd绑定,影响面在这两组测试里。提交前确认 / Final checks
main(7097fdba1)创建,目标分支main