crates icon indicating copy to clipboard operation
crates copied to clipboard

Stopped working

Open DagBjorndal opened this issue 2 years ago • 7 comments

Describe the bug Stopped showing anything.

To Reproduce Steps to reproduce the behavior:

  1. Insert name of any crate from crates.io into Cargo.toml under [dependencies]
  2. Append the usual equal sign with spaces and quotation marks (eg. tokio = "")
  3. Save the file
  4. Hover over the quotation marks
  5. Observe that no pop-up is shown

Expected behavior A pop-up listing all version for the dependency should be produced.

Desktop (please complete the following information):

  • Raspberry Pi 5
  • OS: Raspberry Pi OS
  • Version: 6.1.0-rpi8-rpi-2712

DagBjorndal avatar Feb 22 '24 17:02 DagBjorndal

Please share error log from console.

serayuzgur avatar Feb 23 '24 07:02 serayuzgur

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.

kmindi avatar Mar 31 '24 18:03 kmindi

I've also been seeing some issues -- however, it seems to be inconsistent? In some VS Code workspaces it works, in others it doesn't. Current hypothesis: it only works in Cargo workspaces, not in single-crate Cargo manifests, maybe?

Where can I find these error logs that you're asking for?

djc avatar Apr 08 '24 07:04 djc

Hello, it's not been working for me as well, since 0.6.6.

milen-denev avatar Apr 20 '24 13:04 milen-denev

VSCode recognizes Cargo.toml as Plain Text and crates doesn't work with Plain Text. Just install Even Better Toml to make VSCode knows what toml is, and everything works.

Kidsunbo avatar May 23 '24 07:05 Kidsunbo

VSCode recognizes Cargo.toml as Plain Text and crates doesn't work with Plain Text. Just install Even Better Toml to make VSCode knows what toml is, and everything works.

I don't think this is accurate -- I have "Even Better Toml" installed but disabled all the time and it still works.

djc avatar May 23 '24 07:05 djc

VSCode recognizes Cargo.toml as Plain Text and crates doesn't work with Plain Text. Just install Even Better Toml to make VSCode knows what toml is, and everything works.

I don't think this is accurate -- I have "Even Better Toml" installed but disabled all the time and it still works.

That's weird. I just tried disabling the Even Better Toml and then crates didn't work immediately.

Kidsunbo avatar May 23 '24 12:05 Kidsunbo