rust-lang / rls

Repository for the Rust Language Server (aka RLS)
Other
3.51k stars 257 forks source link

"Cargo failed: Error compiling dependent crate" but the crate has no apparent errors #1078

Closed norru closed 6 years ago

norru commented 6 years ago

I have a crate I am developing in Eclipse Corrosion, at https://github.com/itadinanta/gfx-gtk. On Windows 10 only (Linux is fine) the RLS stops working after issuing the following message. After this message the IDE also hangs when attempting to exit.

image

It might be well a problem with the LSP4E host but with the current diagnostic messaging, or lack thereof, it's very difficult to trace.

Launching rls --cli from the project's root leads to the project being correctly indexed (no issues with any dependent crate).

norru commented 6 years ago

https://github.com/eclipse/corrosion/issues/141

norru commented 6 years ago

I am no longer able to reproduce this bug.

norru commented 6 years ago

i believe this was caused by a corruption in the target/rls working area and a full cargo clean fixed it.