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

Jupyter Extension fails to activate on FreeBSD

Open Huskers2020 opened this issue 2 years ago • 13 comments

Applies To

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

What happened?

Jupyter extension does not get activated on FreeBSD -

This issue also prevails on latest pre-release version

VS Code Version

1.70_2

Jupyter Extension Version

2022.7.1102252217

Jupyter logs

Jupyter log is not an option available -

[2022-09-10 12:26:08.572] [exthost] [error] Activating extension ms-toolsai.jupyter failed due to an error:
[2022-09-10 12:26:08.573] [exthost] [error] TypeError: Cannot read properties of undefined (reading 'format')
	at Object.68375 (/usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:222041)
	at __webpack_require__ (/usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:1359444)
	at Object.66531 (/usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:256026)
	at __webpack_require__ (/usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:1359444)
	at Object.45322 (/usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:263461)
	at __webpack_require__ (/usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:1359444)
	at /usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:1361295
	at /usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:1366738
	at Object.<anonymous> (/usr/home/prv/.vscode-oss/extensions/ms-toolsai.jupyter-2022.7.1102252217/out/extension.node.js:17:1366777)
	at Module.u._compile (/usr/local/share/code-oss/resources/app/out/vs/loader.js:4:1313)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
	at Module.load (node:internal/modules/cjs/loader:988:32)
	at Module._load (node:internal/modules/cjs/loader:829:12)
	at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
	at Function.r._load (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:111:14538)
	at Function.b._load (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:62507)
	at Function.v._load (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:61875)
	at Module.require (node:internal/modules/cjs/loader:1012:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Function.r [as __$__nodeRequire] (/usr/local/share/code-oss/resources/app/out/vs/loader.js:5:101)
	at w._loadCommonJSModule (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:106:63965)
	at w._doActivateExtension (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:14754)
	at w._activateExtension (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:97:13693)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async v._activate (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8180)
	at async v._waitForDepsThenActivate (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8122)
	at async v._initialize (/usr/local/share/code-oss/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:7486)

Coding Language and Runtime Version

Python

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

Local

Huskers2020 avatar Sep 10 '22 17:09 Huskers2020

Thanks for filing this issue, unfortunately I'm unable to repro this issue at my end, also others haven't reported this issue. Please could you install the latest version of the Jupyter extesnsion, the version you are using is the older version. We've since updated to 2022.8.**

Let me know how that goes.

DonJayamanne avatar Sep 11 '22 01:09 DonJayamanne

I tried the latest version and have the same issue

Huskers2020 avatar Sep 11 '22 02:09 Huskers2020

I was able to go back in version and the last working version is v2022.5.1001601848.

Post this version it does not work.

Huskers2020 avatar Sep 11 '22 04:09 Huskers2020

this version it does not work.

Have you tried 2022.8.*?

DonJayamanne avatar Sep 11 '22 05:09 DonJayamanne

Yes every version post v2022.5.1001601848 does not work

Huskers2020 avatar Sep 11 '22 14:09 Huskers2020

@DonJayamanne - Do you have an update on why versions after V2022.5 are not working on VSCode / FreeBSD ?

Huskers2020 avatar Sep 13 '22 19:09 Huskers2020

V2022.5 are not working on VSCode / FreeBSD ?

This should work, my only guess is you are using VS Code OSS and perhaps something hasn't been udpated there. We haven't had any other users report such issues to date.

Note: Each new release of Jupyter extension is updated to require the latest version of VS Code. We do this because the Juptyer extension utilizes proposed API for notebooks and that changes over time, this way when we release a new version of the Jupyter extension we know it will work as the minimum version of VS Code is the versoin we've built and tested the API against.

DonJayamanne avatar Sep 13 '22 19:09 DonJayamanne

I'd suggest you try the latest stable version of VS Code or the official version of VS Code stable or insiders. If that works, then you know the problem is definitely in VS Code OSS. However if someone else reports a similar issue with stable/insider versions of VS Code, then we know its not speciic to VS Code OSS and could be a problem in VS Code itself.

DonJayamanne avatar Sep 13 '22 19:09 DonJayamanne

V2022.5 are not working on VSCode / FreeBSD ?

This should work, my only guess is you are using VS Code OSS and perhaps something hasn't been udpated there. We haven't had any other users report such issues to date.

Note: Each new release of Jupyter extension is updated to require the latest version of VS Code. We do this because the Juptyer extension utilizes proposed API for notebooks and that changes over time, this way when we release a new version of the Jupyter extension we know it will work as the minimum version of VS Code is the versoin we've built and tested the API against.

I'm using latest version of VS Code 1.70_2 and the plug v2022.5 version of plug in works. So the issue is not with VS Code as my previous versions of VS Code also work with V2022.5 but not with latest version of plug in

Huskers2020 avatar Sep 13 '22 22:09 Huskers2020

I have spent quite a good amount of time over the weekend to triage this issue. I re-installed older versions of my working VS Code from cache and none work with the latest version of plugin but they all work with May version of plug in. Post June the plugin is broke.

Huskers2020 avatar Sep 13 '22 22:09 Huskers2020

Please could you confirm you have tried this with the stable or insider version of VS Code instead of the OSS version?

DonJayamanne avatar Sep 14 '22 06:09 DonJayamanne

@DonJayamanne - sorry did not realize there were two variations / flavors of VSCode. Unfortunately for FreeBSD we have OSS version only ported.

Huskers2020 avatar Sep 14 '22 09:09 Huskers2020

Will check with a few others and get back on this

DonJayamanne avatar Sep 20 '22 06:09 DonJayamanne

@Huskers2020 please could you test this with the latest version of the Jupyter extension and let me know how this goes

DonJayamanne avatar Oct 09 '22 22:10 DonJayamanne

Tried the latest version v2022.10.1102881143 and the issue prevails. Let me know what I can share that will assist triage this issue. The last version May 2022 works without any issue.

Huskers2020 avatar Oct 14 '22 02:10 Huskers2020

@Huskers2020 does this still fail for you? Also, do you have similar issues with the Python extension from the marketplace?

DonJayamanne avatar Dec 27 '22 22:12 DonJayamanne

Closing this issue as its been over 4 weeks, since the information was requested. We'll be happy to reopen the issue when the requested information has been provided.

DonJayamanne avatar Jan 23 '23 00:01 DonJayamanne

I have the same issue of Huskers2020. My environment is FreeBSD x64 13.2-RELEASE, Python 3.9, Code - OSS 1.76.2, Jupyter extension v2023.2.1200692131. When opening a file with extension .ipynb, the Jupyter extension is being automatically loaded but fails the activation and the file editor tab is not usable.

acontestabile avatar May 20 '23 20:05 acontestabile