GNU bug report logs -
#70690
[PATCH] gnu: rust: install rust-analyzer-proc-macro-srv
Previous Next
To reply to this bug, email your comments to 70690 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#70690
; Package
guix-patches
.
(Wed, 01 May 2024 03:49:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Brennan Vincent <brennan <at> umanwizard.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 01 May 2024 03:49:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/rust.scm (rust): Install rust-analyzer-proc-macro-srv
rust-analyzer relies on this binary existing, and recent versions
of rust no longer install it by default.
Change-Id: I7ce59c065a35cf2592e7eb2fa57317aa9a8df675
---
gnu/packages/rust.scm | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 8cbbac53ac..24783d8aa2 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1214,7 +1214,9 @@ (define-public rust
"src/tools/cargo"
"src/tools/clippy"
"src/tools/rust-analyzer"
- "src/tools/rustfmt"))))
+ "src/tools/rust-analyzer/crates/proc-macro-srv-cli"
+ "src/tools/rustfmt"))
+ ))
(replace 'check
;; Phase overridden to also test more tools.
(lambda* (#:key tests? parallel-build? #:allow-other-keys)
@@ -1244,7 +1246,16 @@ (define-public rust
(format #f "prefix = ~s" (assoc-ref outputs "tools"))))
(invoke "./x.py" "install" "clippy")
(invoke "./x.py" "install" "rust-analyzer")
- (invoke "./x.py" "install" "rustfmt")))
+ (invoke "./x.py" "install" "rustfmt")
+ ;; ./x.py doesn't have an install target
+ ;; for the proc macro server, so we install it manually
+ (let* ((out (assoc-ref outputs "out"))
+ (platform ,(platform-rust-target
+ (lookup-platform-by-target-or-system
+ (or (%current-target-system)
+ (%current-system))))))
+ (install-file (string-append "build/" platform "/stage2-tools/" platform "/release/rust-analyzer-proc-macro-srv")
+ (string-append out "/libexec")))))
(add-after 'install 'install-rust-src
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "rust-src"))
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#70690
; Package
guix-patches
.
(Wed, 28 Aug 2024 16:11:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 70690 <at> debbugs.gnu.org (full text, mbox):
I tested this patch and it resolved an project error while using
rust-analyzer with Eglot. Seems good to me.
Without this patch rust-analyzer prints things like:
--8<---------------cut here---------------start------------->8---
rust-analyzer [unresolved-proc-macro]: proc macro `Parser` not expanded:
cannot find proc-macro server in sysroot /gnu/store/blah-rust-1.77.1.
--8<---------------cut here---------------end--------------->8---
--
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#70690
; Package
guix-patches
.
(Sat, 15 Feb 2025 01:21:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 70690 <at> debbugs.gnu.org (full text, mbox):
i found this helpful too
Information forwarded
to
guix-patches <at> gnu.org
:
bug#70690
; Package
guix-patches
.
(Thu, 20 Feb 2025 17:26:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 70690 <at> debbugs.gnu.org (full text, mbox):
Hi Rust team,
On Tue, 30 Apr 2024 at 23:47, Brennan Vincent <brennan <at> umanwizard.com> wrote:
> * gnu/packages/rust.scm (rust): Install rust-analyzer-proc-macro-srv
> rust-analyzer relies on this binary existing, and recent versions
> of rust no longer install it by default.
>
> Change-Id: I7ce59c065a35cf2592e7eb2fa57317aa9a8df675
> ---
> gnu/packages/rust.scm | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
This patch is marked as reviewed-looks-good and had fallen into the
cracks. Merge or close? WDYT?
Cheers,
simon
Information forwarded
to
guix-patches <at> gnu.org
:
bug#70690
; Package
guix-patches
.
(Thu, 20 Feb 2025 17:33:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 70690 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Thu, Feb 20, 2025 at 05:27:29PM +0100, Simon Tournier wrote:
> Hi Rust team,
>
> On Tue, 30 Apr 2024 at 23:47, Brennan Vincent <brennan <at> umanwizard.com> wrote:
> > * gnu/packages/rust.scm (rust): Install rust-analyzer-proc-macro-srv
> > rust-analyzer relies on this binary existing, and recent versions
> > of rust no longer install it by default.
> >
> > Change-Id: I7ce59c065a35cf2592e7eb2fa57317aa9a8df675
> > ---
> > gnu/packages/rust.scm | 15 +++++++++++++--
> > 1 file changed, 13 insertions(+), 2 deletions(-)
>
> This patch is marked as reviewed-looks-good and had fallen into the
> cracks. Merge or close? WDYT?
The patch looks so good I basically re-implemented it myself! :/
Currently the version of this patch sitting on the rust-team branch
installs rust-analyzer-proc-macro-srv from stage1-tools-bin, is it
supposed to be from stage2-tools instead? If so I'll create a patch to
fix that and attribute it to you (Brennan) since I should've checked the
patch tracker.
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#70690
; Package
guix-patches
.
(Thu, 20 Feb 2025 21:52:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 70690 <at> debbugs.gnu.org (full text, mbox):
Efraim Flashner <efraim <at> flashner.co.il> writes:
> On Thu, Feb 20, 2025 at 05:27:29PM +0100, Simon Tournier wrote:
>> Hi Rust team,
>>
>> On Tue, 30 Apr 2024 at 23:47, Brennan Vincent <brennan <at> umanwizard.com> wrote:
>> > * gnu/packages/rust.scm (rust): Install rust-analyzer-proc-macro-srv
>> > rust-analyzer relies on this binary existing, and recent versions
>> > of rust no longer install it by default.
>> >
>> > Change-Id: I7ce59c065a35cf2592e7eb2fa57317aa9a8df675
>> > ---
>> > gnu/packages/rust.scm | 15 +++++++++++++--
>> > 1 file changed, 13 insertions(+), 2 deletions(-)
>>
>> This patch is marked as reviewed-looks-good and had fallen into the
>> cracks. Merge or close? WDYT?
>
> The patch looks so good I basically re-implemented it myself! :/
>
> Currently the version of this patch sitting on the rust-team branch
> installs rust-analyzer-proc-macro-srv from stage1-tools-bin, is it
> supposed to be from stage2-tools instead? If so I'll create a patch to
> fix that and attribute it to you (Brennan) since I should've checked the
> patch tracker.
I didn't think about it too hard, but I'm not sure why we'd ever prefer
to install things from an _earlier_ bootstrapping stage...
> --
> Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted
This bug report was last modified 114 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.