From 3f39f96b3768b609112d9a8eecc0f4897dbbcaf1 Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Fri, 20 Nov 2026 22:46:21 -0800 Subject: [PATCH 1/4] fix(release): pin the latest Viva documentation sync --- desktop/go.mod | 4 ++-- desktop/go.sum | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop/go.mod b/desktop/go.mod index 8e5b03183..da48bbfb4 100644 --- a/desktop/go.mod +++ b/desktop/go.mod @@ -9,7 +9,7 @@ toolchain go1.27.3 require ( github.com/creack/pty v1.1.24 github.com/tailscale/hujson v0.0.0-20260727124030-b80ff77dac4f - github.com/vivaui/viva v0.6.7-0.20261121054605-59a696ec91c1 + github.com/vivaui/viva v0.6.7-0.20261121062827-3abb3dbb4259 github.com/zalando/go-keyring v0.2.8 golang.org/x/sys v0.50.0 ) @@ -20,4 +20,4 @@ require ( github.com/godbus/dbus/v5 v5.2.2 // indirect ) -replace github.com/vivaui/viva => github.com/Lithe-IDEA/viva v0.6.7-0.20261121060852-8014d5cc701e +replace github.com/vivaui/viva => github.com/Lithe-IDEA/viva v0.6.7-0.20261121064427-ecc66fc55042 diff --git a/desktop/go.sum b/desktop/go.sum index 96c812769..397647976 100644 --- a/desktop/go.sum +++ b/desktop/go.sum @@ -1,5 +1,5 @@ -github.com/Lithe-IDEA/viva v0.6.7-0.20261121060852-8014d5cc701e h1:lCDDQgnTCLXTxIeCuZ5LZLFzr0XB02410htNSdJukwU= -github.com/Lithe-IDEA/viva v0.6.7-0.20261121060852-8014d5cc701e/go.mod h1:e9In6+J77G7B9ow4enZ2FSOFh7U3q4cQ5iJr3Qn/Olk= +github.com/Lithe-IDEA/viva v0.6.7-0.20261121064427-ecc66fc55042 h1:OCMipbo7UxizI9qLawOemmDPxO4e/LTO/Q+GyqzetUQ= +github.com/Lithe-IDEA/viva v0.6.7-0.20261121064427-ecc66fc55042/go.mod h1:e9In6+J77G7B9ow4enZ2FSOFh7U3q4cQ5iJr3Qn/Olk= github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s= github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE= github.com/danieljoos/wincred v1.2.3 h1:v7dZC2x32Ut3nEfRH+vhoZGvN72+dQ/snVXo/vMFLdQ= From 3aaa0c81b8420d4d2e5f7d12c03472e68eec4af5 Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Fri, 20 Nov 2026 22:50:24 -0800 Subject: [PATCH 2/4] release: prepare Lithe Desktop 0.8.13 --- desktop/viva.toml | 2 +- docs/releases/v0.8.13.md | 135 ++++++++++++++++++ .../features/settings-about-page.json | 4 +- 3 files changed, 139 insertions(+), 2 deletions(-) create mode 100644 docs/releases/v0.8.13.md diff --git a/desktop/viva.toml b/desktop/viva.toml index b6df7c770..d9493c663 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.8.12" +version = "0.8.13" 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.8.13.md b/docs/releases/v0.8.13.md new file mode 100644 index 000000000..04f3b9380 --- /dev/null +++ b/docs/releases/v0.8.13.md @@ -0,0 +1,135 @@ +## 中文 + +Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的流程,并加入安全模式、可信位置及 SSH 连接管理。 + +### 下载 + +- [项目主页](https://github.com/1lck/Lithe-IDEA) +- [macOS Apple Silicon DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.13/lithe-0.8.13-darwin-arm64.dmg) +- [macOS Intel DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.13/lithe-0.8.13-darwin-amd64.dmg) +- [Windows x64 安装程序](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.13/lithe-0.8.13-windows-amd64-setup.exe) +- [全部下载文件与 SHA-256 校验文件](https://github.com/1lck/Lithe-IDEA/releases/tag/desktop-v0.8.13) + +### 重点更新 + +打开 Java 工程后,可以从插件推荐直接安装所需工具,并在已打开的编辑器里继续工作。 + +#### ✨ 新功能 + +- 用安全模式查看不熟悉的项目时,Lithe 会限制语言服务器、Git 和版本控制的运行。 +- 在“设置 → 工具 → 可信位置”中管理可直接打开的位置。 +- 在远程开发窗口保存、分组和测试 SSH 连接,可用颜色区分主机并直接回答 SSH 询问。 +- Git 需要用户名、密码或口令时,可以直接在窗口中输入,也可以取消。 + +#### ⚡ 改进 + +- 欢迎页直接显示新建项目、打开项目、克隆仓库和远程开发四种入口。 +- 设置窗口记住上次调整后的尺寸,控制台和可信位置归入“工具”,Git 有独立设置页。 +- 同步 Viva 后,Windows 拖动缩放减少重复绘制,列表滚动范围和 Linux 长文本绘制也得到修正。 + +#### 🛠 修复 + +- 修复首次打开项目时插件推荐不完整,以及从推荐入口打开空白列表的问题。 +- 安装语言插件后,已打开的文件可以直接获得语言服务。 +- 恢复工具栏的当前文件运行与调试、附加调试,并修复从构建工具发现的入口启动调试。 +- 修复“语言与框架”目录页缺失、语言设置页重复显示目录项的问题。 + +#### 🔌 插件需要的新宿主能力 + +以下版本需要本版新增的宿主能力,Lithe 0.8.12 及更早的版本会拒绝安装。 + +- Gradle 2.0.1(待发布)需要 `buildSystems` 版本 2 和 `buildProviders` 版本 1,用于按当前 Java 文件所属的源集准备运行和调试。[插件仓库](https://github.com/Lithe-IDEA/lithe-plugin-gradle) +- Maven 1.0.3(待发布)需要 `buildSystems` 版本 2 和 `buildProviders` 版本 1,用于准备 Maven 应用的调试类路径,并依赖本版对当前文件调试和构建入口调试的修复。[插件仓库](https://github.com/Lithe-IDEA/lithe-plugin-maven) + +### 升级说明 + +- 可从标题栏的更新入口或“设置 → 关于”检查更新,也可以下载完整安装包。 +- macOS 用户打开对应架构的 DMG,将 `Lithe Desktop.app` 拖入“应用程序”。 +- Homebrew 配方更新后,运行 `brew update && brew upgrade --cask lithe`。 +- Windows 用户运行 x64 安装程序,从 Windows 0.8.0 升级时请手动下载安装。 +- 全部下载文件中提供 Linux x64、ARM64 的 DEB、RPM 和 tar.gz。 + +### 兼容性与已知问题 + +- macOS 最低要求 13.0。Windows 提供 x64 安装包,Linux 需要兼容的运行库和图形环境。 +- macOS 安装包使用临时签名,Windows 安装包无发行者签名。系统可能显示安全提示。 +- 远程开发窗口当前支持保存和测试 SSH 连接,完整远程工作区仍在开发。[#2231](https://github.com/1lck/Lithe-IDEA/issues/2231) +- Windows 首次导入 Gradle 项目时,如果 Wrapper 尚未下载且探测超时,可在项目目录运行 `gradlew.bat --version` 等待下载完成,再回到 Lithe 重试。 +- 以 `build.xml` 为根的 Apache Ant 工程仍有项目导入、调试和源码跳转缺口。[#1761](https://github.com/1lck/Lithe-IDEA/issues/1761) + +如果 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.8.12...desktop-v0.8.13) + +--- + +## English + +Lithe Desktop 0.8.13 improves the path from opening a Java project to running and debugging it. It also adds Safe Mode, trusted locations, and SSH connection management. + +### Downloads + +- [Project homepage](https://github.com/1lck/Lithe-IDEA) +- [macOS Apple Silicon DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.13/lithe-0.8.13-darwin-arm64.dmg) +- [macOS Intel DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.13/lithe-0.8.13-darwin-amd64.dmg) +- [Windows x64 installer](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.8.13/lithe-0.8.13-windows-amd64-setup.exe) +- [All downloads and SHA-256 checksums](https://github.com/1lck/Lithe-IDEA/releases/tag/desktop-v0.8.13) + +### Highlights + +When you open a Java project, you can install the recommended tools and continue working in the files you already have open. + +#### ✨ New features + +- Safe Mode restricts language servers, Git, and version control when you inspect an unfamiliar project. +- Manage locations you trust to open directly in Settings → Tools → Trusted Locations. +- Save, group, color-code, and test SSH connections and answer prompts in the Remote Development window. +- Enter Git usernames, passwords, and passphrases in the window, or cancel the prompt. + +#### ⚡ Improvements + +- Create, open, clone, and remote development now have their own buttons on the welcome screen. +- Settings remembers its window size, groups Console and Trusted Locations under Tools, and gives Git its own page. +- The Viva update reduces extra redraws during Windows resizing and fixes list scrolling bounds and long text drawing on Linux. + +#### 🛠 Fixes + +- Fixes missing plugin suggestions when opening projects and an empty list when following a suggestion. +- Files already open can receive language services as soon as you install the language plugin. +- Restores toolbar run and debug for the current file and debugger attach, and fixes debugging from discovered build entry points. +- Restores the Languages & Frameworks directory page and removes duplicated directory entries from language settings. + +#### 🔌 New host capabilities that plugins need + +These plugin versions need capabilities added in this release. Lithe 0.8.12 and earlier refuse to install them. + +- Gradle 2.0.1 (pending publication) needs `buildSystems` version 2 and `buildProviders` version 1 to run and debug a Java file with its Gradle source set. [Plugin repository](https://github.com/Lithe-IDEA/lithe-plugin-gradle) +- Maven 1.0.3 (pending publication) needs `buildSystems` version 2 and `buildProviders` version 1 to prepare the Maven debug classpath. It also relies on this release’s current-file and build-entry debugging fixes. [Plugin repository](https://github.com/Lithe-IDEA/lithe-plugin-maven) + +### Upgrade instructions + +- Check for updates from the title bar or Settings → About, or download a full installer. +- On macOS, open the DMG for your processor and drag `Lithe Desktop.app` to Applications. +- With Homebrew, run `brew update && brew upgrade --cask lithe` once the cask update is available. +- On Windows, run the x64 installer. Windows 0.8.0 users should download and install it manually. +- Linux downloads include DEB, RPM, and tar.gz packages for x64 and ARM64. + +### Compatibility and known issues + +- macOS requires 13.0 or newer. Windows packages target x64. Linux requires compatible libraries and a graphical environment. +- macOS packages use ad hoc signing. Windows installers have no publisher signature. Your system may show security prompts. +- Remote Development currently supports saving and testing SSH connections. Full remote workspaces are in development. [#2231](https://github.com/1lck/Lithe-IDEA/issues/2231) +- On Windows, a Gradle project can time out during its first import if its Wrapper distribution still needs to download. Run `gradlew.bat --version` in the project directory, wait for it to finish, and retry in Lithe. +- Apache Ant projects rooted at `build.xml` still have gaps in project import, debugging, and source navigation. [#1761](https://github.com/1lck/Lithe-IDEA/issues/1761) + +If macOS cannot open `Lithe Desktop.app`, Control-click it in Applications and choose Open. If it is still blocked, run `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"` in Terminal. 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.8.12...desktop-v0.8.13) + +### 🙌 感谢贡献者 + +感谢 [@1lck](https://github.com/1lck) 和 [@xiaoyumuxi](https://github.com/xiaoyumuxi)。 + +### 🙌 Contributors + +Thanks to [@1lck](https://github.com/1lck) and [@xiaoyumuxi](https://github.com/xiaoyumuxi). diff --git a/shared/platform-feature-matrix/features/settings-about-page.json b/shared/platform-feature-matrix/features/settings-about-page.json index 652d116e5..03893a6fb 100644 --- a/shared/platform-feature-matrix/features/settings-about-page.json +++ b/shared/platform-feature-matrix/features/settings-about-page.json @@ -16,6 +16,7 @@ "desktop/internal/icons/viva_mark.go", "scripts/desktop/generate-desktop-icons.sh", "desktop/internal/buildinfo/buildinfo.go", + "desktop/viva.toml", "desktop/internal/buildinfo/stable.go", "desktop/internal/buildinfo/preview.go", "desktop/internal/workbench/welcome_view.go", @@ -36,6 +37,7 @@ "desktop/internal/icons/viva_mark.go", "scripts/desktop/generate-desktop-icons.sh", "desktop/internal/buildinfo/buildinfo.go", + "desktop/viva.toml", "desktop/internal/buildinfo/stable.go", "desktop/internal/buildinfo/preview.go", "desktop/internal/workbench/welcome_view.go", @@ -45,6 +47,6 @@ }, "owner": "Settings", "releaseSource": "只有 Desktop Release 为 desktop-v<版本> 标签的提交打包时传 package-desktop.sh --stable(lithe_stable 构建标签),应用内显示不带“预览版”的版本号,package-release.sh 校验每个打包程序都带这个标签;desktop-AutoBuild、本地打包和 go run 都显示“<版本> 预览版”。", - "verification": "无头窗口测试覆盖:关于页排在 AI 之后、面包屑只有“关于”;预览版显示“0.7.0 预览版”;QQ 群、Issue、Rust Core 和 Viva 上游链接打开对应地址;复制成功与失败(失败时显示原因并上报);版本信息与更新卡片“已是最新”在正式版和预览版下的文字;复制内容与平台、构建、运行时的读取(打包写入的提交与时间优先,含未记录提交和时间不可读)。macOS 生成了中英文、浅色和深色的无头截图(36-settings-about,以及滚到项目卡片的 36-settings-about-projects)。运行 scripts/desktop/desktop-go.sh test -race ./internal/settingswindow ./internal/workbench -run 'TestAbout|TestUpdateLineSays|TestWelcomeTitleAndVersion'。真实窗口、Windows 实机和正式版安装包上的标识尚未验收。", + "verification": "发布验收:在 macOS 和 Windows 的正式包中核对欢迎页、关于页和复制的版本信息均与对应桌面发布标签的版本号一致,且均无预览版标识;同版本的本地构建仍显示预览版。无头窗口测试覆盖:关于页排在 AI 之后、面包屑只有“关于”;预览版显示“0.7.0 预览版”;QQ 群、Issue、Rust Core 和 Viva 上游链接打开对应地址;复制成功与失败(失败时显示原因并上报);版本信息与更新卡片“已是最新”在正式版和预览版下的文字;复制内容与平台、构建、运行时的读取(打包写入的提交与时间优先,含未记录提交和时间不可读)。macOS 生成了中英文、浅色和深色的无头截图(36-settings-about,以及滚到项目卡片的 36-settings-about-projects)。运行 scripts/desktop/desktop-go.sh test -race ./internal/settingswindow ./internal/workbench -run 'TestAbout|TestUpdateLineSays|TestWelcomeTitleAndVersion'。真实窗口、Windows 实机和正式版安装包上的标识尚未验收。", "notes": "Viva 设置侧栏在 AI 之后增加一级页面“关于”:顶部是图标、名称、简介和复制按钮(复制版本、平台、构建与运行时,用于提交 Issue);“版本信息”显示版本、平台、构建(提交与日期)和 Go 运行时;“更新”是完整的更新设置:自动检查更新、更新渠道、发布源(保存与恢复默认)和立即检查,不再重复当前版本与构建;“加入交流”有 QQ 群 163027877 与微信群(飞书页面);“项目”有源码仓库、Issue、Rust Core(Lithe-IDEA/Lithe-core-rust)和 Viva 上游(vivaui/viva,图标是 Viva 标志,由 generate-desktop-icons.sh 从固定版本的 Viva 源码编译)。不显示 Core C ABI 版本。版本号来自 desktop/viva.toml;欢迎页、关于页和复制内容都按同一规则显示正式版或预览版。2026-11-18:外观与行为下的独立“更新”页删除,更新设置整体迁入关于页。" } From 6e9a50d7d98e1bf55335e0bc72390c735c63194e Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Fri, 20 Nov 2026 23:04:38 -0800 Subject: [PATCH 3/4] docs(release): document SSH folder browsing and Windows debug limits --- docs/releases/v0.8.13.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/releases/v0.8.13.md b/docs/releases/v0.8.13.md index 04f3b9380..191096ad9 100644 --- a/docs/releases/v0.8.13.md +++ b/docs/releases/v0.8.13.md @@ -1,6 +1,6 @@ ## 中文 -Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的流程,并加入安全模式、可信位置及 SSH 连接管理。 +Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的流程,并加入安全模式、可信位置及 SSH 远程目录浏览。 ### 下载 @@ -19,6 +19,7 @@ Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的 - 用安全模式查看不熟悉的项目时,Lithe 会限制语言服务器、Git 和版本控制的运行。 - 在“设置 → 工具 → 可信位置”中管理可直接打开的位置。 - 在远程开发窗口保存、分组和测试 SSH 连接,可用颜色区分主机并直接回答 SSH 询问。 +- 连接 SSH 主机后可选择文件夹并在新标签页浏览目录,状态栏显示连接状态,断线后会尝试重连。 - Git 需要用户名、密码或口令时,可以直接在窗口中输入,也可以取消。 #### ⚡ 改进 @@ -38,8 +39,8 @@ Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的 以下版本需要本版新增的宿主能力,Lithe 0.8.12 及更早的版本会拒绝安装。 -- Gradle 2.0.1(待发布)需要 `buildSystems` 版本 2 和 `buildProviders` 版本 1,用于按当前 Java 文件所属的源集准备运行和调试。[插件仓库](https://github.com/Lithe-IDEA/lithe-plugin-gradle) -- Maven 1.0.3(待发布)需要 `buildSystems` 版本 2 和 `buildProviders` 版本 1,用于准备 Maven 应用的调试类路径,并依赖本版对当前文件调试和构建入口调试的修复。[插件仓库](https://github.com/Lithe-IDEA/lithe-plugin-maven) +- Gradle 2.0.1需要 `buildSystems` 版本 2 和 `buildProviders` 版本 1,用于按当前 Java 文件所属的源集准备运行和调试。[插件版本](https://github.com/Lithe-IDEA/lithe-plugin-gradle/releases/tag/v2.0.1) +- Maven 1.0.3需要 `buildSystems` 版本 2 和 `buildProviders` 版本 1,用于准备 Maven 应用的调试类路径,并依赖本版对当前文件调试和构建入口调试的修复。[插件版本](https://github.com/Lithe-IDEA/lithe-plugin-maven/releases/tag/v1.0.3) ### 升级说明 @@ -53,8 +54,10 @@ Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的 - macOS 最低要求 13.0。Windows 提供 x64 安装包,Linux 需要兼容的运行库和图形环境。 - macOS 安装包使用临时签名,Windows 安装包无发行者签名。系统可能显示安全提示。 -- 远程开发窗口当前支持保存和测试 SSH 连接,完整远程工作区仍在开发。[#2231](https://github.com/1lck/Lithe-IDEA/issues/2231) +- SSH 工作区目前支持浏览目录,打开和编辑文件、远程终端、项目搜索与 Git 仍在开发。[#2231](https://github.com/1lck/Lithe-IDEA/issues/2231) +- Windows 客户端可能无法打开远程主机上的路径。[#2264](https://github.com/1lck/Lithe-IDEA/issues/2264) - Windows 首次导入 Gradle 项目时,如果 Wrapper 尚未下载且探测超时,可在项目目录运行 `gradlew.bat --version` 等待下载完成,再回到 Lithe 重试。 +- 在 Windows 11 ARM64 上运行 x64 版时,Spring Petclinic 的 Gradle 调试连接在复测中超时。 - 以 `build.xml` 为根的 Apache Ant 工程仍有项目导入、调试和源码跳转缺口。[#1761](https://github.com/1lck/Lithe-IDEA/issues/1761) 如果 macOS 提示无法打开 `Lithe Desktop.app`,请在“应用程序”中按住 Control 点按应用并选择“打开”。如果仍被阻止,可执行 `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"`。旧版 `Lithe.app` 使用 `xattr -dr com.apple.quarantine /Applications/Lithe.app`。仅对可信来源的应用使用。 @@ -65,7 +68,7 @@ Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的 ## English -Lithe Desktop 0.8.13 improves the path from opening a Java project to running and debugging it. It also adds Safe Mode, trusted locations, and SSH connection management. +Lithe Desktop 0.8.13 improves the path from opening a Java project to running and debugging it. It also adds Safe Mode, trusted locations, and SSH remote folder browsing. ### Downloads @@ -84,6 +87,7 @@ When you open a Java project, you can install the recommended tools and continue - Safe Mode restricts language servers, Git, and version control when you inspect an unfamiliar project. - Manage locations you trust to open directly in Settings → Tools → Trusted Locations. - Save, group, color-code, and test SSH connections and answer prompts in the Remote Development window. +- Choose a folder after connecting to an SSH host, browse its tree in a new tab, and see connection and reconnection status. - Enter Git usernames, passwords, and passphrases in the window, or cancel the prompt. #### ⚡ Improvements @@ -103,8 +107,8 @@ When you open a Java project, you can install the recommended tools and continue These plugin versions need capabilities added in this release. Lithe 0.8.12 and earlier refuse to install them. -- Gradle 2.0.1 (pending publication) needs `buildSystems` version 2 and `buildProviders` version 1 to run and debug a Java file with its Gradle source set. [Plugin repository](https://github.com/Lithe-IDEA/lithe-plugin-gradle) -- Maven 1.0.3 (pending publication) needs `buildSystems` version 2 and `buildProviders` version 1 to prepare the Maven debug classpath. It also relies on this release’s current-file and build-entry debugging fixes. [Plugin repository](https://github.com/Lithe-IDEA/lithe-plugin-maven) +- Gradle 2.0.1 needs `buildSystems` version 2 and `buildProviders` version 1 to run and debug a Java file with its Gradle source set. [Plugin release](https://github.com/Lithe-IDEA/lithe-plugin-gradle/releases/tag/v2.0.1) +- Maven 1.0.3 needs `buildSystems` version 2 and `buildProviders` version 1 to prepare the Maven debug classpath. It also relies on this release’s current-file and build-entry debugging fixes. [Plugin release](https://github.com/Lithe-IDEA/lithe-plugin-maven/releases/tag/v1.0.3) ### Upgrade instructions @@ -118,8 +122,10 @@ These plugin versions need capabilities added in this release. Lithe 0.8.12 and - macOS requires 13.0 or newer. Windows packages target x64. Linux requires compatible libraries and a graphical environment. - macOS packages use ad hoc signing. Windows installers have no publisher signature. Your system may show security prompts. -- Remote Development currently supports saving and testing SSH connections. Full remote workspaces are in development. [#2231](https://github.com/1lck/Lithe-IDEA/issues/2231) +- SSH workspaces support browsing folders. Opening and editing files, remote terminals, project search, and Git are in development. [#2231](https://github.com/1lck/Lithe-IDEA/issues/2231) +- Windows clients may fail to open paths on the remote host. [#2264](https://github.com/1lck/Lithe-IDEA/issues/2264) - On Windows, a Gradle project can time out during its first import if its Wrapper distribution still needs to download. Run `gradlew.bat --version` in the project directory, wait for it to finish, and retry in Lithe. +- Gradle debugging for Spring Petclinic timed out in testing with the x64 app on Windows 11 ARM64. - Apache Ant projects rooted at `build.xml` still have gaps in project import, debugging, and source navigation. [#1761](https://github.com/1lck/Lithe-IDEA/issues/1761) If macOS cannot open `Lithe Desktop.app`, Control-click it in Applications and choose Open. If it is still blocked, run `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"` in Terminal. 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. From 9d084eb9257d77513b9061ca6a32bfb6a02ea64b Mon Sep 17 00:00:00 2001 From: lick <2188718831@qq.com> Date: Fri, 20 Nov 2026 23:35:17 -0800 Subject: [PATCH 4/4] fix(release): include the Linux remote path fix on Windows --- .../2026-10-24-remote-workspace-routing.md | 3 ++- docs/releases/v0.8.13.md | 10 ++++++---- scripts/desktop/build-desktop-core.sh | 2 +- .../features/remote-workspace.json | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md b/.agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md index 81f286074..ec257f409 100644 --- a/.agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md +++ b/.agents/notes/implemented/architecture/2026-10-24-remote-workspace-routing.md @@ -4,7 +4,7 @@ ## 先说结论 -远程文件夹以“本地占位根目录”的身份打开成工作区:根目录是本机的一个空目录,工作台照常拿到一个文件 URL,这个目录下面的文件在远端。文件树与编辑器通过文件端口访问主机,Git、搜索和构建保留现有 Core 引擎,终端把远端伪终端的字节交给本机渲染。桌面端尚未接入远程工作区;本文记录的是 Core 远程服务与工作区路由的已定决策。 +远程文件夹用本机用户缓存中的空目录作为工作区标识,目录内容由 Core 从 SSH 主机读取。Viva 已接入文件夹选择、目录树及会话状态,远程文件编辑、终端、搜索与 Git 仍在接入中。Windows 等客户端按本机规则处理占位目录,Linux 主机路径按 POSIX 规则校验和拼接。 ## 问题 @@ -13,6 +13,7 @@ ## 决策 - **守护进程启动必须有确定结果**:并发连接可能各自启动候选进程。代理必须等自己启动的候选已经写入会话锁的 PID,或已退出,才连接 socket;不能因为别的候选已发布 socket 就提前握手,否则显式关闭后,迟到的候选还会接管锁并留下新进程。复用已有锁文件和子进程退出状态,不增加协议、目录或长期监听;等待沿用启动期限,失败时终止并回收本次启动的候选,成功的守护进程继续跨断线保留。 +- **路径规则随文件所在主机**:Core 用 POSIX 规则检查 Linux 主机的根目录并拼接路径,本机占位路径使用客户端系统的规则。若主机条目名会被客户端解释为不同的路径(例如 Windows 将反斜杠解释为分隔符),拒绝该投影,以免操作落到另一个条目。Windows 桌面回归测试覆盖主机路径校验和关闭会话的结果(#2264)。 - **远程文件树复用 Core 列表**:根目录和展开目录都使用带远程主机身份的 `workspace.listDirectories`,共享可见性、自然排序与嵌套 worktree 规则;根目录只请求一层,后续展开仍按需加载。`readDir` 已提供不跟随链接的文件类型,Core 复用它,不能对每个普通文件再发一个 `stat`;目录的嵌套 worktree 与空目录探测仍需要主机请求。主机不可用时保留失败,不从本机空占位目录补列表。真实协议主机 fixture 覆盖目录顺序、请求数量与占位目录隔离,真实 SSH 产品流程仍需验收。 - **文档版本**:和本地一样,文档标识是读到的原始字节的 SHA-256。远端用大小和修改时间做冲突检测,所以路由层为每个读到的标识记住远端版本(最多 512 个),保存时把它作为 `expected` 传给 `remote.writeFile`;不认识的标识会先读当前内容比对哈希。文件变了就返回冲突,不覆盖。 - **外部修改监听**:`RemoteDirectoryObservation` 在工作线程订阅主机原生 watcher,转换路径后交给已有文件树、Git、搜索索引和文档刷新流程。Git common directory 位于工作区外时使用同一绑定的外部路径命名空间并额外监听,订阅时还原主机路径,事件回来后投影回同一个本地身份。订阅先于创建,启动和溢出要求重新扫描,根目录移除结束订阅;取消先屏蔽旧 generation,再通过 Core 的资源所有者停止主机 watcher。打开的文档共用其工作区根的订阅,列表缓存随文档变更清空。 diff --git a/docs/releases/v0.8.13.md b/docs/releases/v0.8.13.md index 191096ad9..640246f5b 100644 --- a/docs/releases/v0.8.13.md +++ b/docs/releases/v0.8.13.md @@ -33,6 +33,8 @@ Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的 - 修复首次打开项目时插件推荐不完整,以及从推荐入口打开空白列表的问题。 - 安装语言插件后,已打开的文件可以直接获得语言服务。 - 恢复工具栏的当前文件运行与调试、附加调试,并修复从构建工具发现的入口启动调试。 +- 修复多项目工作区中从当前文件运行时选错项目的问题。 +- 修复 Windows 无法打开 Linux SSH 主机目录的问题。 - 修复“语言与框架”目录页缺失、语言设置页重复显示目录项的问题。 #### 🔌 插件需要的新宿主能力 @@ -55,9 +57,8 @@ Lithe Desktop 0.8.13 改善了 Java 项目从首次打开到运行和调试的 - macOS 最低要求 13.0。Windows 提供 x64 安装包,Linux 需要兼容的运行库和图形环境。 - macOS 安装包使用临时签名,Windows 安装包无发行者签名。系统可能显示安全提示。 - SSH 工作区目前支持浏览目录,打开和编辑文件、远程终端、项目搜索与 Git 仍在开发。[#2231](https://github.com/1lck/Lithe-IDEA/issues/2231) -- Windows 客户端可能无法打开远程主机上的路径。[#2264](https://github.com/1lck/Lithe-IDEA/issues/2264) - Windows 首次导入 Gradle 项目时,如果 Wrapper 尚未下载且探测超时,可在项目目录运行 `gradlew.bat --version` 等待下载完成,再回到 Lithe 重试。 -- 在 Windows 11 ARM64 上运行 x64 版时,Spring Petclinic 的 Gradle 调试连接在复测中超时。 +- 在 Windows 11 ARM64 上运行 x64 版时,Spring Petclinic 的 Gradle 调试因 Java 语言服务器请求超时而未能启动。 - 以 `build.xml` 为根的 Apache Ant 工程仍有项目导入、调试和源码跳转缺口。[#1761](https://github.com/1lck/Lithe-IDEA/issues/1761) 如果 macOS 提示无法打开 `Lithe Desktop.app`,请在“应用程序”中按住 Control 点按应用并选择“打开”。如果仍被阻止,可执行 `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"`。旧版 `Lithe.app` 使用 `xattr -dr com.apple.quarantine /Applications/Lithe.app`。仅对可信来源的应用使用。 @@ -101,6 +102,8 @@ When you open a Java project, you can install the recommended tools and continue - Fixes missing plugin suggestions when opening projects and an empty list when following a suggestion. - Files already open can receive language services as soon as you install the language plugin. - Restores toolbar run and debug for the current file and debugger attach, and fixes debugging from discovered build entry points. +- Fixes run commands for the current file selecting the wrong project in a multi-project workspace. +- Fixes opening Linux SSH host folders from Windows. - Restores the Languages & Frameworks directory page and removes duplicated directory entries from language settings. #### 🔌 New host capabilities that plugins need @@ -123,9 +126,8 @@ These plugin versions need capabilities added in this release. Lithe 0.8.12 and - macOS requires 13.0 or newer. Windows packages target x64. Linux requires compatible libraries and a graphical environment. - macOS packages use ad hoc signing. Windows installers have no publisher signature. Your system may show security prompts. - SSH workspaces support browsing folders. Opening and editing files, remote terminals, project search, and Git are in development. [#2231](https://github.com/1lck/Lithe-IDEA/issues/2231) -- Windows clients may fail to open paths on the remote host. [#2264](https://github.com/1lck/Lithe-IDEA/issues/2264) - On Windows, a Gradle project can time out during its first import if its Wrapper distribution still needs to download. Run `gradlew.bat --version` in the project directory, wait for it to finish, and retry in Lithe. -- Gradle debugging for Spring Petclinic timed out in testing with the x64 app on Windows 11 ARM64. +- Gradle debugging for Spring Petclinic could not start in the x64 app on Windows 11 ARM64 because the Java language server request timed out. - Apache Ant projects rooted at `build.xml` still have gaps in project import, debugging, and source navigation. [#1761](https://github.com/1lck/Lithe-IDEA/issues/1761) If macOS cannot open `Lithe Desktop.app`, Control-click it in Applications and choose Open. If it is still blocked, run `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"` in Terminal. 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. diff --git a/scripts/desktop/build-desktop-core.sh b/scripts/desktop/build-desktop-core.sh index 356c5ecaa..3bcfc8a44 100755 --- a/scripts/desktop/build-desktop-core.sh +++ b/scripts/desktop/build-desktop-core.sh @@ -317,7 +317,7 @@ PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git" # Lithe-core-rust main at 66a1476: #147 starts, stops and lists port forwards # (remote.startForward, remote.stopForward, remote.forwards) and names the process of each # listening port (S28/S29, #2231). -PINNED_CORE_REVISION="53c7cfa473f7cd5c41ace7d7a872f02fb5a89865" +PINNED_CORE_REVISION="68a69a6d9e300576f98c630a85fbf890ad0686b9" PROFILE="debug" CHECKOUT_ONLY="no" while [[ $# -gt 0 ]]; do diff --git a/shared/platform-feature-matrix/features/remote-workspace.json b/shared/platform-feature-matrix/features/remote-workspace.json index 6f382941e..b3f17db7d 100644 --- a/shared/platform-feature-matrix/features/remote-workspace.json +++ b/shared/platform-feature-matrix/features/remote-workspace.json @@ -23,6 +23,7 @@ "verificationStatus": "pending", "evidence": [ "desktop/internal/core/remote_session.go", + "desktop/internal/core/remote_session_test.go", "desktop/internal/remoteplaceholder/remoteplaceholder.go", "desktop/internal/workbench/remote_browse.go", "desktop/internal/workbench/remote_browse_view.go", @@ -31,7 +32,7 @@ ] }, "owner": "Remote", - "verification": "在“远程开发”窗口选中已保存的 Linux SSH 连接点“连接”:SSH 询问出现在窗口中,连接后窗口改为主机的文件夹选择,从主目录开始列出子文件夹(跳过名称不是 UTF-8 的条目并说明数量),可输入 ~ 或 / 开头的路径跳转,不存在的路径说明原因且不能打开;“返回”断开这次会话回到连接表单。选中文件夹点“打开”:新标签页打开远程工作区,窗口标题为“文件夹 [SSH: 连接名]”,项目树经 Core 列出主机目录(本机占位目录始终为空),右键只有复制主机路径和刷新;编辑器上方说明远程工作区暂时只能浏览文件夹,打开文件、终端、Git、搜索监听和信任项目都被拒绝并提示,不回退到本机;查找工具窗口说明暂不可用,Search Everywhere 只有“操作”页。状态栏前端显示连接名和心跳往返时间;连续两次心跳无响应显示“无响应”,第三次结束会话并按 1、2、4、8、16 秒退避重连,共六次失败后显示“已断开”和原因,菜单里可“重新连接”;连接被关闭时立即重连。菜单里“断开并关闭”关闭工作区并结束会话,退出 Lithe 时关闭所有远程会话。最近项目不记录远程工作区。日志只有 remote.connect、remote.workspace.open/reconnect/disconnect 等动作和失败的操作名,不含主机、用户名、主机路径或主目录。运行 remote_workspace_test.go 的 5 个测试和 TestVisualRemoteWorkspace 无头截图;真实 SSH 主机上的整机验收、Windows 实机(Core 主机路径问题见 #2264)仍待完成。远程文件编辑保存、监听、终端、Git 与端口转发见 remote-development-workspace。", + "verification": "在“远程开发”窗口选中已保存的 Linux SSH 连接点“连接”:SSH 询问出现在窗口中,连接后窗口改为主机的文件夹选择,从主目录开始列出子文件夹(跳过名称不是 UTF-8 的条目并说明数量),可输入 ~ 或 / 开头的路径跳转,不存在的路径说明原因且不能打开;“返回”断开这次会话回到连接表单。选中文件夹点“打开”:新标签页打开远程工作区,窗口标题为“文件夹 [SSH: 连接名]”,项目树经 Core 列出主机目录(本机占位目录始终为空),右键只有复制主机路径和刷新;编辑器上方说明远程工作区暂时只能浏览文件夹,打开文件、终端、Git、搜索监听和信任项目都被拒绝并提示,不回退到本机;查找工具窗口说明暂不可用,Search Everywhere 只有“操作”页。状态栏前端显示连接名和心跳往返时间;连续两次心跳无响应显示“无响应”,第三次结束会话并按 1、2、4、8、16 秒退避重连,共六次失败后显示“已断开”和原因,菜单里可“重新连接”;连接被关闭时立即重连。菜单里“断开并关闭”关闭工作区并结束会话,退出 Lithe 时关闭所有远程会话。最近项目不记录远程工作区。日志只有 remote.connect、remote.workspace.open/reconnect/disconnect 等动作和失败的操作名,不含主机、用户名、主机路径或主目录。运行 remote_workspace_test.go 的 5 个测试和 TestVisualRemoteWorkspace 无头截图;在 Windows 运行 TestCoreRefusesUnadaptedCommandsAndAClosedSessionDetachesTheBinding,验证 Linux 主机路径能通过绑定校验。真实 SSH 主机上的整机验收仍待完成。远程文件编辑保存、监听、终端、Git 与端口转发见 remote-development-workspace。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { @@ -68,5 +69,5 @@ "verificationStatus": "pending" } }, - "notes": "Viva:连接和会话由 Core 的 remote.connect/remote.disconnect/remote.closeAll 管理,远端服务按嵌入清单上传;文件夹选择用 remote.readDir。打开的工作区以用户缓存目录下的空占位目录作为本机根,每个请求带上远程绑定(会话、占位根、主机根),Core 只对有远程适配的命令放行,其余以 not_supported 拒绝,所以没有远程实现的功能在桌面端直接拒绝而不读本机占位目录。macOS 由单元测试与无头截图覆盖;Windows 上 Core 按本机规则校验主机路径(#2264),推测远程请求全部被拒绝,未实机验证。" + "notes": "Viva:连接和会话由 Core 的 remote.connect/remote.disconnect/remote.closeAll 管理,远端服务按嵌入清单上传;文件夹选择用 remote.readDir。打开的工作区以用户缓存目录下的空占位目录作为本机根,每个请求带上远程绑定(会话、占位根、主机根),Core 只对有远程适配的命令放行,其余以 not_supported 拒绝,所以没有远程实现的功能在桌面端直接拒绝而不读本机占位目录。macOS 由单元测试与无头截图覆盖;Core 按 POSIX 规则校验 Linux 主机路径,按客户端规则处理本机占位根(#2264)。" }