Giter Site home page Giter Site logo

Comments (4)

dborzov avatar dborzov commented on May 14, 2024

heh, thanks for reporting that, will look into this

from lsp.

rydn avatar rydn commented on May 14, 2024

Yup... Me too, Fedora 21

FS is btrfs if it matters.

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x404b2e]

goroutine 1 [running]:
main.presentPath(0xc20803a8d0, 0x25, 0x0, 0x0)
    /home/ryan/.gocode/src/github.com/lsp/paths.go:11 +0x16e
main.renderSummary()
    /home/ryan/.gocode/src/github.com/lsp/fmt.go:58 +0x8f
main.render()
    /home/ryan/.gocode/src/github.com/lsp/fmt.go:53 +0x25
main.main()
    /home/ryan/.gocode/src/github.com/lsp/main.go:24 +0x372

goroutine 26 [sleep]:
main.func·002()
    /home/ryan/.gocode/src/github.com/lsp/utils.go:10 +0x27
created by main.setTimeoutTimer
    /home/ryan/.gocode/src/github.com/lsp/utils.go:12 +0x25

from lsp.

langston-barrett avatar langston-barrett commented on May 14, 2024

Looks like Golang can't find the user's home dir. Perhaps logging a warning or having a default (maybe /home/[username] or /Users/[username] for OSX) would work better?

I can create a pull once we get an outline.

from lsp.

voxadam avatar voxadam commented on May 14, 2024

I seem to be hitting this same bug.

[adam@Drogon]~/devel/go/src% lsp
--------------------------------------------------------------------------------------------------------------------------------------
                                                         bazil.org  dir(96 files)
                                                     bitbucket.org  dir(33 files)
                                                   code.google.com  dir(718 files)
                                                        github.com  dir(3699 files)
                                                        golang.org  dir(622 files)
                                                          gopkg.in  dir(85 files)
                                                     launchpad.net  dir(27 files)
--------------------------------------------------------------------------------------------------------------------------------------
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x40504e]

goroutine 1 [running]:
main.presentPath(0xc20801e400, 0x17, 0x0, 0x0)
        /home/adam/devel/go/src/github.com/dborzov/lsp/paths.go:11 +0x16e
main.renderSummary()
        /home/adam/devel/go/src/github.com/dborzov/lsp/fmt.go:61 +0x8f
main.render()
        /home/adam/devel/go/src/github.com/dborzov/lsp/fmt.go:56 +0x25
main.main()
        /home/adam/devel/go/src/github.com/dborzov/lsp/main.go:28 +0x508

goroutine 12 [sleep]:
main.func·002()
        /home/adam/devel/go/src/github.com/dborzov/lsp/utils.go:10 +0x27
created by main.setTimeoutTimer
        /home/adam/devel/go/src/github.com/dborzov/lsp/utils.go:12 +0x25
[adam@Drogon]~/devel/go/src%

from lsp.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.