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.

[vscode-graphql] 🐞 VSCode extension version v0.7.6 fails to start

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The VSCode extension (id GraphQL.vscode-graphql) simply fails to start. I tried uninstalling and installing it anew and found the lines listed below in the log.

I’m using a multi-root workspace setup. Only one of the projects in the workspace contains a configuration, which is placed at the project root.

[2022-10-10 18:06:14.888] [exthost] [info] ExtensionService#_doActivateExtension GraphQL.vscode-graphql-execution, startup: false, activationEvent: 'workspaceContains:**/.graphqlrc,**/.graphqlrc.{json,yaml,yml,js,ts,toml},**/graphql.config.{json,yaml,yml,js,ts,toml},**/package.json', root cause: GraphQL.vscode-graphql
[2022-10-10 18:06:14.892] [exthost] [error] Activating extension GraphQL.vscode-graphql-execution failed due to an error:
[2022-10-10 18:06:14.892] [exthost] [error] Error: Cannot find module 'escape-html'
Require stack:
- /root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.0/dist/providers/exec-content.js
- /root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.0/dist/extension.js
- /vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/loader.js
- /vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/bootstrap-amd.js
- /vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/bootstrap-fork.js
	at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
	at Function.Module._load (node:internal/modules/cjs/loader:778:27)
	at Function.r._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:116:14565)
	at Function.v._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:65015)
	at Function.E._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:64383)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Object.<anonymous> (/root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.0/dist/providers/exec-content.js:8:39)
	at Module._compile (node:internal/modules/cjs/loader:1103:14)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.r._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:116:14565)
	at Function.v._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:65015)
	at Function.E._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:64383)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Object.<anonymous> (/root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.0/dist/extension.js:5:24)
	at Module._compile (node:internal/modules/cjs/loader:1103:14)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.r._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:116:14565)
	at Function.v._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:65015)
	at Function.E._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:64383)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Function.r [as __$__nodeRequire] (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/loader.js:5:101)
	at p._loadCommonJSModule (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:66574)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async Promise.all (index 0)

Expected Behavior

The extension should start.

Steps To Reproduce

Just installed the extension and tried to use it, nothing special unless my setup has something the extension chokes on.

Environment

- LSP Server Version: 0.7.6
- OS: Windows with Linux container
- LSP Client:

Anything else?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
acaocommented, Oct 10, 2022

@MartinSoto thanks for reporting this! i know exactly what would cause this.

1reaction
MartinSotocommented, Oct 10, 2022

Hi @acao! 0.7.8 isn’t working for me either:

[2022-10-10 23:51:33.118] [exthost] [info] ExtensionService#_doActivateExtension GraphQL.vscode-graphql-execution, startup: false, activationEvent: 'workspaceContains:**/.graphqlrc,**/.graphqlrc.{json,yaml,yml,js,ts,toml},**/graphql.config.{json,yaml,yml,js,ts,toml},**/package.json', root cause: GraphQL.vscode-graphql
[2022-10-10 23:51:33.126] [exthost] [error] Activating extension GraphQL.vscode-graphql-execution failed due to an error:
[2022-10-10 23:51:33.126] [exthost] [error] Error: Cannot find module 'brace-expansion'
Require stack:
- /root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.3/node_modules/minimatch/minimatch.js
- /root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.3/node_modules/graphql-config/index.js
- /root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.3/dist/providers/exec-content.js
- /root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.3/dist/extension.js
- /vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/loader.js
- /vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/bootstrap-amd.js
- /vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/bootstrap-fork.js
	at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
	at Function.Module._load (node:internal/modules/cjs/loader:778:27)
	at Function.r._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:116:14565)
	at Function.v._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:65015)
	at Function.E._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:64383)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Object.<anonymous> (/root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.3/node_modules/minimatch/minimatch.js:21:16)
	at Module._compile (node:internal/modules/cjs/loader:1103:14)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.r._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:116:14565)
	at Function.v._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:65015)
	at Function.E._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:64383)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Object.<anonymous> (/root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.3/node_modules/graphql-config/index.js:8:35)
	at Module._compile (node:internal/modules/cjs/loader:1103:14)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.r._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:116:14565)
	at Function.v._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:65015)
	at Function.E._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:64383)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Object.<anonymous> (/root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.3/dist/providers/exec-content.js:5:26)
	at Module._compile (node:internal/modules/cjs/loader:1103:14)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.r._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:116:14565)
	at Function.v._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:65015)
	at Function.E._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:64383)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Object.<anonymous> (/root/.vscode-server/extensions/graphql.vscode-graphql-execution-0.1.3/dist/extension.js:5:24)
	at Module._compile (node:internal/modules/cjs/loader:1103:14)
	at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
	at Module.load (node:internal/modules/cjs/loader:981:32)
	at Function.Module._load (node:internal/modules/cjs/loader:822:12)
	at Function.r._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:116:14565)
	at Function.v._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:65015)
	at Function.E._load (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:64383)
	at Module.require (node:internal/modules/cjs/loader:1005:19)
	at require (node:internal/modules/cjs/helpers:102:18)
	at Function.r [as __$__nodeRequire] (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/loader.js:5:101)
	at p._loadCommonJSModule (/vscode/vscode-server/bin/linux-x64/64bbfbf67ada9953918d72e1df2f4d8e537d340e/out/vs/workbench/api/node/extensionHostProcess.js:111:66574)
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async Promise.all (index 0)

The way it looks, something is still missing.

By the way @jeanbenitezu, I see the output only if I uninstall the extension and reinstall it right away. Otherwise there’s no error output whatsoever.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing Extensions in Visual Studio Code
Discover, add, update, disable and uninstall Visual Studio Code extensions (plug-ins) through the Extension Marketplace.
Read more >
May 2022 (version 1.68) - Visual Studio Code
Learn what is new in the Visual Studio Code May 2022 Release (1.68) ... In this case, VS Code does not allow users...
Read more >
Visual Studio Code Frequently Asked Questions
This command will open a argv.json file to configure runtime arguments. ... By default, VS Code will also auto-update extensions as new versions...
Read more >
November 2022 (version 1.74) - Visual Studio Code
You can now install an extension that is located on a local disk drive by using Developer: Install Extension from Location... command. The...
Read more >
Remote Development FAQ - Visual Studio Code
The Visual Studio Code Remote Development extension pack allows you to open any ... You can use one of the following solutions to...
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