-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with rowan 0.15.16
: protocol error: InternalError: request handler panicked: tree is mutable
when asking for documentation in big crate graphs
#17914
Comments
I think that it's coming from here |
Did we update |
Ohhh I know what is going on! I installed with So the fix is to pass |
I don't know, it's more likely that we're misusing the API and the new check just happens to catch that. |
I agree. Maybe we should check it but I'm working on other issues right now. I'll try looking into this if this is not resolved by the time I can work on this |
But is this possible? The r-a is specifying the version as rust-analyzer/crates/syntax/Cargo.toml Line 19 in 0765978
This is quite misterious 🤔 |
That just means "newer than", it's |
Oh, how come I didn't know that so far 😅 |
Pin `rowan` to `0.15.15` To prevent #17914, I think that it would be safer pinning this before we fix it correctly
Could #15710 be related? |
protocol error: InternalError: request handler panicked: tree is mutable
when building a crate with a dependency on bevy 0.14.1
when asking for documentationrowan 0.15.16
: protocol error: InternalError: request handler panicked: tree is mutable
when asking for documentation in big crate graphs
Yeah, that will change how things work, but I don't know when it's going to happen. |
@ShoyuVanilla I've summarized my current understanding of the state/approach in this comment: #15710 (comment) |
Cool! That makes clear the current status and what should be done. |
Ah you already did that |
rust-analyzer version:
07659783fdfd4ec0a0bffa93017e33e31e567e42
rustc version:
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
editor or extension:
hx
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
) none of thosecode snippet to reproduce:
Asking for documentation on
println!
fails withprotocol error: InternalError: request handler panicked: tree is mutable
, which comes from here I think:rust-analyzer/crates/rust-analyzer/src/handlers/dispatch.rs
Line 268 in 0765978
I haven't found the string
tree is mutable
either in Helix or R-A nor in the vendored dependencies of eitherThe text was updated successfully, but these errors were encountered: