1

我正在尝试在 WINDOWS 7 中使用 Revel Web 框架,但遇到了麻烦。只需按照 [快速入门] 页面 [ http://revel.github.io/]中的步骤操作:

c:\dev> 去获取 github.com/revel/cmd/revel

c:\dev> revel 运行 github.com/revel/revel/samples/chat

我的 GOROOT 和 GOPATH 配置是:

GOPATH =/用户/nery/DEV/go

GOROOT =/软/去

我也试过

GOPATH = c:\Users\nery\DEV\go

GOROOT = c:\soft\go

  但是,浏览器(Chrome)没有响应,服务器生成以下错误输出:

2015/01/14 10:07:56 harness.go:165: Listening on :9000                          
2015/01/14 10:07:58 reflect.go:775: Unexpected! Code path is not in GOPATH: \sof
t\go\src/github.com\revel\revel\samples\chat/app                                
2015/01/14 10:07:58 reflect.go:94: Skipping code path \soft\go\src/github.com\re
vel\revel\samples\chat/app                                                      
2015/01/14 10:07:58 reflect.go:775: Unexpected! Code path is not in GOPATH: \sof
t\go\src\github.com\revel\revel\modules\static/app                              
2015/01/14 10:07:58 reflect.go:94: Skipping code path \soft\go\src\github.com\re
vel\revel\modules\static/app                                                    
2015/01/14 10:07:58 reflect.go:775: Unexpected! Code path is not in GOPATH: \sof
t\go\src\github.com\revel\revel\modules\testrunner/app                          
2015/01/14 10:07:58 reflect.go:94: Skipping code path \soft\go\src\github.com\re
vel\revel\modules\testrunner/app                                                
2015/01/14 10:07:58 reflect.go:775: Unexpected! Code path is not in GOPATH: \sof
t\go\src/github.com\revel\revel\samples\chat/tests                              
2015/01/14 10:07:58 reflect.go:94: Skipping code path \soft\go\src/github.com\re
vel\revel\samples\chat/tests                                                    
2015/01/14 10:07:58 server.go:1775: http: panic serving 127.0.0.1:50903: runtime
 error: invalid memory address or nil pointer dereference                       
goroutine 26 [running]:                                                         
net/http.func·011()                                                             
        c:/go/src/net/http/server.go:1130 +0xc2                                 
github.com/revel/revel/harness.(*SourceInfo).ControllerSpecs(0x0, 0x0, 0x0, 0x0)

. . .

有没有人有任何可以帮助我的提示?谢谢。

4

0 回答 0