Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #10

@l-margiela

Description

@l-margiela

Hello, I've installed lsp using go get github.com/dborzov/lsp and when I tried to run lsp in any directory I've got error like this:

➜  empty  ls -a
.  ..
➜  empty  lsp
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x40 pc=0x403362]

goroutine 1 [running]:
runtime.panic(0x4fd180, 0x6502e8)
        /usr/lib/golang/src/pkg/runtime/panic.c:266 +0xb6
main.presentPath(0xc21004c640, 0x11, 0xc21004c820, 0x1b)
        /home/xaxes/.go/src/github.com/dborzov/lsp/paths.go:11 +0x32
main.renderSummary()
        /home/xaxes/.go/src/github.com/dborzov/lsp/render.go:20 +0x7b
main.render()
        /home/xaxes/.go/src/github.com/dborzov/lsp/render.go:15 +0x24
main.main()
        /home/xaxes/.go/src/github.com/dborzov/lsp/main.go:23 +0x245

goroutine 3 [sleep]:
time.Sleep(0xbebc200)
        /usr/lib/golang/src/pkg/runtime/time.goc:31 +0x31
main.func·002()
        /home/xaxes/.go/src/github.com/dborzov/lsp/utils.go:10 +0x26
created by main.setTimeoutTimer
        /home/xaxes/.go/src/github.com/dborzov/lsp/utils.go:12 +0x21

I'm using Fedora 20 and FS is XFS if it does matter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions