gopherjs: Cannot install

When typing in go 1.5 and 1.6: go get -u github.com/gopherjs/gopherjs I get:

# github.com/gopherjs/gopherjs/compiler
Go/src/github.com/gopherjs/gopherjs/compiler/utils.go:341: cannot use ty (type "go/types".Type) as type "golang.org/x/tools/go/types".Type in argument to c.p.anonTypeMap.At:
    "go/types".Type does not implement "golang.org/x/tools/go/types".Type (wrong type for Underlying method)
        have Underlying() "go/types".Type
        want Underlying() "golang.org/x/tools/go/types".Type
Go/src/github.com/gopherjs/gopherjs/compiler/utils.go:347: cannot use ty (type "go/types".Type) as type "golang.org/x/tools/go/types".Type in argument to c.p.anonTypeMap.Set:
    "go/types".Type does not implement "golang.org/x/tools/go/types".Type (wrong type for Underlying method)
        have Underlying() "go/types".Type
        want Underlying() "golang.org/x/tools/go/types".Type

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Perfect! It worked this time, and ~:$gopherjs build test1.go did what was expected to do: it created test1.js and test1.js.map

Thanks a lot.

On Mon, Mar 28, 2016 at 8:35 PM, Dmitri Shuralyov notifications@github.com wrote:

Yep, as I expected, that’s the problem. Notice how your golang.org/x/tools is checked out from:

“Local”: { “RemoteURL”: “https://code.google.com/p/go.tools”,

But it should be coming from “https://go.googlesource.com/tools”.

Delete the entire golang.org/x/tools repo (the /home/achille/Go/src/ golang.org/x/tools directory) and go get it again.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/gopherjs/gopherjs/issues/435#issuecomment-202645881