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 extension error: Cannot read properties of undefined (reading 'map') #246

Open
1 of 5 tasks
Real-Gecko opened this issue Sep 20, 2024 · 2 comments
Open
1 of 5 tasks

Comments

@Real-Gecko
Copy link

Real-Gecko commented Sep 20, 2024

Describe the bug
A clear and concise description of what the bug is.

** Related Components **

  • protoc-gen-grpc-federation
  • grpc-federation-linter
  • grpc-federation-language-server
  • grpc-federation-generator
  • others

To Reproduce
Start vscode and open protofile
Go to extension host in output tab
Observe the crash message

Expected behavior
Expected extension to work

Screenshots
image

Additional context
Extension is installed on remote machine. Yesterday everything worked as expected but today I get the error.

2024-09-20 05:53:43.483 [error] Activating extension mercari.grpc-federation failed due to an error:
2024-09-20 05:53:43.483 [error] TypeError: Cannot read properties of undefined (reading 'map')
	at activate (/home/ubuntu/.vscode-server/extensions/mercari.grpc-federation-1.5.1/out/extension.js:18:34)
	at q.kb (/home/ubuntu/.vscode-server/cli/servers/Stable-38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/server/out/vs/workbench/api/node/extensionHostProcess.js:167:13836)
	at q.jb (/home/ubuntu/.vscode-server/cli/servers/Stable-38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/server/out/vs/workbench/api/node/extensionHostProcess.js:167:13508)
	at /home/ubuntu/.vscode-server/cli/servers/Stable-38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/server/out/vs/workbench/api/node/extensionHostProcess.js:167:11493
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async m.n (/home/ubuntu/.vscode-server/cli/servers/Stable-38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/server/out/vs/workbench/api/node/extensionHostProcess.js:151:6409)
	at async m (/home/ubuntu/.vscode-server/cli/servers/Stable-38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/server/out/vs/workbench/api/node/extensionHostProcess.js:151:6372)
	at async m.l (/home/ubuntu/.vscode-server/cli/servers/Stable-38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/server/out/vs/workbench/api/node/extensionHostProcess.js:151:5829)
@Real-Gecko
Copy link
Author

Still relevant with extension version 1.6.0

@Real-Gecko
Copy link
Author

This happens in multiroot workspaces, I guess due to workspace folder being hardcoded

const uri = folders[0].uri;

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

No branches or pull requests

1 participant