Closed
Description
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