Re: rust-analyzer: proc-macro support broken

2024-01-24 Thread Laurent Cheylus
Hi, On Tue, 23 Jan 2024 21:15:00 +0100, Hukadan wrote: > Thank you for the diff. I tried it but it does not solve the problem. I > had a look at proc-macro-srv-cli and the sysroot-abi needs to be > enabled: > https://github.com/rust-lang/rust-analyzer/blob/master/crates/proc- macro-srv-cli/src/ma

Re: rust-analyzer: proc-macro support broken

2024-01-23 Thread Hukadan
On Mon Jan 22, 2024 at 1:49 PM CET, Sebastien Marie wrote: > Edd Barrett writes: > > > > > This does not occur when using the LSP with a rustup-installed toolchain on > > Linux. > > > > I don't recall seeing this error when I was building RA from source (the > > magic > > command I used to use to

Re: rust-analyzer: proc-macro support broken

2024-01-22 Thread Edd Barrett
Hi, On Mon, Jan 22, 2024 at 01:49:16PM +0100, Sebastien Marie wrote: > It would be interesting to know if it is enough for the user who > contacted you. FWIW, the user provided the minimal example I posted in my prior message. If that works, I think you have your answer. -- Best Regards Edd Ba

Re: rust-analyzer: proc-macro support broken

2024-01-22 Thread Sebastien Marie
Edd Barrett writes: > > This does not occur when using the LSP with a rustup-installed toolchain on > Linux. > > I don't recall seeing this error when I was building RA from source (the magic > command I used to use to build/install was `cargo xtask install --server`). > > I notice that in the so

rust-analyzer: proc-macro support broken

2024-01-22 Thread Edd Barrett
Hi, We imported rust-analyzer last week, and right off the bat I've had a user report that it doesn't work right with proc macros. src/main.rs: ``` [tokio::main] async fn main() { println!("Hello, world!"); } ``` Cargo.toml: ``` [package] name = "pmtest" version = "0.1.0" edition = "2021" [