vscode: VS Code crashes when trying to access the `ExtensionContext.secret` API

Applies To

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

What happened?

Reproduction procedure

  1. Open a notebook file.
  2. In the VS Code command palette, enter the following command
  3. >Jupyter: Specify Jupyter Server for Connections
  4. Connect to an appropriate server (e.g. http://localhost:8888)
  5. VS Code is forced to terminate.

It is also reproduced by opening a VS Code project with the notebook file once connected.

Reproduced with VS Code 1.72. VS Code 1.71 does not reproduce this issue.

Using VS Code for Linux.

VS Code Version

1.72

Jupyter Extension Version

v2022.9.1202862440

Jupyter logs

no logs

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

ms-toolsai-jupyter-insiders.vsix (2).zip

Here you go,

  • please ensuer you have VS Code 1.74 installed,
  • Extract that above zip file
  • then install this VSIX using the command Extensions: Install from VSIX
  • Reload VS Code and test this out and let me know how things go.

I’ll be creating a custom version of the VSIX for you to test. in the mean time you might want to update your version of VS Code to 1.74 (as the vsix i will provide will require that version) Thanks again for being patient and sorry this crashes the whole of VS Code

@s2terminal apologies for not getting back any sooner, please could you try the following

  • Use the command Jupyter: Clear Jupyter Remote Server List to clear everythikng

let me know if that works.