Skip to content

Improve importing, fix importing panic #34

Closed
@kevinburke

Description

@kevinburke

Steps to reproduce (maybe?)

  • set JUPYTER_CONFIG_DIR to $HOME/cfg/jupyter
  • set JUPYTER_DATA_DIR to $HOME/local/share/jupyter
  • run go install ./... (I'm using go1.7)

start Jupyter Notebook, start a Golang notebook

type the following

 import "fmt"
fmt.Println("Hello World")

Then hit shift+enter. I get the following panic:

panic: exit status 2

goroutine 1 [running]:
panic(0x42ebe80, 0xc420288f60)
    /Users/kevin/go/src/runtime/panic.go:500 +0x1a1
github.com/gopherds/gophernotes/internal/repl.(*Session).Eval(0xc4200ac370, 0xc420284c90, 0x27, 0xc42022d498, 0xc420286d70, 0x8, 0xc420288500, 0x0, 0x0, 0x0, ...)
    /Users/kevin/code/go/src/github.com/gopherds/gophernotes/internal/repl/repl.go:355 +0xc01
main.HandleExecuteRequest(0xc4202884e0, 0x20, 0xc420286c98, 0x8, 0xc420288500, 0x20, 0xc420286ca0, 0xf, 0x0, 0x0, ...)
    /Users/kevin/code/go/src/github.com/gopherds/gophernotes/execution.go:60 +0x2f3
main.HandleShellMsg(0xc4202884e0, 0x20, 0xc420286c98, 0x8, 0xc420288500, 0x20, 0xc420286ca0, 0xf, 0x0, 0x0, ...)
    /Users/kevin/code/go/src/github.com/gopherds/gophernotes/gophernotes.go:108 +0x2c7
main.RunKernel(0x7fff5fbff495, 0x59, 0x44ab360, 0xc4200142a8)
    /Users/kevin/code/go/src/github.com/gopherds/gophernotes/gophernotes.go:194 +0x836
main.main()
    /Users/kevin/code/go/src/github.com/gopherds/gophernotes/main.go:25 +0xc6

Haven't investigated it at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions