FS#78314 - [rust-analyzer] [rust] proc macro server is broken
Attached to Project:
Community Packages
Opened by Laurențiu Nicola (lnicola) - Thursday, 27 April 2023, 09:55 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 28 April 2023, 23:31 GMT
Opened by Laurențiu Nicola (lnicola) - Thursday, 27 April 2023, 09:55 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 28 April 2023, 23:31 GMT
|
Details
Description:
The proc macro server is supposed to be built within the Rust source tree, since it shares code with the compiler. A rustup install has it under e.g. ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/libexec/rust-analyzer-proc-macro-srv. This needs to be explicitly enabled since https://github.com/rust-lang/rust/commit/11e002a001348e7ea035c0cb2665be806e2a832e. This means that: - rust-analyzer-proc-macro-srv needs to be built together with the Rust toolchain - the rust-analyzer package should not install the server, since that version doesn't work Steps to reproduce: - load a project using a proc macro, notice the "server is built without sysroot support" error Additional information: - https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/proc.20macro.20not.20expanded.20for.20locally.20defined.20macros - https://github.com/rust-lang/rust/pull/107220 |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Friday, 28 April 2023, 23:31 GMT
Reason for closing: Fixed
Additional comments about closing: rust 1:1.69.0-3,
rust-analyzer 20230424-3
Friday, 28 April 2023, 23:31 GMT
Reason for closing: Fixed
Additional comments about closing: rust 1:1.69.0-3,
rust-analyzer 20230424-3
Comment by
Daniel M. Capella (polyzen) -
Thursday, 27 April 2023, 23:38 GMT
Edit: Disregard ;D
Comment by
Daniel M. Capella (polyzen) -
Friday, 28 April 2023, 00:11 GMT
The server has been removed from the rust-analyzer package.
Comment by
Jan Alexander Steffens (heftig) -
Friday, 28 April 2023, 23:30 GMT
The server has been restored to the rust package.