Skip to content

Parser gets stuck after trying to parse auto-generated file #13788

Closed
@jedel1043

Description

@jedel1043

Rust analyzer's parser thread worker gets stuck after trying to parse big, auto-generated files, making r-a start throwing a lot of errors.
I would expect r-a to skip parsing all files marked with // @generated, but it's apparently still trying to parse them anyways.

To reproduce

git clone https://github.com/jedel1043/ra-bug.git && cd ra-bug

After opening the repo with r-a, it should start throwing a lot of errors.

rust-analyzer version: 0.3.1317-standalone

rustc version: rustc 1.66.0 (69f9c33d7 2022-12-12)

cc @Manishearth

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions