From c4e699cecce221c53a5d1b910ce45342f23df4b6 Mon Sep 17 00:00:00 2001 From: MemRelay Date: Sun, 22 Nov 2026 01:52:24 +0800 Subject: [PATCH] =?UTF-8?q?create:=20Cursor=20=E4=B8=AD=E7=94=A8=20rust-an?= =?UTF-8?q?alyzer=200.4.3114=20=E8=80=8C=E4=B8=8D=E6=98=AF=20RLS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:uiframe-ra-vsix-20261122 MemRelay-Resource: 2c9a401a-4f61-4a4a-82a1-d1dd311a6e5b --- ... 中用 rust-analyzer 0.4.3114 而不是 RLS.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 projects/0017cd22-9dea-4f87-9595-fc050356ff3c/Cursor 中用 rust-analyzer 0.4.3114 而不是 RLS.md diff --git a/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/Cursor 中用 rust-analyzer 0.4.3114 而不是 RLS.md b/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/Cursor 中用 rust-analyzer 0.4.3114 而不是 RLS.md new file mode 100644 index 0000000..193522b --- /dev/null +++ b/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/Cursor 中用 rust-analyzer 0.4.3114 而不是 RLS.md @@ -0,0 +1,23 @@ +--- +title: Cursor 中用 rust-analyzer 0.4.3114 而不是 RLS +type: experience +permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/cursor-中用-rust-analyzer-0.4.3114-而不是-rls +stable_id: 2c9a401a-4f61-4a4a-82a1-d1dd311a6e5b +scope: project +memory_type: experience +project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: uiframe-ra-vsix-20261122 +created_at: '2026-11-21T17:52:21.376282+00:00' +updated_at: '2026-11-21T17:52:21.376282+00:00' +tags: +- rust +- cursor +- rust-analyzer +--- + +Cursor 3.31.11 对扩展报告 VS Code 1.128.0。应用商店里的 rust-lang.rust-analyzer 被标成 Windows 64 位不可用,且 0.4.3115 及更新要求 engines.vscode ^1.144.0,CLI 会拒绝安装。可用做法是从 Open VSX 下载 win32-x64 VSIX,版本用 rust-analyzer 0.4.3114(engines ^1.93.0,2026-11-09),已装到本机。不要装 rust-lang.rust:它默认要求已从 stable 工具链移除的 rls 组件。 + +工作区根目录 E:\\code\\UIFrame 没有 Cargo.toml,语言服务会报 failed to find any projects。已在 .vscode/settings.json 设 rust-analyzer.linkedProjects 为 E:/code/UIFrame/qt/rust/Cargo.toml,并打开 restartServerOnConfigChange。这样打开 .rs 文件有高亮,Ctrl+单击可以跳到定义。Qt 的 QMAKE 仍由 qt/rust/.cargo/config.toml 提供。 \ No newline at end of file