rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.19k stars 1.59k forks source link

Doesn't find custom git repo from Cargo.toml but fetches #9748

Open Corallus-Caninus opened 3 years ago

Corallus-Caninus commented 3 years ago

when I change a crate to my fork using a github https repo RustAnalyzer reports "cannot find" for my additions to the fork.

Following the definition of one of my additions leads me to a cached git clone which has all the additions (enumerations in my case) that I have added. I am confused as to why they aren't found in Rust Analyzer?

My Cargo.toml has: inputbot = { git = "https://github.com/Corallus-Caninus/inputbot.git", branch = "develop" }

Thank you Rust Analyzer is awesome!

lnicola commented 3 years ago

Does it work after you restart the server (or editor)?

There's an issue causing us to only process the first Cargo.toml change that happens outside the editor.

Corallus-Caninus commented 3 years ago

Yes this is possible after a reboot the addition is found but new additions recur the same problem.

lnicola commented 3 years ago

How are you adding the new dependencies? By editing Cargo.toml, or with cargo-edit?

Corallus-Caninus commented 3 years ago

I am using cargo-edit

Corallus-Caninus commented 3 years ago

Can you or anyone else please reference the issue so I may investigate?

lnicola commented 3 years ago

It might be https://github.com/rust-analyzer/rust-analyzer/issues/9546.