rustc 1.63.0-nightly (5435ed691 2022-06-07) rust-analyzer 66a842124b52cb005e9dee4605df161badb295e0 Patch to see what's going on crates/proc-macro-srv/src/abis/abi_1_58/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/...
针对你遇到的“proc-macro server's api version (4) is newer than rust-analyzer's (2)”错误,这确实是一个版本不兼容的问题。下面是一些可能的解决步骤: 理解错误原因: 这个错误表明你的系统中运行的proc-macro服务器的API版本(4)比rust-analyzer当前支持的版本(2)要新。这通常发生在系统更新或者安装了新...
proc-macro-srvis the actual implementation of the proc-macro server logic, irrespective of the RPC API. This will need the least changes. [proc-macro-api]https://github.com/rust-lang/rust-analyzer/tree/master/crates/proc-macro-apiis the definition of the RPC protocol. proc-macro-srv-cliis...
。实际上这些宏都是声明式宏(也叫示例宏或macro_rules!),rust 还支持过程宏,过程宏为我们提供了强...
#[proc_macro_attribute] F 标记fn 为属性宏, 调用方式如一个新的 #[x]. REF Derive作用说明 #[derive(X)] T 通过某些过程宏提供 trait X 的impl . 🔥 REF #[cfg] 这些属性用于条件编译: 配置属性作用说明 #[cfg(X)] * 如果提供了配置 X 则编译. REF #[cfg(all(X, Y, Z))] * 如果提供...
rust-analyzer version: 0.0.0 (427061d2022-06-19) rustc version: rustc 1.63.0-nightly (bb8c2f411 2022-06-19) on Arch Linux relevant settings: rust-analyzer.procMacro.attributes.enable is true, no macros have been ignored. rlcurrall, pablosichert, kotatsuyaki, ClSlaid, constfold, vidhan...
and then after rust-analyzer has started make any change tostruct Foo;. This will result in a "proc-macro crate build data is missing dylib path" error. This doesn't make it clear that this is because disabling--all-targetspreventsserde_derivefrom getting built as it is a dev-dependency...
thread 'main' has overflowed its stack [ERROR rust_analyzer::reload] proc macro server crashed: failed to write request: The pipe is being closed. (os error 232) [ERROR rust_analyzer::reload] proc macro server crashed: failed to write request: The pipe is being closed. (os error 232) ...
59 - 60 68 - name: Test 61 69 run: cargo test --features sysroot-abi -p proc-macro-srv -p proc-macro-srv-cli -p proc-macro-api -- --quiet 62 70 0 commit comments Comments0 (0) Failed to load comments.Retry
proc-macro panicked: unsupported proc macro punctuation character '{'. EDIT:cargo builddoes not result in the proc macro panic, which is why I'm assuming the fault lies with analyzer and not with the macro itself (this is tokio_macros 2.5.0) – let me know if there's something I can...