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.debug-server-ready extension's failure #202316

Closed
mynkkmr opened this issue Jan 12, 2024 · 2 comments
Closed

vscode.debug-server-ready extension's failure #202316

mynkkmr opened this issue Jan 12, 2024 · 2 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@mynkkmr
Copy link

mynkkmr commented Jan 12, 2024

Issue Description

I encountered an issue while trying to use the Golang Debug Mode in the VSCode plugin. The error message indicates a TypeError: Cannot read properties of undefined (reading 'GOPATH'). This issue seems to be originating from the notificationsAlerts.ts file at line 40.

2024-01-12 00:12:07.628 [info] Extension host with pid 18790 exiting with code 0
2024-01-12 00:12:09.373 [info] Extension host with pid 19359 started
2024-01-12 00:12:09.373 [info] Skipping acquiring lock for /Users/mayankkumar/Library/Application Support/Code/User/workspaceStorage/e7b0658a6e10cee6c7b78e5ff5e84aa1.
2024-01-12 00:12:09.459 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2024-01-12 00:12:09.467 [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2024-01-12 00:12:09.487 [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
2024-01-12 00:12:09.865 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
2024-01-12 00:12:10.004 [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
2024-01-12 00:12:10.027 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
2024-01-12 00:12:10.078 [info] ExtensionService#_doActivateExtension pulumi.pulumi-lsp-client, startup: true, activationEvent: 'workspaceContains:**/Pulumi.yaml,**/Main.yaml'
2024-01-12 00:12:10.120 [info] Eager extensions activated
2024-01-12 00:12:10.134 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished'
2024-01-12 00:12:10.138 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
2024-01-12 00:12:10.145 [info] ExtensionService#_doActivateExtension babakks.vscode-dap-inspector, startup: false, activationEvent: 'onStartupFinished'
2024-01-12 00:12:10.148 [info] ExtensionService#_doActivateExtension codeeras.base-64, startup: false, activationEvent: 'onStartupFinished'
2024-01-12 00:12:42.484 [info] ExtensionService#_doActivateExtension vscode.debug-server-ready, startup: false, activationEvent: 'onDebugResolve'
2024-01-12 00:12:42.487 [error] Activating extension vscode.debug-server-ready failed due to an error:
2024-01-12 00:12:42.487 [error] TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
	at new NodeError (node:internal/errors:399:5)
	at Hash.update (node:internal/crypto/hash:109:11)
	at n._getCachedDataPath (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:2987)
	at o._compile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:967)
	at Module._extensions..js (node:internal/modules/cjs/loader:1371:10)
	at Module.load (node:internal/modules/cjs/loader:1171:32)
	at Module._load (node:internal/modules/cjs/loader:1012:12)
	at f._load (node:electron/js2c/asar_bundle:2:13377)
	at c._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:171:5632)
	at n._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:168:29551)
	at t._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:133:35226)
	at Module.require (node:internal/modules/cjs/loader:1195:19)
	at require (node:internal/modules/cjs/helpers:110:18)
	at Function.i [as __$__nodeRequire] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:5:98)
	at f.vb (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:168:30730)
	at async Promise.all (index 0)
2024-01-12 00:12:42.487 [info] ExtensionService#_doActivateExtension golang.go, startup: false, activationEvent: 'onDebugResolve:go'
2024-01-12 00:12:42.492 [error] Activating extension golang.go failed due to an error:
2024-01-12 00:12:42.492 [error] TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
	at new NodeError (node:internal/errors:399:5)
	at Hash.update (node:internal/crypto/hash:109:11)
	at n._getCachedDataPath (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:2987)
	at o._compile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:967)
	at Module._extensions..js (node:internal/modules/cjs/loader:1371:10)
	at Module.load (node:internal/modules/cjs/loader:1171:32)
	at Module._load (node:internal/modules/cjs/loader:1012:12)
	at f._load (node:electron/js2c/asar_bundle:2:13377)
	at c._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:171:5632)
	at n._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:168:29551)
	at t._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:133:35226)
	at Module.require (node:internal/modules/cjs/loader:1195:19)
	at require (node:internal/modules/cjs/helpers:110:18)
	at Function.i [as __$__nodeRequire] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:5:98)
	at f.vb (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:168:30730)
	at async Promise.all (index 0)

Screenshot 2024-01-12 at 12 15 43 AM

Steps to Reproduce

  1. Open Visual Studio Code.
  2. Install the Golang plugin version 0.40.1
  3. Set up a Golang project.
  4. Attempt to use Golang Debug Mode.

Environment Details

  • VSCode Version:
Version: 1.85.1 (Universal)
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:48:06.308Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin x64 23.2.0
  • Golang Version: go1.21.5 darwin/amd64
  • Golang Plugin Version: 0.40.1
  • Operating System: macOS Sonoma 14.2.1
@gjsjohnmurray
Copy link
Contributor

/extGo

@vscodenpa
Copy link

It looks like this is caused by the Go extension. Please file the issue to the Go extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

4 participants