GNU bug report logs - #42179
[PATCH] gnu: Add racer.

Previous Next

Package: guix-patches;

Reported by: John Soo <jsoo1 <at> asu.edu>

Date: Fri, 3 Jul 2020 16:16:02 UTC

Severity: normal

Tags: patch

Done: John Soo <jsoo1 <at> asu.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42179 in the body.
You can then email your comments to 42179 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#42179; Package guix-patches. (Fri, 03 Jul 2020 16:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Soo <jsoo1 <at> asu.edu>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 03 Jul 2020 16:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add racer.
Date: Fri, 03 Jul 2020 09:14:59 -0700
[Message part 1 (text/plain, inline)]
Hi Guix,

I have been writing a lot of Rust recently. Racer provides
autocompletion. It uses the source of rust standard libraries among
other tools.

There are two items I paid close attention to:

1. Add a "source" output for rust.  This roughly corresponds to the
rustup component.  Using the rustup toolchain to manage rust tooling the
command would be: rustup component add rust-src. However, using guix, we
already have the source.

2. Racer requires features that are not in the stable branch of rust.
Unfortunately this is not any fault of racer. Racer uses crates from
rustc which uses unstable features.  To get around this, I built
racer using the undocumented and unsupported RUSTC_BOOTSTRAP environment
variable. Perhaps the better future solution would be to provide a
nightly rustc and use that to compile racer.

I hope someone gets some use out of racer!

- John

[0001-gnu-Add-rust-peg-runtime-0.6.patch (text/x-patch, attachment)]
[0002-gnu-Add-rust-peg-macros-0.6.patch (text/x-patch, attachment)]
[0003-gnu-Add-rust-peg-0.6.patch (text/x-patch, attachment)]
[0004-gnu-Add-rust-derive-more-0.99.patch (text/x-patch, attachment)]
[0005-gnu-Add-rust-rls-span-0.5.patch (text/x-patch, attachment)]
[0006-gnu-Add-rust-racer-interner-0.1.patch (text/x-patch, attachment)]
[0007-gnu-Add-rust-racer-cargo-metadata-0.1.patch (text/x-patch, attachment)]
[0008-gnu-Add-rust-measureme-0.7.patch (text/x-patch, attachment)]
[0009-gnu-Add-rust-rustc-ap-rustc-arena-654.0.patch (text/x-patch, attachment)]
[0010-gnu-Add-rust-rustc-ap-rustc-macros-654.0.patch (text/x-patch, attachment)]
[0011-gnu-Add-rust-rustc-ap-rustc-lexer-654.0.patch (text/x-patch, attachment)]
[0012-gnu-Add-rust-rustc-ap-graphviz-654.0.patch (text/x-patch, attachment)]
[0013-gnu-Add-rust-rustc-rayon-core-0.3.patch (text/x-patch, attachment)]
[0014-gnu-Add-rust-rustc-rayon-0.3.patch (text/x-patch, attachment)]
[0015-gnu-Add-rust-rustc-ap-serialize-654.0.patch (text/x-patch, attachment)]
[0016-gnu-Add-rust-rustc-ap-rustc-index-654.0.patch (text/x-patch, attachment)]
[0017-gnu-Add-rust-rustc-ap-rustc-data-structures-654.0.patch (text/x-patch, attachment)]
[0018-gnu-Add-rust-rustc-ap-rustc-span-654.0.patch (text/x-patch, attachment)]
[0019-gnu-Add-rust-rustc-ap-rustc-ast-654.0.patch (text/x-patch, attachment)]
[0020-gnu-Add-rust-rustc-ap-rustc-target-654.0.patch (text/x-patch, attachment)]
[0021-gnu-Add-rust-rustc-ap-rustc-ast-pretty-654.0.patch (text/x-patch, attachment)]
[0022-gnu-Add-rust-termize-0.1.patch (text/x-patch, attachment)]
[0023-gnu-Add-rust-yansi-term-0.1.patch (text/x-patch, attachment)]
[0024-gnu-Add-rust-annotate-snippets-0.8.patch (text/x-patch, attachment)]
[0025-gnu-Add-rust-annotate-snippets-0.6.patch (text/x-patch, attachment)]
[0026-gnu-Add-rust-ap-rustc-errors-654.0.patch (text/x-patch, attachment)]
[0027-gnu-Add-rust-rustc-ap-rustc-feature-654.0.patch (text/x-patch, attachment)]
[0028-gnu-Add-rust-rustc-ap-rustc-session-654.0.patch (text/x-patch, attachment)]
[0029-gnu-rust-unicode-normalization-0.1-update-to-0.1.11.patch (text/x-patch, attachment)]
[0030-gnu-Add-rust-rustc-ap-rustc-parse-654.0.patch (text/x-patch, attachment)]
[0031-gnu-Add-racer.patch (text/x-patch, attachment)]
[0032-gnu-rust-install-source-output.patch (text/x-patch, attachment)]
[0033-gnu-emacs-racer-Patch-paths-to-rust-source-and-racer.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#42179; Package guix-patches. (Sun, 12 Jul 2020 14:59:01 GMT) Full text and rfc822 format available.

Message #8 received at 42179 <at> debbugs.gnu.org (full text, mbox):

From: Jakub Kądziołka <kuba <at> kadziolka.net>
To: John Soo <jsoo1 <at> asu.edu>
Cc: 42179 <at> debbugs.gnu.org, efraim <at> flashner.co.il
Subject: Re: [PATCH] gnu: Add racer.
Date: Sun, 12 Jul 2020 16:58:23 +0200
[Message part 1 (text/plain, inline)]
On Fri, Jul 03, 2020 at 09:14:59AM -0700, John Soo wrote:
> 2. Racer requires features that are not in the stable branch of rust.
> Unfortunately this is not any fault of racer. Racer uses crates from
> rustc which uses unstable features.  To get around this, I built
> racer using the undocumented and unsupported RUSTC_BOOTSTRAP environment
> variable. Perhaps the better future solution would be to provide a
> nightly rustc and use that to compile racer.

How about we use the source of rust itself for the rustc-ap packages?
That way, updating rustc won't actually ever break because of RUSTC_BOOTSTRAP,
since the use of the unstable features comes from the same source of
truth that will actually compile them.

Regards,
Jakub Kądziołka
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#42179; Package guix-patches. (Sun, 19 Jul 2020 23:41:01 GMT) Full text and rfc822 format available.

Message #11 received at 42179 <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: Jakub Kądziołka <kuba <at> kadziolka.net>
Cc: 42179 <at> debbugs.gnu.org, efraim <at> flashner.co.il
Subject: Re: [PATCH] gnu: Add racer.
Date: Sun, 19 Jul 2020 16:40:43 -0700
Hi Jakub,

Sorry I am late to respond. 

> How about we use the source of rust itself for the rustc-ap packages?
> That way, updating rustc won't actually ever break because of RUSTC_BOOTSTRAP,
> since the use of the unstable features comes from the same source of
> truth that will actually compile them.

I like the idea of keeping racer up to date with rust. Do you think making racer an output of rust would be good or is a separate package depending on rust a better option?

Thanks!

John



Information forwarded to guix-patches <at> gnu.org:
bug#42179; Package guix-patches. (Fri, 01 Jan 2021 18:22:01 GMT) Full text and rfc822 format available.

Message #14 received at 42179 <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: Jakub Kądziołka <kuba <at> kadziolka.net>
Cc: 42179 <at> debbugs.gnu.org, efraim <at> flashner.co.il
Subject: Re: bug#42179: [PATCH] gnu: Add racer.
Date: Fri, 01 Jan 2021 10:21:38 -0800
Hi Jakub and Efraim,

I agree with Jakub that racer-like packages would be most helpful if
provided as an output of rust. There are plenty of other places where
this guarantee is not provided like cabal-install. But, since racer is
now superceded by rls and rust-analyzer, I am going to close this. Rls
and rust-analyzer are both outputs of rust after 1.46 and it has been
shown to work for rustfmt already.

Thanks again,

John




Reply sent to John Soo <jsoo1 <at> asu.edu>:
You have taken responsibility. (Fri, 01 Jan 2021 18:24:02 GMT) Full text and rfc822 format available.

Notification sent to John Soo <jsoo1 <at> asu.edu>:
bug acknowledged by developer. (Fri, 01 Jan 2021 18:24:02 GMT) Full text and rfc822 format available.

Message #19 received at 42179-done <at> debbugs.gnu.org (full text, mbox):

From: John Soo <jsoo1 <at> asu.edu>
To: 42179-done <at> debbugs.gnu.org
Subject: Racer is superceded by rls and rust-analyzer
Date: Fri, 01 Jan 2021 10:22:57 -0800




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 30 Jan 2021 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.