Wails: Problem installing wails on Windows

Created on 18 May 2019  路  5Comments  路  Source: wailsapp/wails

Description
Error initial compiling

To Reproduce
Steps to reproduce the behaviour:

  1. Go to 'CMD window'
  2. Click on 'go get github.com/wailsapp/wails/cmd/wails'
  1. See error:
# github.com/wailsapp/wails/cmd
C:\Users\u\go\src\github.com\wailsapp\wails\cmd\templates.go:50:18: too many arguments in call to entries.AddSlice
        have ([]string, error)
        want ([]string)
C:\Users\u\go\src\github.com\wailsapp\wails\cmd\templates.go:105:28: too many arguments in call to templateFilenames.AddSlice
        have ([]string, error)
        want ([]string)

Expected behaviour
Successful compiling
download

System Details
Windows 10 64 bit

Awaiting Feedback bug

Most helpful comment

I added
SET GO111MODULE=on
And works perfect for me
Thank you!

All 5 comments

Having this same issue on osx 10.11.6:-

go get github.com/wailsapp/wails/cmd/wails
# github.com/wailsapp/wails/cmd
go/src/github.com/wailsapp/wails/cmd/templates.go:50:18: too many arguments in call to entries.AddSlice
    have ([]string, error)
    want ([]string)
go/src/github.com/wailsapp/wails/cmd/templates.go:105:28: too many arguments in call to templateFilenames.AddSlice
    have ([]string, error)
    want ([]string)
11:09:33 ~$ go version
go version go1.11.1 darwin/amd64

Hi. This happens when you don't have your GO111MODULE environment variable set. I've improved the docs to make this more explicit.

It shouldn't do what it's doing however that code has already been rewritten and is almost ready for release. In fact, it may be out today.

I added
SET GO111MODULE=on
And works perfect for me
Thank you!

That strange as if I added GO111MODULE=on I will bump into this issue and the recommendation there is to turn off GO111MODULE=on.

11:09:33 ~$ go version
go version go1.11.1 darwin/amd64
05:00:37 ~$ export GO111MODULE=on
05:00:42 ~$ go get github.com/wailsapp/wails/cmd/wails
go: cannot find main module; see 'go help modules'

Interesting. You could just use go 1.12. That being said, the issue above should be fixed now. Let me know!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Lyimmi picture Lyimmi  路  4Comments

best2000 picture best2000  路  7Comments

conanchen picture conanchen  路  5Comments

ewhal picture ewhal  路  3Comments

leaanthony picture leaanthony  路  3Comments