Skip to content
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

Variable View stucks on 'Loading variables' when using 'autotime' #10933

Open
1 of 2 tasks
FakeTrader opened this issue Jul 26, 2022 · 3 comments
Open
1 of 2 tasks

Variable View stucks on 'Loading variables' when using 'autotime' #10933

FakeTrader opened this issue Jul 26, 2022 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug good first issue Good for newcomers notebook-debugging variable-explorer

Comments

@FakeTrader
Copy link

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

autotime is used for displaying execution time. Package link: jupyter-autotime or ipython-autotime

%load_ext autotime
...

Variable View will stuck on `Loading variables'

VS Code Version

1.69.2

Jupyter Extension Version

2022.6.1201981810

Jupyter logs

info 16:4:47.315: Executing silently Code (completed) = def _VSCODE_getVariable(what_to_get, is_debugging, *args):\n# Query Jupyter server for the info with 1 output(s)
error 16:4:47.316: Jupyter Extension (Error in requestVariables, method:requestVariables): SyntaxError: Unexpected token t in JSON at position 232
    at JSON.parse (<anonymous>)
    at g.deserializeJupyterResult (/Users/whan/.vscode/extensions/ms-toolsai.jupyter-2022.6.1201981810/out/extension.node.js:24:299353)
    at getVariableNamesAndTypesFromKernel (/Users/whan/.vscode/extensions/ms-toolsai.jupyter-2022.6.1201981810/out/extension.node.js:24:297859)
    at S.getVariablesBasedOnKernel (/Users/whan/.vscode/extensions/ms-toolsai.jupyter-2022.6.1201981810/out/extension.node.js:24:288842)

Coding Language and Runtime Version

Python v3.9.13

Language Extension Version (if applicable)

v2022.10.1

Anaconda Version (if applicable)

4.13.0

Running Jupyter locally or remotely?

Local

@FakeTrader FakeTrader added bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged labels Jul 26, 2022
@FakeTrader FakeTrader changed the title Variable View stucks on Loading variables' when using autotime' Variable View stucks on 'Loading variables' when using 'autotime' Jul 26, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Jul 26, 2022

Thanks for the issue. autotime breaks the variable window because we parse the output from executing a cell and we don't expect the extra time: n ms.

@amunger
Copy link
Contributor

amunger commented Nov 20, 2024

This doesn't seem to repro anymore

@amunger amunger closed this as completed Nov 20, 2024
@amunger
Copy link
Contributor

amunger commented Nov 21, 2024

nevermind, still breaks. Although the built-in variable view can handle it: "notebook.variablesView": true

@amunger amunger reopened this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug good first issue Good for newcomers notebook-debugging variable-explorer
Projects
None yet
Development

No branches or pull requests

6 participants