Open eatdrinksleepcode opened 3 months ago
Ahh this is annoying, looks like chromium shut down https://omahaproxy.appspot.com/all.json which is what gcdapigen used to pull down the latest versions. We need to fix the apigen stuff as doing this downloading of json manually is error prone.
We can get this merged in without updating/fixing gcdapigen, but can you fix the test and example app that are throwing errors?
Then I can get this merged in and bump the release.
/gcd_test.go:624:4: unknown field 'PostData' in struct literal of type gcdapi.FetchContinueRequestParams
Error: examples/screenshot/screenshot.go:105:14: assignment mismatch: 2 variables but page.CaptureScreenshotWithParams returns 1 values
@wirepair Both of the test errors are happening because of pieces that have been removed from the generated code (a field in a request object, and a return value in a method call). Except that I think in both cases those removals are incorrect.
PostData
field was removed from FetchContinueRequestParams
but is still present in CDP.Page.CaptureScreenshotWithParams
but is (obviously) still present in CDP.I'm not sure what's causing these incorrect removals, or if there are similar incorrect changes that are not being caught by tests.
I'll take a look today to see what is happening with the generator code
Going to close this in favor of https://github.com/wirepair/gcd/pull/77 as this updates gcdapigen to pulldown the latest protocol.json file from the ToT.
browser_protocol.json
file from here