-
Notifications
You must be signed in to change notification settings - Fork 257
rust-src and rust-analysis components out of sync? #1171
Comments
Disappointing that this "src" issue managed to fall into the stable release. You may be right that out of date dependencies on the stable channel are to blame. As a workaround switch to Related: rust-lang/rust#53586, #1140 |
@nrc goto-definition is not fixed in stable |
Can confirm same on Windows (just to rule out platform-specific issue). |
Hmm, so both #1138 and #1147 made it to stable, which they probably shouldn't have done, however, the latter undoes the former, so I'm not sure what is going on. On Rust, rust-lang/rust#56194 should have fixed the breakage done by rust-lang/rust#53586 but I don't think either of them made it to master. |
We're using 0.16.10 of rls-analysis. We probably want a fork, that has the most recent commits, but with d5d2f98d6f7668e2b6139c6cd93a8d20e28c396b reverted. |
@nrc I pushed rls-analysis branch and rls branch using that at (based on what's in 1.31 rust/stable now): However, rls now points to a branch at rust-dev-tools/ team, which I'm not sure we accept in-tree. |
I'm seeing the same issue on When trying to go to definition on, for example, The real location is: Running on |
This will be fixed in Rust 1.31.1, scheduled to be released on Thursday 20th. |
[stable] 1.31.1 point release Rust 1.31.1 is scheduled to be released on Thursday 20th, with the following changes: * #56562: Update libc version required by rustc *(different patch made by me)* * #56615: Update the book to fix some edition-related bugs * rls submodule update to [`b379ef7`](rust-lang/rls@b379ef7), including: * rust-lang/rls#1170: Fix for common infinte loop regression * rust-lang/rls#1171: Can't jump to std defs r? @Mark-Simulacrum cc @rust-lang/core @rust-lang/release
@rekka @RReverser @petergardfjall can you check if this is fixed in Rust 1.31.1? You can download the pre-release with:
|
@pietroalbini Seems to work now with no problems on macOS and Linux for me. Thanks for the fix! And as a nice bonus, RLS now respects the target directory in |
It appears to be working on my end as well! |
Yay finally. |
Working on Windows using Rust 1.31.1! Thanks! |
Pkgsrc changes: * Sadly, I had to reinstate the "make tar files" rust code to make it possible to build cross-compiled bootstrap kits. * Add an adjustable "BUILD_TARGET", "dist" for cross-building a bootstrap kit, "build" for a normal native build. * New bootstrap kits built for NetBSD/powerpc, NetBSD/earmv7hf, and NetBSD/sparc64 version 1.31.1. * gcc-wrap script amended to also drop -Wl,--enable-new-dtags (so it could be used outside pkgsrc) * Worked around use of AtomicU64 in release build tool (ugly band-aid patch). Some platforms lack support for that type and associated operations. Upstream changes: - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562] - [Fix broken go-to-definition in RLS][rls/1171] - [Fix infinite loop on hover in RLS][rls/1170] [56562]: rust-lang/rust#56562 [rls/1171]: rust-lang/rls#1171 [rls/1170]: rust-lang/rls#1170
Is this issue resolved for the target x86_64-pc-windows-msvc? Just wondering.
|
Not sure if this is the place to report this. The
rust-src
andrust-analysis
components seem to be out of sync on Rust 1.31.0 stable: The go-to-definition on std items tries to open a file with a slightly different location:For example, Go to definition for
HashMap
tries to open(note the missing
src
directory betweenrust
andlibstd
) while the file is located atI have the problem both on Linux and macOS (while running rls through vim if that makes any difference). Installed using
rustup component add rls rust-analysis rust-src
. Even after I tried torustup uninstall stable
and reinstall it the problem persists.The text was updated successfully, but these errors were encountered: