Skip to content

[Bug]: Files missing from code-oss-dev/extensions/ipynb in MacOS Homebrew installation #4964

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

Closed
3 tasks done
quantex opened this issue Mar 9, 2022 · 2 comments
Closed
3 tasks done
Assignees
Labels
bug Something isn't working high-priority This issue needs to be resolved ASAP os-macos macOS related
Milestone

Comments

@quantex
Copy link

quantex commented Mar 9, 2022

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Safari 15.3
  • Local OS: MacOS 12.2.1
  • Remote OS: MacOS 12.2.1 and Arch Linux (rolling; 5.16.12).
  • Remote Architecture: x86-64
  • code-server --version: 4.1.0

Steps to Reproduce

  1. Install with HomeBrew via brew install code-server
  2. Install extensions: Jupyter (ms-toolsai) and Python (ms-python)
  3. Open or create a Jupyter Notebook.
  4. Peruse Logs for Remote Extension Host

Expected

A sequence of extensions (vscode.ipynb, then ms-toolsai.jupyter, then ms-python.python) should load, resulting in a Jupyter Notebook being rendered.

Actual

This works as expected in an Arch Linux installation (via an AUR).

But on a MacOS Homebrew installation, this halts when trying to load vscode.ipynb. Log complains that [install folder]/vendor/modules/code-oss-dev/extensions/ipynb/dist/ipynbMain.js is missing. A side-effect of this is simply that the Jupyter Notebook fails to load (or a new Notebook fails to be created).

A band-aid fix is to simply copy over [folder]/vendor/modules/code-oss-dev/extensions/ipynb/ wholesale from a working code-server installation in an Arch Linux box, which appears to resolve the problem.

Logs

  [2022-03-09 05:12:21.415] [exthost] [info] ExtensionService#_doActivateExtension vscode.ipynb, startup: false, activationEvent: 'onNotebook:jupyter-notebook}'
  [2022-03-09 05:12:21.418] [exthost] [error] Activating extension vscode.ipynb failed due to an error:
  [2022-03-09 05:12:21.418] [exthost] [error] Error: Cannot find module '/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/extensions/ipynb/dist/ipynbMain.js'
  Require stack:
  - /Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/loader.js
  - /Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/bootstrap-amd.js
  - /Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/bootstrap-fork.js
	  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
	  at Function.Module._load (internal/modules/cjs/loader.js:746:27)
	  at Function.t._load (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:114:28641)
	  at Function.g._load (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:114:25198)
	  at Function.f._load (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:104:61699)
	  at Module.require (internal/modules/cjs/loader.js:974:19)
	  at Module.require (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/extensions/git/dist/main.js:2:516200)
	  at require (internal/modules/cjs/helpers.js:101:18)
	  at Function.r [as __$__nodeRequire] (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/loader.js:5:101)
	  at p._loadCommonJSModule (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:114:26716)
	  at p._doActivateExtension (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:100:12954)
	  at p._activateExtension (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:100:11927)
	  at Object.actualActivateExtension (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:100:9302)
	  at b._activateExtension (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:95:7855)
	  at /Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:95:7537
	  at Array.map (<anonymous>)
	  at b._activateExtensions (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:95:7525)
	  at b.activateById (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:95:5123)
	  at p._activateById (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:100:10304)
	  at p.$activate (/Users/edrazor/brew/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/server/remoteExtensionHostProcess.js:100:20813)

Screenshot/Video

No response

Does this issue happen in VS Code?

  • I cannot reproduce this in VS Code.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

@quantex quantex added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Mar 9, 2022
@jsjoeio jsjoeio added high-priority This issue needs to be resolved ASAP os-macos macOS related and removed triage This issue needs to be triaged by a maintainer labels Mar 9, 2022
@jsjoeio jsjoeio added this to the March 2022 milestone Mar 9, 2022
@jsjoeio
Copy link
Contributor

jsjoeio commented Mar 9, 2022

Thanks fo reporting this! I was able to reproduce on my macOS.

Video

Screen.Recording.2022-03-09.at.1.55.32.PM.mov

Browser Logs

mainThreadExtensionService.ts:95 Activating extension 'vscode.ipynb' failed: Cannot find module '/usr/local/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/extensions/ipynb/dist/ipynbMain.js'
Require stack:
- /usr/local/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/vs/loader.js
- /usr/local/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/bootstrap-amd.js
- /usr/local/Cellar/code-server/4.1.0/libexec/vendor/modules/code-oss-dev/out/bootstrap-fork.js.

CRITI FAILED to destory notebook Error: NO provider registered for view type: 'jupyter-notebook'
    at O.withNotebookDataProvider (notebookServiceImpl.ts:611:10)
    at async u.createReferencedObject (notebookEditorModelResolverServiceImpl.ts:64:16)
    at async a.resolve (notebookEditorModelResolverServiceImpl.ts:216:18)
    at async l.$tryCreateNotebook (mainThreadNotebookDocuments.ts:131:15)

Here is where the corresponding code lives: https://github.com/coder/vscode/tree/main/extensions/ipynb

I wonder if we missed something there. I did just upgrade us to 1.64 (when this PR is merged).

@jsjoeio jsjoeio modified the milestones: March 2022, April 2022 Mar 22, 2022
@jsjoeio jsjoeio self-assigned this Mar 23, 2022
@jsjoeio
Copy link
Contributor

jsjoeio commented Mar 23, 2022

@quantex are you able to verify if this is still an issue with 4.2.0?

code-asher added a commit to code-asher/code-server that referenced this issue Mar 29, 2022
code-asher added a commit to code-asher/code-server that referenced this issue Mar 29, 2022
code-asher added a commit to code-asher/code-server that referenced this issue Mar 29, 2022
@jsjoeio jsjoeio modified the milestones: April 2022, 4.3.0 Apr 13, 2022
TinLe pushed a commit to TinLe/code-server that referenced this issue Apr 23, 2022
* Regenerate last opened patch

The lines were a bit off.

* Remove packaged .gitignore files

Fixes coder#4964.

* Remove extra Node binary

This gets overidden in the standalone but it was getting uselessly
included in the npm package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high-priority This issue needs to be resolved ASAP os-macos macOS related
Projects
None yet
Development

No branches or pull requests

2 participants