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

[BUG] VS Code extension not showing proper error when node cannot be found #20332

Closed
KrysKruk opened this issue Jan 24, 2023 · 1 comment
Closed

Comments

@KrysKruk
Copy link

Context:

  • Playwright Version: 1.29.2
  • Operating System: Mac
  • Node.js version: 14.6
  • Visual Studio Code version: 1.74.3
  • Playwright for VSCode extension version: 1.0.6
  • Browser: -
  • Extra: -

Describe the bug

VS Code extension shows warning Please install Playwright Test via running npm i --save-dev @playwright/test but when I go to "Output" -> "Window" I see an error:

[error] [Extension Host] Error: not found: node
	at ci (/Users/.../.vscode/extensions/ms-playwright.playwright-1.0.6/out/extension.js

I was struggling to run Playwright VS Code extension in my monorepo project. After installing node with homebrew it started working, so the error I posted was crucial here. It couldn't find node because I'm using nvm configured with fish so I guess it couldn't find an executable, but IMHO the most important thing here is to show users a proper error message.

@pavelfeldman
Copy link
Member

Merging into #18954, you don't need to have a global node installation, it is a VS Code bug where it does not mirror the environment in time into the extension host.

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

2 participants