-
Notifications
You must be signed in to change notification settings - Fork 11
Missing $copy function when building my playground. #38
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
Comments
Thanks for reporting this. What happens if you do all that but skip step 3? The If it works when you skip step 3, then the real fix it to resolve #36. |
I try to remove gopherjs and gopherjs.github.io package from $GOROOT and $GOPATH and redo steps without step 3. But get the same error message.
|
I can reproduce. This is a valid issue (/cc @neelance), thank you for reporting @PeerXu. It took me a while to figure out what was going on. I first tried the instructions for developing on GopherJS Playground at https://github.com/gopherjs/gopherjs.github.io/tree/master/playground#development, and everything worked fine for me, the playground was served and I could compile successfully in it. Then I tried the I tried to diff the result I got above vs the result of doing package main
import "fmt"
func main() {
fmt.Println("hello, world!")
} And the diff was very strange. The working output generated by Then I realized. When I was doing So I deleted all of my $GOPATH/pkg, and I could reproduce the error in the served playground: |
I suspect the problem is caused by the recent change from old The currently built packages in https://github.com/gopherjs/gopherjs.github.io/tree/master/playground/pkg directory are no longer valid when the playground is recompiled with the latest We need to update all the |
In my experience, copy |
This is the first update of playground after the GopherJS update of go/types import paths and related changes. Fixes #38.
I try to build my own playground, but get the "panic: $copy is not defined" error message in output box.
Steps:
gopherjs serve
to start a serverhttp://localhost:8080/github.com/gopherjs/gopherjs.github.io/playground/
and press Run buttonBut get the error message in output box.
And I found the missing function
$copy
is move totypes.go
file at gopherjs/gopherjs@a90f655hope it is useful.
The text was updated successfully, but these errors were encountered: