[MacPorts] #68987: rust-analyzer @20231204: Failed to spawn proc-macro servers

MacPorts noreply at macports.org
Wed Dec 27 07:18:43 UTC 2023


#68987: rust-analyzer @20231204: Failed to spawn proc-macro servers
--------------------+------------------------------------
 Reporter:  l2dy    |      Owner:  herbygillot
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  rust-analyzer rust-src
--------------------+------------------------------------
 Attempting to use rust-analyzer with Eglot returns the following error.

 {{{
 [eglot] Server reports (type=2): Failed to spawn one or more proc-macro
 servers.

 - cannot find proc-macro-srv, the workspace `.../cargo2port` is missing a
 sysroot
 Failed to find sysroot for Cargo.toml file .../cargo2port/Cargo.toml. Is
 rust-src installed? can't load standard library from sysroot
 /opt/local
 (discovered via `rustc --print sysroot`)
 try installing the Rust source the same way you installed rustc
 }}}

 `rust-src` seems to install source files under
 `/opt/local/libexec/rust/src`, which does not match what `rustc --print
 sysroot` returns.

 See also https://github.com/rust-lang/rust-analyzer/issues/16001.

-- 
Ticket URL: <https://trac.macports.org/ticket/68987>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list