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] Playwright for VSCode - No Playwright tests found. #23684

Closed
yogeshgadge opened this issue Jun 13, 2023 · 11 comments
Closed

[BUG] Playwright for VSCode - No Playwright tests found. #23684

yogeshgadge opened this issue Jun 13, 2023 · 11 comments

Comments

@yogeshgadge
Copy link

yogeshgadge commented Jun 13, 2023

Context:

"No Playwright tests found."
In the Testing - Test Explorer

vscode version: 1.79
Playwright Test for VSCode v1.0.13

This morning suddenly after the updates Playwright test are not showing up.

Developer Tools console is showing the error saying node not found.
It is found from bash/zsh shell as it is in the path

 ERR [Extension Host] Error: not found: node
at li (/Users/REDACTED/.vscode/extensions/ms-playwright.playwright-1.0.13/out/extension.js:9:1936)
	at ui (/Users/REDACTED/.vscode/extensions/ms-playwright.playwright-1.0.13/out/extension.js:9:2673)
	at async V (/Users/REDACTED/.vscode/extensions/ms-playwright.playwright-1.0.13/out/extension.js:14:966)
	at async Oe._runNode (/Users/REDACTED/.vscode/extensions/ms-playwright.playwright-1.0.13/out/extension.js:14:7618)
	at async Oe.getPlaywrightInfo (/Users/REDACTED/.vscode/extensions/ms-playwright.playwright-1.0.13/out/extension.js:14:3484)
	at async Ve._rebuildModel (/Users/REDACTED/.vscode/extensions/ms-playwright.playwright-1.0.13/out/extension.js:91:5625)
	at async Ve.activate (/Users/REDACTED/.vscode/extensions/ms-playwright.playwright-1.0.13/out/extension.js:91:4834)

image

  • Playwright Version: 1.34.3
  • Operating System: mac
  • Node.js version: 18.16.0
  • Visual Studio Code version: 1.79
  • Playwright for VSCode extension version: v1.0.13
  • Browser: Chromium
  • Extra: my playwright.config.ts is located in /projects/foo-app/src/e2e/playwright.config.ts

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:

Describe the bug

Add any other details about the problem here.

@yogeshgadge yogeshgadge changed the title [BUG] No Playwright tests found." [BUG] No Playwright tests found. Jun 13, 2023
@yogeshgadge yogeshgadge changed the title [BUG] No Playwright tests found. [BUG] Playwright for VSCode - No Playwright tests found. Jun 13, 2023
@yogeshgadge
Copy link
Author

I believe this is same as #20332 I am using nvm and vscode can't find node ?

@mxschmitt
Copy link
Member

Could you try to completely close vscode and start it again?

@yogeshgadge
Copy link
Author

yogeshgadge commented Jun 14, 2023 via email

@yogeshgadge
Copy link
Author

Here is what worked - instead of clicking VSCode from Dock navigate to your project folder from open a bash and the open code code . and the errors are gone.

@mxschmitt
Copy link
Member

Just to double check, did you before right click on the vscode icon in the dock and clicked on "Quit"?

@yogeshgadge
Copy link
Author

I clicked "Quit Visual Studio Code". But I had even restarted my machine.

@yury-s
Copy link
Member

yury-s commented Jun 14, 2023

Here is what worked - instead of clicking VSCode from Dock navigate to your project folder from open a bash and the open code code . and the errors are gone.

When you launch VSCode from terminal it inherits its environment including PATH variable. When launching from dock the PATH is likely different for some reason and node binary is not there. Try following the VSCode troubleshooting guide: https://code.visualstudio.com/docs/supporting/faq#_resolving-shell-environment-fails

There is also some relevant discussions in microsoft/vscode#21655 and https://stackoverflow.com/questions/66162058/vscode-complains-that-resolving-my-environment-takes-too-long

@yury-s
Copy link
Member

yury-s commented Jun 16, 2023

Closing per the response above, feel free to open a new issue if it doesn't work.

@yury-s yury-s closed this as completed Jun 16, 2023
@Neurovert
Copy link

Here is what worked - instead of clicking VSCode from Dock navigate to your project folder from open a bash and the open code code . and the errors are gone.

best response - works, thank you!

@jshtawayHR
Copy link

Here is what worked - instead of clicking VSCode from Dock navigate to your project folder from open a bash and the open code code . and the errors are gone.

This did not work for me.

@yogeshgadge
Copy link
Author

yogeshgadge commented Apr 24, 2024 via email

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

5 participants