Problem description I've run in to a very weird issue. rust-analyzer-proc-macro-srv, the program shipped with the rust package and used by rust-analyzer to resolve and expand proc macros, would crash with a segfault signal (11) when bein...
其中,rust-analyzer/crates/proc-macro-srv-cli/src/main.rs是proc-macro-srv-cli库的主要文件,它定义了该库的命令行接口和主要逻辑。 proc-macro-srv-cli是rust-analyzer用来测试和调试“过程宏”处理器的命令行工具。过程宏是Rust中一种特殊的宏,它们允许你在编译时生成代码。 该文件首先导入了一些外部依赖,其...
在rust-analyzer的源代码中,rust/src/tools/rust-analyzer/crates/ide-completion/src/completions/use_.rs文件的作用是处理Rust代码中的use语句,为用户提供相关的自动补全功能。 use语句是Rust中用于导入其他模块中的定义的关键字。它可以用于引入函数、类型、常量等,并简化代码中的使用。例如,使用use语句可以将std::...
If possible, consider making this change to rust-lang/rust-analyzer instead. cc @rust-lang/rust-analyzer Fabian-Gruenbichler mentioned this pull request Jan 16, 2025 proc-macro-srv: drop unnecessary usage of RTLD_DEEPBIND #135586 Closed bjorn3 reviewed Jan 16, 2025 View reviewed changes ...
proc macro`main`notexpanded:cannot find proc-macro serverinsysroot`C:\Users\zerok\.rustup\toolchains\stable-x86_64-pc-windows-gnu` Run Code Online (Sandbox Code Playgroud) 与此同时,在 VSCode 中,我的 rust-analyzer 扩展开始失败。我卸载了它,重新启动 VSCode,然后重新安装。它不断地给出同样的错...
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_srv proc_macro_test profile project_model rust-analyzer sourcegen stdx syntax test_utils text_edit toolchain tt vfs 在基于树状结构的布局做同样的事情比较困难的: 只从单层级上看并不能告诉你哪些文件夹包含嵌套的 crate 而在所有层级上看又会列出太多的文件夹(无关文件干扰视觉) ...
proc_macro_srv proc_macro_test profile project_model rust-analyzer sourcegen stdx syntax test_utils text_edit toolchain tt vfs 在基于树状结构的布局做同样的事情比较困难的: 只从单层级上看并不能告诉你哪些文件夹包含嵌套的 crate 而在所有层级上看又会列出太多的文件夹(无关文件干扰视觉) ...
on <= 1.63.0 i have no rust-analyzer-proc-macro-srv, does it not exist or is it not supported anymore for those versions so it got removed? $ ls .rustup/toolchains/*/libexec .rustup/toolchains/1.63.0-x86_64-unknown-linux-gnu/libexec: cargo-credential-1password .rustup/toolchains/1.6...
proc_macro_srv proc_macro_test profile project_model rust-analyzer sourcegen stdx syntax test_utils text_edit toolchain tt vfs 在基于树状结构的布局做同样的事情比较困难的: - 只从单层级上看并不能告诉你哪些文件夹包含嵌套的 crate - 而在所有层级上看又会列出太多的文件夹(无关文件干扰视觉) ...