-
Notifications
You must be signed in to change notification settings - Fork 247
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
NullReferenceException in NewContextAsync #2071
Comments
Is this maybe the same as #2069? Does it also happen on new projects? |
its weird. i cant repro in a new app. but i re-cloned my code and it still happens. this is the codebase that it fails in https://github.com/VerifyTests/Verify.HeadlessBrowsers |
This threw me for a while, my issue was I needed to do a rebuild. It happens due to a mismatch of the JavaScript version and package version.
I'd suggest a better null check on the tracing property (as consistency cannot be assumed due to too many moving parts), and the version number in the npm content that is copied to the bin folder. |
To be clear, it's the "preserve newest" copy behaviour of these files that results in a version mismatch: playwright-dotnet/src/Playwright/build/Microsoft.Playwright.targets Lines 26 to 28 in 90405a4
for some reason it will not overwrite the existing package, which then leads to this exception. |
I think we are hitting this known issue with the "fast update-to-date checker" dotnet/project-system#4665 |
Folding into #2069 Thank you folks for the input! We'll fix it in the driver side and provide recent modification dates with the next release. |
Still seeing this problem with NewContextAsync. I posted the details on #2069 |
Please file a new issue. |
Done, #2175 |
<PackageReference Include="Microsoft.Playwright" Version="1.20.1" />
offending line
https://github.com/microsoft/playwright-dotnet/blob/main/src/Playwright/Core/Browser.cs#L121
The text was updated successfully, but these errors were encountered: