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

[Feature]: VSCode extension: better feedback for error in playwright.config #34384

Open
scottdrichards opened this issue Jan 17, 2025 · 2 comments

Comments

@scottdrichards
Copy link

🚀 Feature Request

If there are errors in playwright.config (for me I had a bad path for a reporter) playwright fails to run. When running npx playwright you get decent feedback but in the "Testing" toolbar, it just says "No tests have been found in this workspace yet. [Install Additional Test Extensions]". Perhaps the extension is not allowed to report anything better when it errors but it would be nice to see.

Having an "Output" for the extension would be helpful as well. I looked and didn't see any "Output" for "Playwright" in the console drawer.

Image

Example

At a minimum: "Playwright encountered an error"

Better: "Playwright encountered an error: 'Cannot find module './reporters/performanceReporter.ts'"

Best: "Playwright encountered an error: 'Cannot find module './reporters/performanceReporter.ts'" [button to take you to terminal to see full errors]

Motivation

I spent a good deal of time trying to figure this bug out, the wording made me think there was a problem with the extension, not playwright itself.

@yury-s
Copy link
Member

yury-s commented Jan 17, 2025

Are you on the latest version of the extension? Here is what I see in the problems view when the config is trying to import something that is not available:

Image

@yury-s
Copy link
Member

yury-s commented Jan 17, 2025

If the error does not show up there, can you share a repro with us?

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