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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥60 求一个简单的网页(标签-安全|关键词-上传)
    • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
    • ¥15 基于卷积神经网络的声纹识别
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP