vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

"error: No value" when hovering mouse over a `Vec` of tuples while debugger is paused

Open josephrocca opened this issue 6 years ago • 11 comments

Here's a reduced test case:

fn main() {
    let vec = vec![(1,2), (3,4)];
    println!("{:?}", vec);
}

Here's what I see when I hover over vec while the debugger is paused on the println!(...) line:

image

I can see the first tuple if I expand the [raw] property:

image

The "Variables" side panel has the same problem. Is anyone else seeing this sort of thing? I've only recently downloaded VS Code and this extension, so I'm not sure if it has only recently started happening or not. I'm using version 0.6.1 of the plugin, and VS Code 1.37.1, on Ubuntu 18.04.

I'm not sure how to test whether the problem is with the language server or this plugin - sorry!

josephrocca avatar Sep 01 '19 19:09 josephrocca

same

doivosevic avatar Feb 10 '21 07:02 doivosevic

I'm having the same issue. The variable inspector panel has similar problems.

jabcross avatar Apr 19 '21 13:04 jabcross

I also have this issue

lizardintelligence avatar Sep 01 '21 18:09 lizardintelligence

same

Having the same issue.

Related:

https://users.rust-lang.org/t/debugging-hell-with-rust-and-lldb/49619

urmzd avatar May 31 '22 00:05 urmzd

Ok, just discovered something interesting. The debugger looks fine when using the stable release of rust (1.60.0). The problem only occurs on the nightly release (1.63.0-nightly).

urmzd avatar May 31 '22 02:05 urmzd

Same is happening with jetbrains rust plugin(both lldb and gdb), when using nightly. So my guess, it is more Rust related, then specific to lldb, gdb or vscode integration.

MabaKalox avatar Jun 14 '22 08:06 MabaKalox

Ok, just discovered something interesting. The debugger looks fine when using the stable release of rust (1.60.0). The problem only occurs on the nightly release (1.63.0-nightly).

I checked today and it looks fine for me with 1.61.0 (stable) but not 1.62.0-beta.6.

mwcz avatar Jul 08 '22 16:07 mwcz

This is happening with Rust 1.62 too.

delapuente avatar Jul 10 '22 14:07 delapuente

I confirm, Rust 1.62, VSCode 1.69.1, no watch values. Update: Downgraded to Rust 1.61, issue is gone.

wplj avatar Jul 13 '22 20:07 wplj

The same for me, it works by downgrading Rust to 1.61 but with 1.62 it doesn't.

gnapoli23 avatar Jul 14 '22 15:07 gnapoli23