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
go get github.com/revel/cmd/revel
git clone https://github.com/revel/examples $GOPATH/src/github.com/revel/examples
revel run github.com/revel/examples/chat
I only get a crash on Windows and Debian 10:
Windows:
C:▶revel /v run github.com/revel/examples/chat
INFO 17:50:49 revel.go:94: Import path is absolute or not specified path=
INFO 17:50:49 command_config.go:133: Checking import path C:\Users\lboulard with C:\Users\lboulard\go
INFO 17:50:49 revel.go:94: Returned import path path= buildpath=C:\\Users\\lboulard\\go
INFO 17:50:49 command_config.go:301: Seeking remote package using= remote=github.com/revel/revel
INFO 17:50:49 command_config.go:301: Resolved called Seeking remote package using= remote=github.com/revel/revel
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x6468dc]
goroutine 1 [running]:
github.com/revel/cmd/utils.FindSrcPaths(0x0, 0x0, 0x9434e8, 0x16, 0x0, 0xc00013c090, 0x0, 0x0, 0x4, 0x4, ...)
C:/Users/lboulard/go/src/github.com/revel/cmd/utils/file.go:358 +0x3dc
github.com/revel/cmd/model.(*CommandConfig).SetVersions(0xc0000021e0, 0x941dca, 0x14)
C:/Users/lboulard/go/src/github.com/revel/cmd/model/command_config.go:301 +0xd1
github.com/revel/cmd/model.(*CommandConfig).UpdateImportPath(0xc0000021e0, 0x11, 0x3)
C:/Users/lboulard/go/src/github.com/revel/cmd/model/command_config.go:154 +0x5f5
main.main()
C:/Users/lboulard/go/src/github.com/revel/cmd/revel/revel.go:94 +0x16f
This is a documentation issue, the problem is that the folder needed to be added to the GOPATH in order to run the examples. I will update the example apps to resolve this for 1.0 release
When running example in homepage https://revel.github.io/ using go 1.13.5:
go get github.com/revel/cmd/revel git clone https://github.com/revel/examples $GOPATH/src/github.com/revel/examples revel run github.com/revel/examples/chat
I only get a crash on Windows and Debian 10:
Windows:
Debian 10:
The text was updated successfully, but these errors were encountered: