question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v2021.6.755784270 - TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function

See original GitHub issue

Environment data

  • VS Code version: 1.56.0-insider
  • Jupyter Extension version (available under the Extensions sidebar): v2021.6.755784270
  • Python Extension version (available under the Extensions sidebar): v2021.3.680753044
  • OS (Windows | Mac | Linux distro) and version: Arch Linux 5.11.14-arch1-1
  • Python and/or Anaconda version: Python 3.9.3 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Jupyter server running: N/A

Expected behaviour

Extension is successfully activated.

Actual behaviour

Extension fails to activate, an error popup appears showing the following message:

Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information. Source: Jupyter (Extension)

Python extension still works, at least syntax highlighting, debugging, and code linting (via pylint).

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Open Visual Studio Code with the extension installed.
  2. Open a .py file to trigger the Python extension, which in turn triggers the Jupyter extension.
  3. The popup indicating the error should appear right after the previous step.

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

User belongs to experiment group 'pythonJediLSP'
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'pythonDiscoveryModule'
User belongs to experiment group 'jupyterEnhancedDataViewer'
User belongs to experiment group 'NativeNotebookEditor'
Info 2021-04-17 00:23:13: ZMQ install verified.
Info 2021-04-17 00:23:13: Attempting to start a server because of preload conditions ...
Error 2021-04-17 00:23:13: Failed to register VS Code Notebook API [TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function
	at u.registerNotebookCellStatusBarItemProvider (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:540799)
	at g.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:49:651504)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async Promise.all (index 18)
	at async Promise.all (index 0)
	at async f.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:290398)]
Error 2021-04-17 00:23:13: Failure during activation. [TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function
	at u.registerNotebookCellStatusBarItemProvider (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:540799)
	at g.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:49:651504)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async Promise.all (index 18)
	at async Promise.all (index 0)
	at async f.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:290398)]
Error 2021-04-17 00:23:13: sendStartupTelemetry() failed. [TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function
	at u.registerNotebookCellStatusBarItemProvider (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:540799)
	at g.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:49:651504)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async Promise.all (index 18)
	at async Promise.all (index 0)
	at async f.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:290398)]
Error 2021-04-17 00:23:13: extension activation failed [TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function
	at u.registerNotebookCellStatusBarItemProvider (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:540799)
	at g.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:49:651504)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async Promise.all (index 18)
	at async Promise.all (index 0)
	at async f.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:290398)]
Error 2021-04-17 00:23:13: Failed to active the Jupyter Extension [TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function
	at u.registerNotebookCellStatusBarItemProvider (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:540799)
	at g.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:49:651504)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async Promise.all (index 18)
	at async Promise.all (index 0)
	at async f.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:290398)]
Info 2021-04-17 00:23:14: Found existing keyfile at /home/tracert6/.config/Code - Insiders/User/globalStorage/ms-toolsai.jupyter/nbsecret

Developer tools console relevant output

notificationsAlerts.ts:40 Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information.

console.ts:137 [Extension Host] extension activation failed TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function
	at u.registerNotebookCellStatusBarItemProvider (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:540799)
	at g.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:49:651504)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async Promise.all (index 18)
	at async Promise.all (index 0)
	at async f.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:290398) (at /home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:32:774065)

console.ts:137 [Extension Host] stack trace: TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function	at u.registerNotebookCellStatusBarItemProvider (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:540799)	at g.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:49:651504)	at processTicksAndRejections (internal/process/task_queues.js:97:5)	at async Promise.all (index 18)	at async Promise.all (index 0)	at async f.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47:290398) (at /opt/visual-studio-code-insiders/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:105:30533)

mainThreadExtensionService.ts:59 [[object Object]]s.notebook.registerNotebookCellStatusBarItemProvider is not a function

mainThreadExtensionService.ts:60 TypeError: s.notebook.registerNotebookCellStatusBarItemProvider is not a function
	at u.registerNotebookCellStatusBarItemProvider (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47)
	at g.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:49)
	at processTicksAndRejections (internal/process/task_queues.js:97)
	at async Promise.all (index 18)
	at async Promise.all (index 0)
	at async f.activate (/home/tracert6/.vscode-insiders/extensions/ms-toolsai.jupyter-2021.6.755784270/out/client/extension.js:47)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
IanMatthewHuffcommented, Apr 18, 2021

@MatiasDuhalde Thanks for the info, and glad that you are unblocked. Yeah, I was very surprised when I saw this error, doesn’t seem to me like something that should have been happening. You might be right that there is some type of build specific issue here. I’m on Mac myself, but I’m pretty sure that some of our other developers are on Windows and didn’t see this issue when we released on Friday. Might need more info from the VS Code folks here.

Thanks for replying back and providing more info though, that will help us to diagnose this, and makes me less worried that this is a super widespread issue.

1reaction
MatiasDuhaldecommented, Apr 18, 2021

Hello @IanMatthewHuff and @claudiaregio , thanks for your comments! There was an update available in my case that for some reason didn’t show up yesterday. The AUR from where I installed the package for Arch seemed to be out of date. I updated the package to the latest version found in https://code.visualstudio.com/insiders/

More specifically I installed the Linux tar.gz file for 64 bit architectures, with filename code-insider-x64-1618573217.tar.gz and SHA256 7f1aa38158ec5ee0cdb4a4025bcf383c4f776429e7d1c0df91ccb343bc28d1be.

Now I get no errors with this version + Jupyter Extension latest version v2021.6.755784270, and the output log is clean.

My code-insiders --version output is now:

1.56.0-insider
ce791d27dc9889a392f4d29abefe9c53eb0b5129
x64

This is odd however, since the commit hash seems to be the same as @claudiaregio . Maybe there’s a problem with the build for Windows 10?

Read more comments on GitHub >

github_iconTop Results From Across the Web

2021.4.678042391 throws TypeError: s.notebook ... - GitHub
Run first cell in main.py · Result is jupyter extension is stuck in "Staring jupyter server" and eventually gives another notification alerting that...
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript TypeError: "x" is not a function occurs when calling a function on a value or object, which is not actually a...
Read more >
TypeError: this._didCreateEngineInitializerResolve is not a ...
I have tried cleaning and rebuilding but the files gets created with the same code and I keep getting the same error. flutter.js...
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError - Some selector is not a function - jQuery is not a function - owlCarousel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found