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

vscode-extensions.matklad.rust-analyzer: Extension fails to activate #132938

Closed
winterqt opened this issue Aug 6, 2021 · 2 comments · Fixed by #133122
Closed

vscode-extensions.matklad.rust-analyzer: Extension fails to activate #132938

winterqt opened this issue Aug 6, 2021 · 2 comments · Fixed by #133122

Comments

@winterqt
Copy link
Member

winterqt commented Aug 6, 2021

Describe the bug

The extension fails to activate.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install the extension via home-manager
  2. Attempt to activate it by opening VS Code to a Rust project

Expected behavior

For the extension to activate successfully.

Additional context

Logs:

[2021-08-06 16:59:01.070] [exthost] [error] Activating extension matklad.rust-analyzer failed due to an error:
[2021-08-06 16:59:01.070] [exthost] [error] TypeError: Cannot destructure property 'ANY' of 'require$$26' as it is undefined.
	at Object.<anonymous> (/nix/store/59nk7z6h9gfcqqjv0kiajns9j4pwn173-vscode-extension-rust-analyzer-2021-08-02/share/vscode/extensions/matklad.rust-analyzer/out/src/main.js:2378:13)
	at Module.u._compile (/nix/store/d81pjajpc0xcplx7ch921lrw4s8v37g1-vscode-1.58.2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:1315)
	at Object.Module._extensions..js (internal/modules/cjs/loader.js:1155:10)
	at Module.load (internal/modules/cjs/loader.js:982:32)
	at Module._load (internal/modules/cjs/loader.js:823:14)
	at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
	at Function.i._load (/nix/store/d81pjajpc0xcplx7ch921lrw4s8v37g1-vscode-1.58.2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103:27843)
	at Function.b._load (/nix/store/d81pjajpc0xcplx7ch921lrw4s8v37g1-vscode-1.58.2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103:24471)
	at Function.l._load (/nix/store/d81pjajpc0xcplx7ch921lrw4s8v37g1-vscode-1.58.2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93:59004)
	at Module.require (internal/modules/cjs/loader.js:1006:19)
	at require (internal/modules/cjs/helpers.js:88:18)
	at Function.t [as __$__nodeRequire] (/nix/store/d81pjajpc0xcplx7ch921lrw4s8v37g1-vscode-1.58.2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:5:101)
	at u._loadCommonJSModule (/nix/store/d81pjajpc0xcplx7ch921lrw4s8v37g1-vscode-1.58.2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103:25877)
	at u._doActivateExtension (/nix/store/d81pjajpc0xcplx7ch921lrw4s8v37g1-vscode-1.58.2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89:12556)
	at u._activateExtension (/nix/store/d81pjajpc0xcplx7ch921lrw4s8v37g1-vscode-1.58.2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89:11657)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async Promise.all (index 0)

Notify maintainers

@oxalica

Metadata

 - system: `"aarch64-darwin"`
 - host os: `Darwin 20.6.0, macOS 11.5.1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210707_02dd6bb`
 - channels(winter): `""`
 - channels(root): `""`
 - nixpkgs: `/nix/store/a0wni8bqlfwqr67qjwg0yhlfwg2nlq4r-source`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: vscode-extensions.matklad.rust-analyzer
# a list of nixos modules affected by the problem
module:
@winterqt
Copy link
Member Author

winterqt commented Aug 6, 2021

Note: rolling back to 1454412 fixes the issue.

@yaymukund
Copy link
Contributor

yaymukund commented Aug 8, 2021

Hello, I've been looking at this since yesterday. I think we need to pin rollup to 2.51 and/or update plugin-commonjs to 19 to avoid rollup/rollup#4195 / npm/node-semver#318 - I am presently regenerating node-packages.nix to test this fix.

I think you are right that my 08-02 update introduced the regression. I apologize, can cut a revert PR later today if my fix doesn't work and if this would be desirable. The fix seems to work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants