You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I visited the "A Tour of Go" website at https://go.dev/tour/welcome/1. Then I clicked on the Format button next to the code editor. I expected to see either a human-readable error (if formatting failed) or no feedback (if formatting succeeded). But the output was:
[object Object]
Note that this happens regardless of whether or not the file has syntax errors.
Screenshot
The text was updated successfully, but these errors were encountered:
nishanths
changed the title
x/website/tour: Formatting the code prints "[object Object]"
x/website/tour: using the Format button prints "[object Object]"
Nov 23, 2021
go.dev uses /_/fmt, not /fmt.
Fix the JavaScript and then the standalone tour binary to both use /_/fmt too.
Fixesgolang/go#49746.
Change-Id: Ic59c6afb99748ed8c3e74c69c2d753671d92432b
Reviewed-on: https://go-review.googlesource.com/c/website/+/366977
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Website-Publish: Russ Cox <rsc@golang.org>
I visited the "A Tour of Go" website at https://go.dev/tour/welcome/1. Then I clicked on the Format button next to the code editor. I expected to see either a human-readable error (if formatting failed) or no feedback (if formatting succeeded). But the output was:
Note that this happens regardless of whether or not the file has syntax errors.
Screenshot
The text was updated successfully, but these errors were encountered: