doufei2662 2019-08-25 03:01
浏览 349

狂欢无法运行应用程序:恐慌:运行时错误:无效的内存地址或nil指针取消引用

I install revel framework:

go get github.com/revel/revel
go get github.com/revel/cmd/revel

I move to .../go/src and create new projext

revel new app
revel run app

but it doesn't work

This is revel version.

Revel executing: displays the Revel Framework and Go version
WARN  11:53:15 version.go:71: Unable to extract version information from Revel library  error,err=nil LOG15_ERROR="Normalized odd number of arguments by adding nil"
Revel Framework :   Unknown (0.21.0 remote master branch)
Revel Cmd   :   0.21.1  (0.21.1 remote master branch)
Revel Modules   :   Unknown (0.21.0 remote master branch)

go version go1.12.6 darwin/amd64

Why doesn't this work???

Error message:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x123d711]

goroutine 1 [running]:
github.com/revel/cmd/utils.FindSrcPaths(0x7ffeefbffb4a, 0x3, 0x1525cd0, 0x16, 0x0, 0xc0000de2d0, 0x0, 0x0, 0x4, 0x4, ...)
    /Users/go/pkg/mod/github.com/revel/cmd@v0.21.1/utils/file.go:358 +0x481
github.com/revel/cmd/model.(*CommandConfig).SetVersions(0xc00000c1e0, 0x152489a, 0x14)
    /Users/go/pkg/mod/github.com/revel/cmd@v0.21.1/model/command_config.go:301 +0xcb
github.com/revel/cmd/model.(*CommandConfig).UpdateImportPath(0xc00000c1e0, 0x12, 0x2)
    /Users/go/pkg/mod/github.com/revel/cmd@v0.21.1/model/command_config.go:154 +0x685
main.main()
    /Users/go/pkg/mod/github.com/revel/cmd@v0.21.1/revel/revel.go:94 +0x161
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器