-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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]: Errors in the playwright config aren't clear when working in test files #34305
Comments
Config problems should be listed in the Problems tab of VS Code |
@Stono would it be possible for you to share a reduced example where this happens? I that the error is thrown from a file outside of node modules, which is likely important. I've tried to recreate a repro based on your description but the error is always shown in the Problems view for me. |
Sure thing. Will do tomorrow! |
We need more information to act on this report. Please file a new one with a repro and link to this issue when you get back to it! |
Version
1.48.2
Steps to reproduce
Hi,
If there is an error in your
platwright.config.ts
for whatever reason (in my case i messed up an import), it's kind of a transparent failure in vscode.When all is well: (notice the run icon):
When there's an error in the playwright server (notice no icon):
I can't find any obvious way of debugging this, typically I'd expect
Playwright
to appear in theOutput
window, but it does not:I swear this used to be there, so is this a bug?
The nasty way this manifests for me is because we require some environment variables to be set i our playwright config file, and if the user forgets to set them, everything is just silently broken and i get loads of "playwright doesn't work in vscode" type questions.
Expected behavior
For it to be clear that the reason the test run icon isn't available is because playwright failed to load, and the reason is X
Actual behavior
As above
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: