-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameError: name '_VSCODE_getVariableInfo' is not defined #10516
Comments
Thanks for the issue. My guess is that the second breakpoint was a different module and we're not loading the evaluation objects correctly. Can you describe the two breakpoints more? Or provide repro source? Thanks. |
I have the exact same problem. |
Same problem with either dataframe or tensors. Seems to have popped up during the last vscode update as it used to work fine before.
|
@rchiodo Hope you can help us address this issue 🙂 It used to work fine before, but in this week, this problem poped up. |
In the meantime as a workaround: I can confirm that regressing to vscode 1.67.2 fixes the issue. |
oooooh, thank you. |
I have both versions installed, and all my preferences are there on both versions. I had to downgrade the jupyter extension to an earlier version, but once that was done it all worked perfectly 👍 with the v1.67.2 (until the current version is updated and fixed) |
Here's some code to repro the issue: def foo():
df.head() # Stick breakpoint here. First time view in data viewer works. Second time it doesn't.
import pandas as pd
df = pd.read_csv('data/test.csv')
foo()
foo()
foo() |
My guess would be this change: We used to load the script itself as a module. We don't do that because of needing to support web, but then since the code is only loaded once, we never reload for a new stack frame. |
Test should be updated to make sure it causes more than one stack frame. |
I was debugging...
When I chose "
view value in data viewer
" for a variable at a checkpoint for the first time, it worked fine as normal.Then I clicked
F5
, and the programme stopped at the same checkpoint.But when I chose "
view value in data viewer
" for a variable again, it didn't work and the log was as followsThe text was updated successfully, but these errors were encountered: