Skip to content

Uncaught TypeError: Cannot read property 'importpath' of undefinedΒ #20

@wichert

Description

@wichert

[Enter steps to reproduce below:]

  1. Install the go-oracle atom package
  2. run go get golang.org/x/tools/cmd/oracle
  3. Add $GOPATH/bin to PATH
  4. Start Atom and option a .go file
  5. Hit Ctrl-Option-O

Atom Version: 0.198.0
System: Mac OS X 10.10.4
Thrown From: go-oracle package, v0.2.0

Stack Trace

Uncaught TypeError: Cannot read property 'importpath' of undefined

At /Users/wichert/.atom/packages/go-oracle/lib/oracle-command.coffee:27

TypeError: Cannot read property 'importpath' of undefined
  at /Users/wichert/.atom/packages/go-oracle/lib/oracle-command.coffee:27:64
  at OracleCommand.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/emissary/lib/emitter.js:118:15)
  at ChildProcess.<anonymous> (/Users/wichert/.atom/packages/go-oracle/lib/oracle-command.coffee:42:8)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:169:7)
  at maybeClose (child_process.js:997:16)
  at Socket.<anonymous> (child_process.js:1166:11)
  at emitOne (events.js:77:13)
  at Socket.emit (events.js:166:7)
  at Pipe.close (net.js:464:12)

Commands

     -0:01.2.0 go-oracle:oracle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "vim-mode"
    ]
  }
}

Installed Packages

# User
auto-detect-indentation, v0.4.0
autocomplete-clang, v0.6.8
autocomplete-css, v0.6.0
autocomplete-html, v0.6.0
autocomplete-plus, v2.12.1
autocomplete-python, v0.3.0
git-log, v0.3.0
go-format, v1.0.7
go-oracle, v0.2.0
go-plus, v3.3.10
language-cmake, v0.1.3
language-restructuredtext, v0.5.0
linter, v0.12.1
linter-bootlint, v0.0.5
linter-clang, v2.25.1
linter-csslint, v0.0.12
linter-flake8, v1.4.0
linter-js-yaml, v1.0.0

# Dev
No dev packages

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