Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

VS Code - crates stop worked across all Cargo.toml files in a large workspace #221

Open
ryanolson opened this issue Dec 11, 2023 · 5 comments

Comments

@ryanolson
Copy link

ryanolson commented Dec 11, 2023

Describe the bug

I've notice that crates as stopped working in my VS Code.

I never realize how amazing this extension was until it stopped working and has be bit stumped as to why it stopped working.

Any thoughts on how to troubleshoot this?

To Reproduce

Latest version of VS Code

Version: 1.85.0
Commit: af28b32d7e553898b2a91af498b1fb666fdebe0c
Date: 2023-12-06T18:17:50.719Z (4 days ago)
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.1.0
crates == v0.6.5

no custom crates settings in any user/remote/workspace settings.

I have a large workspace in a devcontainer.

I have a rust directory (/work/rust), with a top-level Cargo.toml file and then numerous libraries in /work/rust/lib1, /work/rust/lib2, etc. I also have a /work/python/bindings/Cargo.toml and at least two other rust libraries in /work/submodules/external1, etc.

Expected behavior

Not sure when it stopped working, but I added a new libraries and the usual green check marks stopped working across the entire series of Cargo.toml files.

Screenshots

Desktop (please complete the following information):

Consistent across both Mac and Windows VS Code clients, both of which SSH to a remote machine, then run a devcontainer in the remote machine.

Additional context
Add any other context about the problem here.

@serayuzgur
Copy link
Owner

@ryanolson what is the current situation?

@ryanolson
Copy link
Author

The manual option to trigger a look up works. I need to use it whenever I edit Cargo.toml file.

It might be due to the fact that I have a large workspace consisting of 8+ crates

@serayuzgur
Copy link
Owner

serayuzgur commented Jan 29, 2024

Can you please provide a mock repository that causes the same bug? So I can debug easily @ryanolson

@kmindi
Copy link

kmindi commented Mar 31, 2024

I noticed that the Cargo.toml was only recognized by VS Code as "Plain Text". When I installed an extension that adds support for TOML, TOML was detected for the Cargo.toml file and this crates plugin showed again the expected inline version icons.

@ryanolson
Copy link
Author

Seems like the issue has been fixed for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants