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
x/playground: not showing vet warnings #58560
Comments
Thanks for the report. This appears to be related to the new frontend, since the warning does appear on the old frontend: |
The vet error message is not reaching the browser anymore, as the JSON key The old JSON on the left is the response of a POST request to https://gotipplay.golang.org/compile The new JSON on the right is the response of a POST request to https://go.dev/_/compile?backend= |
In both cases (old and new), the request to the endpoint |
Thanks @Deleplace, due to your investigation, I found the bug: The compile proxy is not forwarding the withVet field. Should be an easy fix. |
Change https://go.dev/cl/478576 mentions this issue: |
Change https://go.dev/cl/480236 mentions this issue: |
CL 478576 restored support for go vet errors to go.dev/play. However, I didn't realize that cmd/golangorg/testdata contained tests that aren't run by trybots. Since these tests were not updated, the deployment failed. Update live.txt to expect the VetErrors field. Tested locally by uncommenting the skip in server_test.go. For golang/go#58560 Change-Id: I2757ef569907a730f9cccccd0f15e7a7b1bb9975 Reviewed-on: https://go-review.googlesource.com/c/website/+/480236 Reviewed-by: Jamal Carvalho <jamal@golang.org> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
\o/ fantastic, thank you Robert |
Thank you @Deleplace for reporting this, helping to root cause, and for providing feedback on the colors! |
What version of Go are you using (
go version
)?(in the playground actually, not my computer)
Does this issue reproduce with the latest release?
Yes
What did you do?
In the Go playground:
What did you expect to see?
Program 1:
Program 2:
What did you see instead?
Program 1:
Program 2:
This is not expected because the playground's About explicitly says "The service receives a Go program, vets, compiles, links, and runs the program inside a sandbox, then returns the output". If the service does vet, then I'm expecting to see the vet warnings.
The text was updated successfully, but these errors were encountered: