From 53e080cf51fd031542015bf331ed409696aa7cb0 Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Sun, 15 Nov 2026 10:30:59 -0800 Subject: [PATCH 1/4] release: prepare Lithe Desktop 0.8.0 stable --- .github/workflows/desktop-ci.yml | 36 ++++++--- desktop/viva.toml | 2 +- docs/releases/v0.7.0.md | 4 +- docs/releases/v0.8.0.md | 133 +++++++++++++++++++++++++++++++ 4 files changed, 162 insertions(+), 13 deletions(-) create mode 100644 docs/releases/v0.8.0.md diff --git a/.github/workflows/desktop-ci.yml b/.github/workflows/desktop-ci.yml index ca60a7b80e..d1ea0eb686 100644 --- a/.github/workflows/desktop-ci.yml +++ b/.github/workflows/desktop-ci.yml @@ -165,12 +165,12 @@ jobs: - name: Vet and test run: ./scripts/desktop/check.sh - - name: Upload native cache regression report + - name: Upload native verification reports if: always() uses: actions/upload-artifact@v7 with: name: core-cache-${{ runner.os }}-${{ runner.arch }} - path: .artifacts/test-stability/core-cache.junit.xml + path: .artifacts/test-stability/ if-no-files-found: warn retention-days: 14 @@ -221,23 +221,31 @@ jobs: - name: Capture native settings and diagnostic screenshots env: LITHE_VISUAL_OUTPUT_DIR: ${{ github.workspace }}/.artifacts/native-settings-visual - run: ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s + run: | + ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s + for language in en zh-Hans; do + LITHE_VISUAL_LANGUAGE="$language" LITHE_VISUAL_OUTPUT_DIR="$LITHE_VISUAL_OUTPUT_DIR/$language" \ + node .agents/skills/write-stable-tests/scripts/run-go-tests-with-timing.mjs \ + --report ".artifacts/test-stability/global-sdk-$language.json" --suite-timeout-ms 240000 -- \ + ./scripts/desktop/desktop-go.sh test -json -tags 'vivahead lithevisual' ./internal/settingswindow \ + -run '^TestVisualSettings$/33-settings-toolchains' -count=1 -timeout=120s + done - name: Upload native settings visual evidence if: always() uses: actions/upload-artifact@v7 with: name: native-settings-visual-${{ runner.os }}-${{ runner.arch }} - path: .artifacts/native-settings-visual/*.png + path: .artifacts/native-settings-visual/**/*.png if-no-files-found: error retention-days: 14 - - name: Upload native cache regression report + - name: Upload native verification reports if: always() uses: actions/upload-artifact@v7 with: name: core-cache-${{ runner.os }}-${{ runner.arch }} - path: .artifacts/test-stability/core-cache.junit.xml + path: .artifacts/test-stability/ if-no-files-found: warn retention-days: 14 @@ -305,23 +313,31 @@ jobs: - name: Capture native settings and diagnostic screenshots env: LITHE_VISUAL_OUTPUT_DIR: ${{ github.workspace }}/.artifacts/native-settings-visual - run: ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s + run: | + ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s + for language in en zh-Hans; do + LITHE_VISUAL_LANGUAGE="$language" LITHE_VISUAL_OUTPUT_DIR="$LITHE_VISUAL_OUTPUT_DIR/$language" \ + node .agents/skills/write-stable-tests/scripts/run-go-tests-with-timing.mjs \ + --report ".artifacts/test-stability/global-sdk-$language.json" --suite-timeout-ms 240000 -- \ + ./scripts/desktop/desktop-go.sh test -json -tags 'vivahead lithevisual' ./internal/settingswindow \ + -run '^TestVisualSettings$/33-settings-toolchains' -count=1 -timeout=120s + done - name: Upload native settings visual evidence if: always() uses: actions/upload-artifact@v7 with: name: native-settings-visual-${{ runner.os }}-${{ runner.arch }} - path: .artifacts/native-settings-visual/*.png + path: .artifacts/native-settings-visual/**/*.png if-no-files-found: error retention-days: 14 - - name: Upload native cache regression report + - name: Upload native verification reports if: always() uses: actions/upload-artifact@v7 with: name: core-cache-${{ runner.os }}-${{ runner.arch }} - path: .artifacts/test-stability/core-cache.junit.xml + path: .artifacts/test-stability/ if-no-files-found: warn retention-days: 14 diff --git a/desktop/viva.toml b/desktop/viva.toml index 665ba108f4..a531cdce0a 100644 --- a/desktop/viva.toml +++ b/desktop/viva.toml @@ -9,7 +9,7 @@ name = "Lithe Desktop" # A separate identity from the SwiftUI client (app.lithe.desktop), so both can be installed # while this client grows. id = "app.lithe.viva" -version = "0.7.0" +version = "0.8.0" executable = "lithe" package = "./cmd/lithe" # The full-bleed square of the SwiftUI client's icon; viva package shapes it into the macOS tile. diff --git a/docs/releases/v0.7.0.md b/docs/releases/v0.7.0.md index 24791c0352..2571819608 100644 --- a/docs/releases/v0.7.0.md +++ b/docs/releases/v0.7.0.md @@ -50,7 +50,7 @@ Lithe 0.7.0 带来全新的跨平台桌面客户端,将编辑、Git、插件 - Windows:运行 x64 安装程序,或将 ZIP 解压到独立目录后运行 `lithe.exe`。 - Linux:优先使用对应架构的 DEB/RPM,让包管理器安装声明的依赖;tar.gz 用户需要自行满足运行库要求。 - 从 0.6.x 迁移:先保留旧版和数据备份,在新客户端打开项目、重新核对设置并安装兼容插件;不承诺完整自动迁移或旧插件直接兼容。 -- 本次使用独立的 `desktop-v0.7.0` 发布标签;为保护旧客户端的更新渠道,GitHub 仍标为 prerelease,程序内显示 `0.7.0`。当前发布流程没有配置签名更新源,请手动下载安装。 +- 本次使用独立的 `desktop-v0.7.0` 正式发布标签,程序内显示 `0.7.0`;旧客户端的 latest 更新入口保持不变。当前发布流程没有配置签名更新源,请手动下载安装。 ### 兼容性与已知问题 @@ -117,7 +117,7 @@ This release focuses on the new desktop client and its workflows; plugins provid - Windows: run the x64 installer, or extract the ZIP into its own directory and run `lithe.exe`. - Linux: prefer the DEB/RPM for your processor so the package manager installs declared dependencies; tar.gz users must provide runtime libraries themselves. - Migrating from 0.6.x: retain the older client and a data backup, open projects in the new client, review settings and install compatible plugins; complete automatic migration and old-plugin compatibility are not promised. -- This release uses the separate `desktop-v0.7.0` tag; GitHub retains its prerelease flag to protect the older clients' update channel, while the app displays `0.7.0`. The current publishing workflow does not configure a signed update feed; download and install manually. +- This stable release uses the separate `desktop-v0.7.0` tag and displays `0.7.0` in the app; the older clients' latest update entry stays unchanged. The current publishing workflow does not configure a signed update feed; download and install manually. ### Compatibility and known issues diff --git a/docs/releases/v0.8.0.md b/docs/releases/v0.8.0.md new file mode 100644 index 0000000000..bfa05372ec --- /dev/null +++ b/docs/releases/v0.8.0.md @@ -0,0 +1,133 @@ +## 中文 + +Lithe Desktop 0.8.0 新增全局 JDK 管理、项目与模块编译设置,并改善诊断波浪线和终端操作。本版为正式版本。 + +### 下载 + +- [项目主页](https://github.com/1lck/Lithe-IDEA) +- [全部下载文件与 SHA-256 校验文件](https://github.com/1lck/Lithe-IDEA/releases/tag/desktop-v0.8.0) + +| 系统与芯片 | 下载格式 | +| --- | --- | +| macOS Apple Silicon | [DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-darwin-arm64.dmg) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-darwin-arm64.zip) | +| macOS Intel | [DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-darwin-amd64.dmg) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-darwin-amd64.zip) | +| Windows x64 | [安装程序](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-windows-amd64-setup.exe) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-windows-amd64.zip) | +| Linux x64 | [DEB](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe_0.8.0_amd64.deb) · [RPM](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-1.x86_64.rpm) · [tar.gz](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-linux-amd64.tar.gz) | +| Linux ARM64 | [DEB](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe_0.8.0_arm64.deb) · [RPM](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-1.aarch64.rpm) · [tar.gz](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-linux-arm64.tar.gz) | + +### 重点更新 + +本次重点是 Java 项目配置,以及编辑器和终端中的日常操作。 + +#### ✨ 新功能 + +- 无需打开项目,即可自动识别 JDK、手动添加多个版本并选择全局默认版本。 +- 项目可单独覆盖全局 JDK,新启动的构建、运行和语言服务使用同一解析结果。 +- 配合新版 Java Support、Maven 或 Gradle 插件,设置项目默认及各模块的目标字节码。 +- 在配套插件的本地依赖设置中引用 JAR,支持普通 Java、Eclipse、Maven 和 Gradle 项目。 + +#### ⚡ 改进 + +- 编译设置显示真实配置来源和继承值,保存时检查外部改动,避免覆盖较新的配置。 +- 终端持续输出时保留选区,滚动丢弃旧行后保留仍存在的选中内容。 +- Windows 可识别通过 Microsoft Store 安装的 PowerShell 7。 + +#### 🛠 修复 + +- 诊断波浪线更细,并正确对齐 Tab、中文和表情后的字符。 +- Windows 终端可用 Ctrl+C 中断程序,清除 PowerShell 后正确重绘提示符。 +- 自动选择工具链时显示实际生效版本,避免把已有 JDK 显示为未找到安装。 + +### 升级说明 + +- macOS:选择对应芯片的 DMG,将 `Lithe Desktop.app` 拖入“应用程序”。 +- Homebrew:当前 `lithe` 配方仍指向旧客户端 0.6.7;安装本版请使用上述 DMG。 +- Windows:运行 x64 安装程序,或将 ZIP 解压到独立目录后运行 `lithe.exe`。 +- Linux:使用对应架构的 DEB/RPM;tar.gz 用户需要自行满足运行库要求。 +- 先升级桌面端,再按项目需要更新 Java Support 2.0.0、Maven 1.0.0 或 Gradle 2.0.0;旧桌面端可继续使用原有兼容插件版本。 +- 在“设置 → 构建、执行、部署”管理全局 JDK;编译器子页设置字节码,本地 JAR 入口位于对应插件设置中。 +- 修改 JDK 后,重启已有语言服务及运行或调试会话;当前没有配置签名更新源,请手动下载安装。 + +### 兼容性与已知问题 + +- macOS 最低为 13.0,分别提供 Apple Silicon 和 Intel 包;Windows 桌面端提供 x64 包。 +- Linux 提供 x64 和 ARM64 包,需要兼容的运行库和图形环境,未验证所有发行版。 +- 配套插件单独安装;更新 Maven 插件后可在 Windows 安装使用,新版编译和 JAR 设置需要本版桌面端。 +- 新客户端的功能迁移仍在进行,组件与无头验证不代表旧版功能已全部对齐。 +- macOS 使用临时签名且未公证,Windows 安装包没有发行者签名,系统可能显示安全提示。 + +如果 macOS 提示无法打开 `Lithe Desktop.app`,请在“应用程序”中按住 Control 点按应用并选择“打开”;如果仍被阻止,可执行 `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"`。旧版 `Lithe.app` 对应命令是 `xattr -dr com.apple.quarantine /Applications/Lithe.app`。仅对可信来源的应用使用。 + +[查看完整变更](https://github.com/1lck/Lithe-IDEA/compare/desktop-v0.7.0...desktop-v0.8.0) + +--- + +## English + +Lithe Desktop 0.8.0 adds global JDK management, project and module compiler settings, and improves diagnostic underlines and terminal operations. This is a stable release. + +### Downloads + +- [Project homepage](https://github.com/1lck/Lithe-IDEA) +- [All downloads and SHA-256 checksums](https://github.com/1lck/Lithe-IDEA/releases/tag/desktop-v0.8.0) + +| System and processor | Formats | +| --- | --- | +| macOS Apple Silicon | [DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-darwin-arm64.dmg) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-darwin-arm64.zip) | +| macOS Intel | [DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-darwin-amd64.dmg) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-darwin-amd64.zip) | +| Windows x64 | [Installer](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-windows-amd64-setup.exe) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-windows-amd64.zip) | +| Linux x64 | [DEB](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe_0.8.0_amd64.deb) · [RPM](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-1.x86_64.rpm) · [tar.gz](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-linux-amd64.tar.gz) | +| Linux ARM64 | [DEB](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe_0.8.0_arm64.deb) · [RPM](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-1.aarch64.rpm) · [tar.gz](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.0/lithe-0.8.0-linux-arm64.tar.gz) | + +### Highlights + +This release focuses on Java project configuration and everyday editor and terminal operations. + +#### ✨ New features + +- Detect JDKs, add multiple versions manually and choose a global default without opening a project. +- Override the global JDK per project; new builds, runs and language services share the same resolution. +- Set project defaults and per-module bytecode targets with the updated Java Support, Maven or Gradle plugin. +- Reference local JARs through plugin settings for plain Java, Eclipse, Maven and Gradle projects. + +#### ⚡ Improvements + +- Compiler settings show their real sources and inherited values, checking external changes before saving. +- Terminal output preserves selections, retaining selected content that remains after older lines scroll out of the buffer. +- Windows detects PowerShell 7 installed through Microsoft Store. + +#### 🛠 Fixes + +- Thinner diagnostic waves align correctly with characters after tabs, Chinese text and emoji. +- Ctrl+C interrupts programs in Windows terminals, and clearing PowerShell redraws its prompt correctly. +- Automatic toolchain selection shows the effective version instead of reporting an existing JDK as missing. + +### Upgrade instructions + +- macOS: open the DMG for your processor and drag `Lithe Desktop.app` to Applications. +- Homebrew: the `lithe` cask still targets the older 0.6.7 client; use the DMG above for this release. +- Windows: run the x64 installer, or extract the ZIP into its own directory and run `lithe.exe`. +- Linux: use the DEB/RPM for your architecture; tar.gz users must provide the required runtime libraries. +- Upgrade the desktop first, then update Java Support to 2.0.0, Maven to 1.0.0 or Gradle to 2.0.0 as needed; older hosts retain compatible plugin versions. +- Manage global JDKs in Settings → Build, Execution, Deployment; compiler subpages set bytecode, and each plugin provides its local JAR settings. +- Restart existing language services and run or debug sessions after changing JDKs; no signed update feed is configured, so install manually. + +### Compatibility and known issues + +- macOS requires 13.0 or newer, with separate Apple Silicon and Intel packages; the Windows desktop package targets x64. +- Linux packages target x64 and ARM64, requiring compatible libraries and a graphical environment; not every distribution is verified. +- Install companion plugins separately; updating Maven enables Windows installation, and the new compiler/JAR settings require this desktop release. +- Feature migration continues; component and headless checks do not establish complete parity with the older client. +- macOS packages use ad hoc signing without notarization; Windows installers have no publisher signature and may trigger system prompts. + +If macOS cannot open `Lithe Desktop.app`, Control-click it in Applications and choose Open. If it remains blocked, run `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"`. For the older `Lithe.app`, use `xattr -dr com.apple.quarantine /Applications/Lithe.app`. Use these commands only for an app from a source you trust. + +[Full changelog](https://github.com/1lck/Lithe-IDEA/compare/desktop-v0.7.0...desktop-v0.8.0) + +### 🙌 感谢贡献者 + +感谢 [@1lck](https://github.com/1lck) 和 [@xiaoyumuxi](https://github.com/xiaoyumuxi)。 + +### 🙌 Contributors + +Thanks to [@1lck](https://github.com/1lck) and [@xiaoyumuxi](https://github.com/xiaoyumuxi). From d6969d6458d7ff27d4d18e4b6791d4a25a7bb97b Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Sun, 15 Nov 2026 10:33:42 -0800 Subject: [PATCH 2/4] docs(matrix): record verified global SDK release evidence --- .../features/plugin-injected-toolchains.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/shared/platform-feature-matrix/features/plugin-injected-toolchains.json b/shared/platform-feature-matrix/features/plugin-injected-toolchains.json index 9fa4f76c63..aa20c7cca6 100644 --- a/shared/platform-feature-matrix/features/plugin-injected-toolchains.json +++ b/shared/platform-feature-matrix/features/plugin-injected-toolchains.json @@ -2,7 +2,7 @@ "id": "plugin-injected-toolchains", "area": "扩展", "group": "插件与主题", - "capability": "Viva 从已启用插件的 toolDefinitions 声明发现工具链,将文件事实与有界版本探测交给原 Rust Core 的 candidates/resolve;Build 设置显示实际生效值与来源,草稿经显式 Save/Reset/Cancel 和受保护来源快照写入本机目录 pin,Core 统一提供读预算、严格来源解析与 Git 忽略编辑计划,无变化重置不创建文件,Build/Run/命令型 Tests 使用解析出的程序与环境。提供方 toolchains/query、完整配置来源编辑与原生 GUI 验收仍未完成。 支持手动目录验证、自动值回显及构建运行时依赖先解析再执行。", + "capability": "Viva 从已启用插件的 toolDefinitions 声明发现工具链,将文件事实与有界版本探测交给原 Rust Core 的 candidates/resolve;Build 设置显示实际生效值与来源,草稿经显式 Save/Reset/Cancel 和受保护来源快照写入本机目录 pin,Core 统一提供读预算、严格来源解析与 Git 忽略编辑计划,无变化重置不创建文件,Build/Run/命令型 Tests 使用解析出的程序与环境。提供方 toolchains/query、完整配置来源编辑与原生 GUI 验收仍未完成。 支持手动目录验证、自动值回显及构建运行时依赖先解析再执行。 可在未打开项目时管理自动发现与手动登记的全局 SDK 默认值,项目可独立覆盖。", "macos": { "implementationStatus": "partial", "verificationStatus": "pending", @@ -25,7 +25,9 @@ "desktop/internal/settingswindow/toolchains_view_test.go", "desktop/internal/workbench/toolchains_test.go", "desktop/internal/toolchain/catalog.go", - "desktop/internal/toolchain/catalog_test.go" + "desktop/internal/toolchain/catalog_test.go", + "desktop/internal/settingswindow/visual_capture_test.go", + ".github/workflows/desktop-ci.yml" ] }, "windows": { @@ -44,11 +46,13 @@ "desktop/internal/settingswindow/toolchains_view_test.go", "desktop/internal/workbench/toolchains_test.go", "desktop/internal/toolchain/catalog.go", - "desktop/internal/toolchain/catalog_test.go" + "desktop/internal/toolchain/catalog_test.go", + "desktop/internal/settingswindow/visual_capture_test.go", + ".github/workflows/desktop-ci.yml" ] }, "owner": "Plugin Platform", - "verification": "共享 Core:cargo test --manifest-path rust/Cargo.toml -p lithe-core --lib toolchain,核对定义独占与官方短 ID、第二种通用工具、旧候选边界、答案身份/代次、Windows 路径大小写、工作区排除、固定值失效不回落、最近项目要求、冲突选择、最低版本、环境隔离和纯声明扫描;按逐项计时工具生成 HTML/JUnit。macOS 继续补齐下列消费者与保存验收,Windows 须先实现对应 adapter:启动提供方并协商、取消/超时和过期结果隔离、输入新建/删除后整体重查、目录固定保存/取消/冲突回读、插件停用撤回、真实 Build/LSP/Run 消费者取得同一选择、发行目录哈希不变与子进程清理。未完成原生流程前保持 pending,不以 Core 测试代替实机验证。 提供方查询:cargo test -p lithe-core --lib toolchain(含 lsp 引擎脚本后端:只有插件后端被提供 litheToolchains、未协商的提供方不写请求、错误回复原样返回;别名链接只有链接路径事实时仍选中规范 home);MacToolchainDiscoveryTests 用真实临时目录与注入的查询验证全局与目录查询各带独立 operationID/代次、链接 home 规范化、工作区内 home 整份拒绝;ToolchainSettingsFeatureTests 验证监视文件连续变化只重载一次、外部输入观察随关闭释放。真实 mise 插件端到端尚未在应用内验证。 原生布局回归 ToolchainSettingsLayoutTests:同一设置宿主按900/1180/1400/900重复缩放,真实分隔条拖动;来源页按500/666/946/500缩放,检查AX控件边界、卡片不重叠、选择和快照不改变。此几何验证不代表提供方查询或保存功能已完成。 声明式扫描 MacToolchainDiscoveryTests:真实临时目录、注入的用户目录与探测,覆盖 homeLayouts 首个匹配、隐藏与未匹配条目、链接到工作区的条目不探测、只探测 Core 返回的可执行文件、同版本冲突、被拒声明不扫描,以及隔离预览样例清单通过 Core 准入;不运行本机安装的工具。 固定集成新增 MacToolchainDiscoveryTests 的运行前解析回归和 MacBuildToolResolverTests,验证两个目录使用各自 pin、最低版本、独立环境与失败不回落;RunLaunchEnvironmentTests 证明操作返回值不会留下共享执行许可槽。该测试不是完整应用 UI 验收。 生产准入回归 installedToolDeclarationsPassTheProductionHostAdmission 经 RustDeclarativePluginOperations 验证工具定义和提供者。Build PATH 保留声明的附加目录,拒绝空目录项。 Windows 原生解析基础:lithe-project::defined_toolchain 逐项计时覆盖两个工具、声明式扫描、固定目录、最近继承、同版本冲突、最低版本、显式 Wrapper、输入撤销及宿主秘密不进入 RPC。真实 Windows 命令包装和进程清理继续由现有 CI 验证;准入仍关闭。 本次回归另核对同目录两个 Run 独立选择、团队/本机逐项合并和显式清空、私有环境隔离、失效固定值不回落、工作区启动器被动零探测,以及未知默认值迁移失败保留源文件。 本批显式 LITHE_TEST_NODE 驱动真实 Core/Node 会话,逐项计时覆盖单次协商、多次查询、原始错误、无协商拒绝、静默超时、后端意外退出与撤销清理;原生解析验证查询与当前事实、来源在探测中变化及稳定模型摘要。安装状态按 plugin/operation/workspace 隔离且不可跨工作树复制。 #1581 最终合入回归包含固定值与未扫描目录、同轮次/上下文、冲突及提供方超时和不可用的来源展示。 通用默认增量:更改工作区工具 home 后,消费者继承读取新值,按 Run 固定值保持独立;失效明确路径不回落,来源在探测期间改变或越出工作区时拒绝。旧编辑保存保留通用偏好,显式空 v1 文档清除。矩阵保持 pending,未把手写测试文档当成设置页或旧配置迁移验收。 macOS Build 偏好编辑:ToolchainPreferencesTests 验证打开/草稿/取消/空重置不建文件、明确保存/回读与权限保留、外部冲突保留原始草稿基线、仅偏好文档不阻断旧默认迁移、缺失子目录的父链接/最终链接/只读安装目录拒绝及主动取消;原生 Save/Reset 按钮在深浅主题通过实际存储执行。ToolchainSettingsLoaderTests 验证使用方来自当前 Core invocation 并随停用撤回。运行全量 Core 与相关 macOS 逐项计时;完整产品、全局默认、旧消费者和 Windows 设置页仍待验收。 tool 引用验证:共享 fixture/Core 覆盖最近通用目录、根目录、跳过父消费者、目录与工作区默认变化、显式 Run 优先和禁止通用工具反向引用;MacToolchainDiscoveryTests 与 lithe-project::defined_toolchain 的真实临时安装/注入探测验证运行前重读,不冻结安装路径。 本机目录/重载回归覆盖仅消费者偏好、父目录连接、重置撤回、链接/非法层级拒绝、单次重试与可刷新错误、未修改表单更新、冲突草稿保留及自身保存通知不等待/撤销保存。该集成不代替完整 GUI。 运行前来源审计 missingPreferenceLeafBehindAParentAliasIsRejectedBeforeToolWork 覆盖两级父目录及存在/悬空链接,四种情况均在工具探测前拒绝。 ToolchainPluginAdmissionTests 使用正式契约 fixture 与真实 Core 验证市场可安装、完整安装审查、清单加载,以及无后端纯工具定义插件的启用模块和工厂登记;本地编译验证不代替真实 mise 与 Windows 工作流验收。 2026-11-02 本机 Swift 6.4.2:准入、后端、发现和加载器 42 项通过,新增两个准入用例分别 4/6 ms;Swift 6.3.3 在本机 Xcode 27.2 SDK 下编译依赖清单崩溃,不能作为固定工具链通过。真实 mise 0.2.1 发布包 SHA-256 与市场一致,Core 证明修复前 unsupported、修复后 available;真实后端完成协商、查询并停止销毁,当前环境未安装 mise,查询真实返回 miseNotFound,未验证安装列表和应用内工作流。 增补来源保存验收:不存在的 pin 重置不创建状态;拒绝逃出工作区的符号链接/junction;有界 UTF-8 与重复键、未知字段和 dormant pin 校验;Git 后续否定规则、换行/评论/权限保留;公开字节基线不可替代私有快照;已提交但回读失败必须重新加载后才能重试。", + "verification": "共享 Core:cargo test --manifest-path rust/Cargo.toml -p lithe-core --lib toolchain,核对定义独占与官方短 ID、第二种通用工具、旧候选边界、答案身份/代次、Windows 路径大小写、工作区排除、固定值失效不回落、最近项目要求、冲突选择、最低版本、环境隔离和纯声明扫描;按逐项计时工具生成 HTML/JUnit。macOS 继续补齐下列消费者与保存验收,Windows 须先实现对应 adapter:启动提供方并协商、取消/超时和过期结果隔离、输入新建/删除后整体重查、目录固定保存/取消/冲突回读、插件停用撤回、真实 Build/LSP/Run 消费者取得同一选择、发行目录哈希不变与子进程清理。未完成原生流程前保持 pending,不以 Core 测试代替实机验证。 提供方查询:cargo test -p lithe-core --lib toolchain(含 lsp 引擎脚本后端:只有插件后端被提供 litheToolchains、未协商的提供方不写请求、错误回复原样返回;别名链接只有链接路径事实时仍选中规范 home);MacToolchainDiscoveryTests 用真实临时目录与注入的查询验证全局与目录查询各带独立 operationID/代次、链接 home 规范化、工作区内 home 整份拒绝;ToolchainSettingsFeatureTests 验证监视文件连续变化只重载一次、外部输入观察随关闭释放。真实 mise 插件端到端尚未在应用内验证。 原生布局回归 ToolchainSettingsLayoutTests:同一设置宿主按900/1180/1400/900重复缩放,真实分隔条拖动;来源页按500/666/946/500缩放,检查AX控件边界、卡片不重叠、选择和快照不改变。此几何验证不代表提供方查询或保存功能已完成。 声明式扫描 MacToolchainDiscoveryTests:真实临时目录、注入的用户目录与探测,覆盖 homeLayouts 首个匹配、隐藏与未匹配条目、链接到工作区的条目不探测、只探测 Core 返回的可执行文件、同版本冲突、被拒声明不扫描,以及隔离预览样例清单通过 Core 准入;不运行本机安装的工具。 固定集成新增 MacToolchainDiscoveryTests 的运行前解析回归和 MacBuildToolResolverTests,验证两个目录使用各自 pin、最低版本、独立环境与失败不回落;RunLaunchEnvironmentTests 证明操作返回值不会留下共享执行许可槽。该测试不是完整应用 UI 验收。 生产准入回归 installedToolDeclarationsPassTheProductionHostAdmission 经 RustDeclarativePluginOperations 验证工具定义和提供者。Build PATH 保留声明的附加目录,拒绝空目录项。 Windows 原生解析基础:lithe-project::defined_toolchain 逐项计时覆盖两个工具、声明式扫描、固定目录、最近继承、同版本冲突、最低版本、显式 Wrapper、输入撤销及宿主秘密不进入 RPC。真实 Windows 命令包装和进程清理继续由现有 CI 验证;准入仍关闭。 本次回归另核对同目录两个 Run 独立选择、团队/本机逐项合并和显式清空、私有环境隔离、失效固定值不回落、工作区启动器被动零探测,以及未知默认值迁移失败保留源文件。 本批显式 LITHE_TEST_NODE 驱动真实 Core/Node 会话,逐项计时覆盖单次协商、多次查询、原始错误、无协商拒绝、静默超时、后端意外退出与撤销清理;原生解析验证查询与当前事实、来源在探测中变化及稳定模型摘要。安装状态按 plugin/operation/workspace 隔离且不可跨工作树复制。 #1581 最终合入回归包含固定值与未扫描目录、同轮次/上下文、冲突及提供方超时和不可用的来源展示。 通用默认增量:更改工作区工具 home 后,消费者继承读取新值,按 Run 固定值保持独立;失效明确路径不回落,来源在探测期间改变或越出工作区时拒绝。旧编辑保存保留通用偏好,显式空 v1 文档清除。矩阵保持 pending,未把手写测试文档当成设置页或旧配置迁移验收。 macOS Build 偏好编辑:ToolchainPreferencesTests 验证打开/草稿/取消/空重置不建文件、明确保存/回读与权限保留、外部冲突保留原始草稿基线、仅偏好文档不阻断旧默认迁移、缺失子目录的父链接/最终链接/只读安装目录拒绝及主动取消;原生 Save/Reset 按钮在深浅主题通过实际存储执行。ToolchainSettingsLoaderTests 验证使用方来自当前 Core invocation 并随停用撤回。运行全量 Core 与相关 macOS 逐项计时;完整产品、全局默认、旧消费者和 Windows 设置页仍待验收。 tool 引用验证:共享 fixture/Core 覆盖最近通用目录、根目录、跳过父消费者、目录与工作区默认变化、显式 Run 优先和禁止通用工具反向引用;MacToolchainDiscoveryTests 与 lithe-project::defined_toolchain 的真实临时安装/注入探测验证运行前重读,不冻结安装路径。 本机目录/重载回归覆盖仅消费者偏好、父目录连接、重置撤回、链接/非法层级拒绝、单次重试与可刷新错误、未修改表单更新、冲突草稿保留及自身保存通知不等待/撤销保存。该集成不代替完整 GUI。 运行前来源审计 missingPreferenceLeafBehindAParentAliasIsRejectedBeforeToolWork 覆盖两级父目录及存在/悬空链接,四种情况均在工具探测前拒绝。 ToolchainPluginAdmissionTests 使用正式契约 fixture 与真实 Core 验证市场可安装、完整安装审查、清单加载,以及无后端纯工具定义插件的启用模块和工厂登记;本地编译验证不代替真实 mise 与 Windows 工作流验收。 2026-11-02 本机 Swift 6.4.2:准入、后端、发现和加载器 42 项通过,新增两个准入用例分别 4/6 ms;Swift 6.3.3 在本机 Xcode 27.2 SDK 下编译依赖清单崩溃,不能作为固定工具链通过。真实 mise 0.2.1 发布包 SHA-256 与市场一致,Core 证明修复前 unsupported、修复后 available;真实后端完成协商、查询并停止销毁,当前环境未安装 mise,查询真实返回 miseNotFound,未验证安装列表和应用内工作流。 增补来源保存验收:不存在的 pin 重置不创建状态;拒绝逃出工作区的符号链接/junction;有界 UTF-8 与重复键、未知字段和 dormant pin 校验;Git 后续否定规则、换行/评论/权限保留;公开字节基线不可替代私有快照;已提交但回读失败必须重新加载后才能重试。 Viva 全局 SDK 页:运行 TestVisualSettings/33-settings-toolchains,使用 en、zh-Hans 和 dark/light 的生产无头窗口,核对无项目模式、自动实际值、多版本登记与全局默认选择。通过 run-go-tests-with-timing.mjs 记录单测试 HTML/JUnit;desktop-ci 的 macOS/Windows 每次上传四张图和计时报告。2026-11-15 本机 macOS 与 Windows 11 ARM64 来宾的 GNU x64 系统仿真均通过两个语言各 3 个计时结果,Windows 49 个 SDK/来源/诊断/资源定向用例通过;该证据不替代工具提供方与完整产品工作流验收,整体保持 partial/pending。", "notes": "Viva:共享 Core toolchain 命令已接入 desktop/internal/core/toolchain.go;声明式扫描、文件事实、有界版本探测、toolchains.candidates/resolve 与目录 pin 保存位于 desktop/internal/toolchain/ 并有真实 Core 测试;设置窗口 Build 页可按插件声明展示工具、生效值与来源,显式 Save/Reset 写 .lithe/toolchains/local.json,Cancel 不写;Build 命令和 Provider Run 的 toolchain 候选使用 Core 解析出的可执行文件、环境导出和 PATH。提供方后端查询(toolchainProviders)未接入,因此未声明该能力;Windows 与完整 GUI/原生工作流未验收,状态保持 pending,legacy 证据不代表 Viva。 本轮通过外部 Core Draft PR #3 的精确提交接入 toolchains.editPins:平台不再编辑 pin schema;Core/Go 共用 fixture、批量保存和取消/外部并发修改回归通过。命令型 Tests 同样消费解析后的工具链环境。原生 Windows、提供方工具查询、完整 GUI 与发行验收仍 pending。 Windows 原生回归确认保存前后的文件模式以及真实访问控制描述符(所有者、组、DACL/继承保护)保留;元数据先准备到临时文件,再核对取消/冲突并原子发布。此证据不代表提供方查询或 GUI 已验收。 Viva 设置保存前核对读取项目的原生目录身份;项目关闭或切换后旧草稿拒绝写入,已确认保存的发布与回读固定捕获来源。冲突通过共享 i18n 显示并保留草稿,加载/保存失败进入目录日志;macOS 先失败后通过的回归已有计时,新增作用域行为的 Windows 验收尚未执行。 Windows 原生探测统一 Core 正斜杠路径与本机反斜杠/大小写别名,防止重复事实使目录 pin 解析遭拒绝;选择与校验规则仍由原有 Core 决定。 全局 SDK 登记与默认值可在未打开项目时编辑;项目范围保留独立覆盖,读取不创建文件,确认保存后按实际探测回显。新增合成工具原生与无头测试,不改变历史完整验收状态。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", From 657670cff6b8a1e0c4ff2467f1e771ee0be23007 Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Sun, 15 Nov 2026 10:49:56 -0800 Subject: [PATCH 3/4] fix(ci): invoke native Git Bash for Windows screenshot timing --- .github/workflows/desktop-ci.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/desktop-ci.yml b/.github/workflows/desktop-ci.yml index d1ea0eb686..67c4a8ed37 100644 --- a/.github/workflows/desktop-ci.yml +++ b/.github/workflows/desktop-ci.yml @@ -223,11 +223,19 @@ jobs: LITHE_VISUAL_OUTPUT_DIR: ${{ github.workspace }}/.artifacts/native-settings-visual run: | ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s + test_bash="$BASH" + if command -v cygpath >/dev/null 2>&1; then + test_bash="$(cygpath -w "$BASH")" + case "$test_bash" in + *.[Ee][Xx][Ee]) ;; + *) test_bash="$test_bash.exe" ;; + esac + fi for language in en zh-Hans; do LITHE_VISUAL_LANGUAGE="$language" LITHE_VISUAL_OUTPUT_DIR="$LITHE_VISUAL_OUTPUT_DIR/$language" \ node .agents/skills/write-stable-tests/scripts/run-go-tests-with-timing.mjs \ --report ".artifacts/test-stability/global-sdk-$language.json" --suite-timeout-ms 240000 -- \ - ./scripts/desktop/desktop-go.sh test -json -tags 'vivahead lithevisual' ./internal/settingswindow \ + "$test_bash" scripts/desktop/desktop-go.sh test -json -tags 'vivahead lithevisual' ./internal/settingswindow \ -run '^TestVisualSettings$/33-settings-toolchains' -count=1 -timeout=120s done @@ -315,11 +323,19 @@ jobs: LITHE_VISUAL_OUTPUT_DIR: ${{ github.workspace }}/.artifacts/native-settings-visual run: | ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s + test_bash="$BASH" + if command -v cygpath >/dev/null 2>&1; then + test_bash="$(cygpath -w "$BASH")" + case "$test_bash" in + *.[Ee][Xx][Ee]) ;; + *) test_bash="$test_bash.exe" ;; + esac + fi for language in en zh-Hans; do LITHE_VISUAL_LANGUAGE="$language" LITHE_VISUAL_OUTPUT_DIR="$LITHE_VISUAL_OUTPUT_DIR/$language" \ node .agents/skills/write-stable-tests/scripts/run-go-tests-with-timing.mjs \ --report ".artifacts/test-stability/global-sdk-$language.json" --suite-timeout-ms 240000 -- \ - ./scripts/desktop/desktop-go.sh test -json -tags 'vivahead lithevisual' ./internal/settingswindow \ + "$test_bash" scripts/desktop/desktop-go.sh test -json -tags 'vivahead lithevisual' ./internal/settingswindow \ -run '^TestVisualSettings$/33-settings-toolchains' -count=1 -timeout=120s done From 1b2325d05e7f96882baf8b61eb6fec3e6f32f52e Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Sun, 15 Nov 2026 10:58:57 -0800 Subject: [PATCH 4/4] release: include update channels and verify their native dialogs --- .github/workflows/desktop-ci.yml | 4 ++-- docs/releases/v0.8.0.md | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/desktop-ci.yml b/.github/workflows/desktop-ci.yml index 0267c651cf..67258ef288 100644 --- a/.github/workflows/desktop-ci.yml +++ b/.github/workflows/desktop-ci.yml @@ -226,7 +226,7 @@ jobs: env: LITHE_VISUAL_OUTPUT_DIR: ${{ github.workspace }}/.artifacts/native-settings-visual run: | - ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s + ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline|TestVisualUpdatesPage|TestVisualUpdateDialog)$' -count=1 -timeout=120s test_bash="$BASH" if command -v cygpath >/dev/null 2>&1; then test_bash="$(cygpath -w "$BASH")" @@ -326,7 +326,7 @@ jobs: env: LITHE_VISUAL_OUTPUT_DIR: ${{ github.workspace }}/.artifacts/native-settings-visual run: | - ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s + ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline|TestVisualUpdatesPage|TestVisualUpdateDialog)$' -count=1 -timeout=120s test_bash="$BASH" if command -v cygpath >/dev/null 2>&1; then test_bash="$(cygpath -w "$BASH")" diff --git a/docs/releases/v0.8.0.md b/docs/releases/v0.8.0.md index bfa05372ec..bfbd12fac6 100644 --- a/docs/releases/v0.8.0.md +++ b/docs/releases/v0.8.0.md @@ -21,6 +21,8 @@ Lithe Desktop 0.8.0 新增全局 JDK 管理、项目与模块编译设置,并 #### ✨ 新功能 +- 更新设置新增正式版与 AutoBuild 渠道,以及自定义更新源。 +- 标题栏提供更新入口,支持先看日志,再下载、跳过或稍后处理。 - 无需打开项目,即可自动识别 JDK、手动添加多个版本并选择全局默认版本。 - 项目可单独覆盖全局 JDK,新启动的构建、运行和语言服务使用同一解析结果。 - 配合新版 Java Support、Maven 或 Gradle 插件,设置项目默认及各模块的目标字节码。 @@ -28,6 +30,7 @@ Lithe Desktop 0.8.0 新增全局 JDK 管理、项目与模块编译设置,并 #### ⚡ 改进 +- 保存设置时保留本版不认识的配置,切换更新渠道前保留可恢复的设置快照。 - 编译设置显示真实配置来源和继承值,保存时检查外部改动,避免覆盖较新的配置。 - 终端持续输出时保留选区,滚动丢弃旧行后保留仍存在的选中内容。 - Windows 可识别通过 Microsoft Store 安装的 PowerShell 7。 @@ -53,6 +56,7 @@ Lithe Desktop 0.8.0 新增全局 JDK 管理、项目与模块编译设置,并 - macOS 最低为 13.0,分别提供 Apple Silicon 和 Intel 包;Windows 桌面端提供 x64 包。 - Linux 提供 x64 和 ARM64 包,需要兼容的运行库和图形环境,未验证所有发行版。 - 配套插件单独安装;更新 Maven 插件后可在 Windows 安装使用,新版编译和 JAR 设置需要本版桌面端。 +- 本次发布尚未配置更新签名密钥,自动更新暂不启用,请手动下载安装。 - 新客户端的功能迁移仍在进行,组件与无头验证不代表旧版功能已全部对齐。 - macOS 使用临时签名且未公证,Windows 安装包没有发行者签名,系统可能显示安全提示。 @@ -85,6 +89,8 @@ This release focuses on Java project configuration and everyday editor and termi #### ✨ New features +- Update settings add Stable and AutoBuild channels and configurable update sources. +- The title-bar update entry shows changes before Download, Skip This Version or Later. - Detect JDKs, add multiple versions manually and choose a global default without opening a project. - Override the global JDK per project; new builds, runs and language services share the same resolution. - Set project defaults and per-module bytecode targets with the updated Java Support, Maven or Gradle plugin. @@ -92,6 +98,7 @@ This release focuses on Java project configuration and everyday editor and termi #### ⚡ Improvements +- Saving preserves settings this version cannot read; channel switches retain a settings snapshot that can be restored. - Compiler settings show their real sources and inherited values, checking external changes before saving. - Terminal output preserves selections, retaining selected content that remains after older lines scroll out of the buffer. - Windows detects PowerShell 7 installed through Microsoft Store. @@ -117,6 +124,7 @@ This release focuses on Java project configuration and everyday editor and termi - macOS requires 13.0 or newer, with separate Apple Silicon and Intel packages; the Windows desktop package targets x64. - Linux packages target x64 and ARM64, requiring compatible libraries and a graphical environment; not every distribution is verified. - Install companion plugins separately; updating Maven enables Windows installation, and the new compiler/JAR settings require this desktop release. +- Update signing keys are not configured for this release; automatic updates remain disabled, so install manually. - Feature migration continues; component and headless checks do not establish complete parity with the older client. - macOS packages use ad hoc signing without notarization; Windows installers have no publisher signature and may trigger system prompts.