Skip to content

prelude unavailable in latest rust-analyzer releases #18423

Closed as not planned
Closed as not planned
@indietyp

Description

@indietyp

Since a couple of days, the prelude has been missing from my installation, a complete re-install via rustup, removing the target folder (either by deleting it or cargo clean), and clearing cargo cache all didn't help.

I did a tiny bit of dissecting, and the problem started appearing between rust-analyzer 1.84.0-nightly (3ed6e3cc 2024-10-17) and rust-analyzer 1.84.0-nightly (e92993db 2024-10-18), using any rust-analyzer version prior to 2024-10-18 does not result in the issue.

The issue is that the prelude is seemingly missing, prelude types such as Option are not imported/shown. I've attached examples of what I mean.

This also propagates to macros such as tracing, where I am getting errors, such as: unresolved macro line (macro-error), see the picture below.

The logs seem to indicate that RA is stuck during some kind of resolution (the log has been uploaded as an LFS object into the regression repository).

rust-analyzer version: rust-analyzer 1.84.0-nightly (df4ca44d 2024-10-27)

rustc version: rustc 1.84.0-nightly (df4ca44d3 2024-10-27)

editor or extension: Zed, replicated in Zed Preview and VSCode

relevant settings: RA_LOG=info

repository link: https://github.com/indietyp/rust-analyzer-regressions/tree/prelude-missing, branch prelude missing

Image
Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions