Skip to content
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/website: Playground snippet fails at page load "expected 'package', found Loading" #53065

Closed
Deleplace opened this issue May 25, 2022 · 3 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. website
Milestone

Comments

@Deleplace
Copy link
Contributor

What is the URL of the page with the issue?

https://go.dev/play/p/Z0qYLaaDzyL

What is your user agent?

[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36](https://developers.whatismybrowser.com/useragents/parse/?analyse-my-user-agent=yes)

That was Chrome, but the same bug was observed with Firefox.

Screenshot

image

What did you do?

Open https://go.dev/play/p/Z0qYLaaDzyL in my web browser

What did you expect to see?

No error

What did you see instead?

prog.go:1:1: expected 'package', found Loading

Go build failed.

More info

This does not seem specific to my browser (tried 2 browsers).

This does not seem specific to my snippet URL (tried other snippets, e.g. https://go.dev/play/p/2DClKGAIhmz ).

The problem occurs as soon as the web page loads, before I do any action.

Subsequently clicking the [Run] button works fine.

@gopherbot gopherbot added this to the Unreleased milestone May 25, 2022
@ZekeLu
Copy link
Contributor

ZekeLu commented May 25, 2022

The issue has been mentioned here: #49895 (comment)
A CL is pending for review.

@Deleplace
Copy link
Contributor Author

Thank you @ZekeLu

@gopherbot
Copy link

Change https://go.dev/cl/408414 mentions this issue: _content: do not run playground code on page load

@seankhliao seankhliao added the NeedsFix The path to resolution is known, but the work has not been done. label May 25, 2022
@golang golang locked and limited conversation to collaborators May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants