-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: play.golang.org hangs on a simple program with unreachable code #27980
Comments
I can verify this. |
The failing code is: if (dataVet.Errors) {
// inject errors from the vet as the first event in the output
data.Events.unshift({Message: 'Go vet exited.\n\n', Kind: 'system', Delay: 0});
data.Events.unshift({Message: dataVet.Errors, Kind: 'stderr', Delay: 0});
} It fails when |
@ysmolsky |
I will take a look. |
@andybons
And this was fixed on May 25th: https://go-review.googlesource.com/c/tools/+/113875 |
Change https://golang.org/cl/140017 mentions this issue: |
Reopening until this is deployed. |
Redeployed play.golang.org, confirmed the issue is resolved: (Source: https://play.golang.org/p/egwBhqHiRnk.) |
Use the godoc with the CL 113875. That CL handles the case when there was no output from the user program and vet returned an error. Fixes golang/go#27980 Change-Id: I8f3d5ff477fb930c099fd9780c102c8421403e55 Reviewed-on: https://go-review.googlesource.com/c/140017 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
I run this simple program on play.golang.org:
After I press "Run", the output window at the bottom of the page says "Waiting for remote server..." and nothing happens. If I run this program locally, it terminates instantly.
The text was updated successfully, but these errors were encountered: