Giter VIP home page Giter VIP logo

go-oracle's People

Contributors

curator avatar kevinsawicki avatar rubyist avatar seveibar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-oracle's Issues

A mode isn't always available

Handle the situation where an oracle mode isn't going to work for whatever is selected.

We're already using what to get the import path, this also gives the list of modes, use this to know whether or not the mode can be used.

I'm not sure if we can deactivate context menus the way its set up. If not, we can just display an error in the panel.

on atom 0.96 not working

I'm not getting any juiciness (the plug in is not working, seemingly),

when I select a function ident, and on the editor page, the oracle pane flickers a bit, but no list of items. the popup works. but in the js console I get....

/mypath/to/oracle -pos-/LongUglyPathname/tonic/tonic.go:#606 -format=plain definition undefined    oracle-command.coffee:21

I do have the go oracle installed. Are there other dependencies?

I also have the current go-plus installed
screen shot 2014-05-21 at 5 33 46 pm

document oracle installation

I can't find any info on installing the oracle command. Can this be documented in the go-oracle README for now?

Uncaught Error: spawn ENAMETOOLONG

Uncaught Error: spawn ENAMETOOLONG

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

Steps To Reproduce

  1. ...
  2. ...

Stack Trace

At child_process.js:1160

Error: spawn ENAMETOOLONG
  at exports._errnoException (util.js:742:11)
  at ChildProcess.spawn (child_process.js:1160:11)
  at exports.spawn (child_process.js:993:9)
  at OracleCommand.module.exports.OracleCommand.oracleCommand (/Users/sunrunaway/.atom/packages/go-oracle/lib/oracle-command.coffee:23:12)
  at OracleCommand.module.exports.OracleCommand.what (/Users/sunrunaway/.atom/packages/go-oracle/lib/oracle-command.coffee:36:13)
  at OracleCommand.module.exports.OracleCommand.command (/Users/sunrunaway/.atom/packages/go-oracle/lib/oracle-command.coffee:46:6)
  at GoOracleView.module.exports.GoOracleView.runOracle (/Users/sunrunaway/.atom/packages/go-oracle/lib/go-oracle-view.coffee:80:13)
  at GoOracleView.module.exports.GoOracleView.openOracle (/Users/sunrunaway/.atom/packages/go-oracle/lib/go-oracle-view.coffee:75:6)
  at atom-workspace.<anonymous> (/Users/sunrunaway/.atom/packages/go-oracle/lib/go-oracle-view.coffee:61:56)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:112:34)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)
  at [object Object].jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)
  at Ipc.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:70:67)
  at Ipc.emit (events.js:110:17)
  at process.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:22:29)
  at process.emit (events.js:118:17)
  at Ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:39:29)
  at Ipc.sendChannelSync (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:47:28)
  at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:110:29)
  at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app/src/context-menu-manager.js:169:33)
  at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:138:33)
  at HTMLDocument.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:112:34)
  at HTMLDocument.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at HTMLDocument.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)

/cc @atom/core

Add a `return to launch point` button

Add a button that returns you to the point at which you launched oracle.

  • When oracle opens, store the current position
  • When the button is clicked, return to that position

dnsimple_go_-_users_scott_src_gocode_src_github_com_rubyist_go-dnsimple_and_go-oracle-view_coffee-__users_scott__atom_packages_go-oracle

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Users/Domen/Downloads/Atom.app/Contents/Resources/app/src/atom.js:55:13)
OracleCommand.getPath (/Users/Domen/.atom/packages/go-oracle/lib/oracle-command.coffee:49:4)

Atom Version 0.190.0

The user's path is not passed to oracle, preventing use of cgo

When the plugin runs oracle, it disregards the user's path from the environment. This, in turn, prevents cgo from working if Go is not installed in a standard system directory.

For example, on my setup, Go is installed in /usr/local/go. This directory is added to the PATH in my ~/.bashrc file, and is inherited by the Atom environment. But when the plugin runs oracle it runs it without the current customized path, causing it to fail. Copied from the Atom dev console:

/home/gavrie/work/go/bin/oracle -pos=/home/gavrie/work/go/src/github.com/elastifile/tesla/cmd/tesla/cli.go:#365 -format=plain callers github.com/elastifile/tesla/cmd/tesla
cgo failed: [go tool cgo -objdir /tmp/net_C590577505 -- -I /tmp/net_C590577505 cgo_linux.go cgo_unix.go]: exec: "go": executable file not found in $PATH
/usr/local/go/src/net/lookup_unix.go:56:20: undeclared name: cgoLookupHost
/usr/local/go/src/net/lookup_unix.go:64:20: undeclared name: cgoLookupIP
/usr/local/go/src/net/lookup_unix.go:72:19: undeclared name: cgoLookupPort
/usr/local/go/src/net/lookup_unix.go:80:20: undeclared name: cgoLookupCNAME
oracle: couldn't load packages due to errors: net

As a workaround, I've written a small wrapper script to run oracle with the correct path. As a full solution, I suggest passing in the current path when calling oracle. Alternatively, please allow the path to be configurable (similar to the Go path).

OSX error with 'callers'

[77647:0506/221816:INFO:CONSOLE(25)] "/Users/anacrolix/gopath/bin/oracle -pos=/Users/anacrolix/gopath/src/github.com/anacrolix/torrent/client.go:#11845 -format=plain what undefined", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (25)
[77647:0506/221816:INFO:CONSOLE(25)] "/Users/anacrolix/gopath/bin/oracle -pos=/Users/anacrolix/gopath/src/github.com/anacrolix/torrent/client.go:#11845 -format=plain describe github.com/anacrolix/torrent", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (25)
[77647:0506/221839:INFO:CONSOLE(25)] "/Users/anacrolix/gopath/bin/oracle -pos=/Users/anacrolix/gopath/src/github.com/anacrolix/torrent/client.go:#11845 -format=plain what undefined", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (25)
[77647:0506/221839:INFO:CONSOLE(25)] "/Users/anacrolix/gopath/bin/oracle -pos=/Users/anacrolix/gopath/src/github.com/anacrolix/torrent/client.go:#11845 -format=plain callers github.com/anacrolix/torrent", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (25)
[77647:0506/221840:INFO:CONSOLE(41)] "Error running "callers": cgo failed: [go tool cgo -objdir /tmp/net_C106883355 -- -I /tmp/net_C106883355 cgo_bsd.go cgo_resnew.go cgo_sockold.go cgo_unix.go]: exec: "go": executable file not found in $PATH
", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (41)
[77647:0506/221840:INFO:CONSOLE(41)] "Error running "callers": cgo failed: [go tool cgo -objdir /tmp/crypto_x509_C269084606 -- -I /tmp/crypto_x509_C269084606 -mmacosx-version-min=10.6 -D__MAC_OS_X_VERSION_MAX_ALLOWED=1060 root_cgo_darwin.go]: exec: "go": executable file not found in $PATH
", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (41)
[77647:0506/221841:INFO:CONSOLE(41)] "Error running "callers": /Users/anacrolix/src/go/src/net/lookup_unix.go:58:24: undeclared name: cgoLookupHost
/Users/anacrolix/src/go/src/net/lookup_unix.go:71:24: undeclared name: cgoLookupIP
", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (41)
[77647:0506/221841:INFO:CONSOLE(41)] "Error running "callers": /Users/anacrolix/src/go/src/net/lookup_unix.go:87:23: undeclared name: cgoLookupPort
/Users/anacrolix/src/go/src/net/lookup_unix.go:97:24: undeclared name: cgoLookupCNAME
", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (41)
[77647:0506/221841:INFO:CONSOLE(41)] "Error running "callers": /Users/anacrolix/src/go/src/net/lookup_unix.go:164:23: undeclared name: cgoLookupPTR
", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (41)
[77647:0506/221841:INFO:CONSOLE(41)] "Error running "callers": /Users/anacrolix/src/go/src/crypto/x509/cert_pool.go:36:9: undeclared name: loadSystemRoots
", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (41)
[77647:0506/221841:INFO:CONSOLE(41)] "Error running "callers": /Users/anacrolix/src/go/src/crypto/x509/root.go:21:32: undeclared name: loadSystemRoots
", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (41)
[77647:0506/221842:INFO:CONSOLE(41)] "Error running "callers": oracle: couldn't load packages due to errors: net, crypto/x509
", source: /Users/anacrolix/.atom/packages/go-oracle/lib/oracle-command.coffee (41)

Package.getActivationCommands is deprecated.

Use activationCommands instead of activationEvents in your package.json
Commands should be grouped by selector as follows:

  "activationCommands": {
    "atom-workspace": ["foo:bar", "foo:baz"],
    "atom-text-editor": ["foo:quux"]
  }
Package.getActivationCommands (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:808:9)
Package.hasActivationCommands (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:733:20)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:185:24)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)
PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:355:14)

Failed to load the go-oracle package

[Enter steps to reproduce below:]

  1. ...Upgrade from 0.190.0 to 0.192.0

Atom Version: 0.192.0 ⚠️ in 1.0 API Preview Mode ⚠️
System: Mac OS X 10.10.3
Thrown From: go-oracle package, v0.2.0

Stack Trace

Failed to load the go-oracle package

At Cannot read property 'prototype' of undefined

TypeError: Cannot read property 'prototype' of undefined
    at __extends (/Users/vvaka/.atom/packages/go-oracle/lib/go-oracle-view.coffee:4:199)
    at /Users/vvaka/.atom/packages/go-oracle/lib/go-oracle-view.coffee:13:5
    at Object.<anonymous> (/Users/vvaka/.atom/packages/go-oracle/lib/go-oracle-view.coffee:143:5)
    at Object.<anonymous> (/Users/vvaka/.atom/packages/go-oracle/lib/go-oracle-view.coffee:145:4)
    at Module._compile (module.js:452:26)
    at Object.requireCoffeeScript (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-cash/lib/coffee-cash.js:85:19)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)

Commands

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "monokai"
    ],
    "disabledPackages": [
      "tabs",
      "tree-view"
    ]
  }
}

Installed Packages

# User
angularjs, v0.1.0
angularjs-snippets, v0.10.2
autocomplete-plus, v2.9.0
file-icons, v1.5.4
git-difftool, v0.2.5
go-oracle, v0.2.0
go-plus, v3.3.6
ionic-atom, v0.3.1
ionic-framework-snippets, v1.1.0
language-groovy, v0.4.0
language-scala, v1.1.0
monokai, v0.14.0
rest-client, v0.3.1
save-session, vundefined
sublime-tabs, v0.5.3

# Dev
No dev packages

Line position reported from atom off for oracle

AFAIU oracle get's called from the current cursor position.

I am running atom 0.104.

Here, the obtained cursor position seems to be two lines off the actual position visible on screen, leading to the strangest output because of erroneous invocation of go oracle

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the go-oracle package

Package.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:460:9)
Package.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:471:32)
Package.loadStylesheets (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:453:38)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:183:19)
Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:163:15)
Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:177:12)

Uncaught Error: spawn C:\data\share\deb\gocode;C:\data\share\deb\gocode\src\qdserver\.godeps/bin/oracle ENOENT

From @0xdabbad00 on December 28, 2014 17:14

  1. I just installed the go-oracle plugin https://atom.io/packages/go-oracle
  2. Then I opened some of my source files, and clicked Packages->Go-Oracle->Oracle

Atom Version: 0.165.0
System: Microsoft Windows 8.1 Pro with Media Center
Thrown From: Atom Core

Stack Trace

Uncaught Error: spawn C:\data\share\deb\gocode;C:\data\share\deb\gocode\src\qdserver.godeps/bin/oracle ENOENT

At events.js:85

Error: spawn C:\data\share\deb\gocode;C:\data\share\deb\gocode\src\qdserver\.godeps/bin/oracle ENOENT
  at exports._errnoException (util.js:742:11)
  at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
  at child_process.js:1142:20
  at process._tickCallback (node.js:378:11)

Commands

     -0:00.0 go-oracle:oracle (input.hidden-input)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "atom-lint",
      "jsformat",
      "linter-jshint",
      "linter-jsxhint",
      "jshint",
      "linter-pep8",
      "symbols-view",
      "autocomplete-plus"
    ]
  },
  "editor": {
    "fontSize": 12,
    "showInvisibles": true
  }
}

Installed Packages

# User
atom-jshint, v1.5.0
autocomplete-plus, v1.0.0
go-oracle, v0.2.0
go-plus, v3.0.11
linter, v0.9.0
react, v0.7.1

# Dev
No dev packages

Copied from original issue: atom/atom#4785

Uncaught TypeError: Cannot read property 'getBeginningOfCurrentWordBufferPosition' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.7
System: Mac OS X 10.10.5
Thrown From: go-oracle package, v0.2.1

Stack Trace

Uncaught TypeError: Cannot read property 'getBeginningOfCurrentWordBufferPosition' of undefined

At /Users/sander/Documents/Dropbox/.atom/packages/go-oracle/lib/oracle-command.coffee:57

TypeError: Cannot read property 'getBeginningOfCurrentWordBufferPosition' of undefined
  at OracleCommand.module.exports.OracleCommand.getPosition (/Users/sander/Documents/Dropbox/.atom/packages/go-oracle/lib/oracle-command.coffee:57:27)
  at OracleCommand.module.exports.OracleCommand.oracleCommand (/Users/sander/Documents/Dropbox/.atom/packages/go-oracle/lib/oracle-command.coffee:10:33)
  at OracleCommand.module.exports.OracleCommand.what (/Users/sander/Documents/Dropbox/.atom/packages/go-oracle/lib/oracle-command.coffee:36:13)
  at OracleCommand.module.exports.OracleCommand.command (/Users/sander/Documents/Dropbox/.atom/packages/go-oracle/lib/oracle-command.coffee:47:6)
  at GoOracleView.module.exports.GoOracleView.runOracle (/Users/sander/Documents/Dropbox/.atom/packages/go-oracle/lib/go-oracle-view.coffee:72:13)
  at HTMLSelectElement.<anonymous> (/Users/sander/Documents/Dropbox/.atom/packages/go-oracle/lib/go-oracle-view.coffee:54:8)
  at HTMLSelectElement.jQuery.event.dispatch (/opt/homebrew-cask/Caskroom/atom/1.0.4/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
  at HTMLSelectElement.elemData.handle (/opt/homebrew-cask/Caskroom/atom/1.0.4/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -9:46.5.0 core:backspace (atom-text-editor#go-oracle.goPath.editor.mini.is-focused)
 11x -9:45.7.0 blur (atom-text-editor#go-oracle.goPath.editor.mini.is-focused)
     -8:50.4.0 go-oracle:oracle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  3x -8:48.3.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -8:32.8.0 go-oracle:oracle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
 20x -8:30.1.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
  4x -1:16.6.0 go-oracle:oracle (atom-text-editor.editor.vim-mode.visual-mode.is-focused)
 14x -1:10.5.0 blur (atom-text-editor.editor.vim-mode.visual-mode.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "symbols-view"
    ]
  },
  "go-oracle": {
    "goPath": "/Users/sander/projects/go"
  }
}

Installed Packages

# User
atom-ctags, v4.1.4
dash, v1.3.0
file-icons, v1.6.3
go-oracle, v0.2.1
go-plus, v3.4.5
go-rename, v0.3.0
godef, v0.2.1
language-docker, v1.1.3
vim-mode, v0.58.0

# Dev
No dev packages

Deprecated Atom APIs will be removed June 1st

Atom will no longer load this package after June 1st without changes. There are a couple deprecations on the latest version (0.2.0) of this package:

  1. Store package style sheets in the styles/ directory instead of stylesheets/ in the <pack-name> package
  2. The context menu CSON format has changed. Please see https://atom.io/docs/api/latest/ContextMenuManager#context-menu-cson-format for more info.
  3. Use activationCommands instead of activationEvents in your package.json Commands should be grouped by selector as follows: json "activationCommands": { "atom-workspace": ["foo:bar", "foo:baz"], "atom-text-editor": ["foo:quux"] }
  4. Use a config schema instead. See the configuration section of https://atom.io/docs/latest/hacking-atom-package-word-count and https://atom.io/docs/api/latest/Config for more details
  5. Requiring $ from atom is no longer supported. If you are using space-pen, please require $ from atom-space-pen-views. Otherwise require jquery instead: {$} = require 'atom-space-pen-views' or $ = require 'jquery' Add "atom-space-pen-views": "^2.0.3" to your package dependencies. Or add "jquery": "^2" to your package dependencies.
  6. Requiring $$ from atom is no longer supported. Please require atom-space-pen-views instead: {$$} = require 'atom-space-pen-views' Add "atom-space-pen-views": "^2.0.3" to your package dependencies.
  7. Requiring View from atom is no longer supported. Please require atom-space-pen-views instead: {View} = require 'atom-space-pen-views' Add "atom-space-pen-views": "^2.0.3" to your package dependencies.
  8. atom.workspaceView is no longer available. In most cases you will not need the view. See the Workspace docs for alternatives: https://atom.io/docs/api/latest/Workspace. If you do need the view, please use atom.views.getView(atom.workspace), which returns an HTMLElement.
  9. Please use Workspace::addBottomPanel() instead
  10. Use TextEditor::getLastCursor() instead
  11. Use Project::open instead

Visit https://gist.github.com/benogle/6d09e295c84b717ef9b4 and search for your package name to see up-to-date deprecations.

If this package has been replaced by another package or functionality in core, please reply with this information.

See atom/atom#6867 for more info. Thanks!

Can not close the go-oracle pane/window

After using go-oracle, I would like to be able to close it.
Right now, the pane lives at the bottom of my screen, taking up a lot of space.
There are not close buttons anywhere, and right clicking does nothing. I see no way to close the mini-pane.
If I hit ctrl-K ctrl-W to close the pane, instead of closing go-oracle, it closes all my open text/code files, while go-oracle stays open.
Please let me close go-oracle, or at least minimize it or move it to the right or left or something.

Uncaught Error: spawn EACCES

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.0
System: Mac OS X 10.10.3
Thrown From: go-oracle package, v0.2.1

Stack Trace

Uncaught Error: spawn EACCES

At child_process.js:1145

Error: spawn EACCES
  at exports._errnoException (util.js:734:11)
  at ChildProcess.spawn (child_process.js:1145:11)
  at exports.spawn (child_process.js:977:9)
  at OracleCommand.module.exports.OracleCommand.oracleCommand (/Users/sky/.atom/packages/go-oracle/lib/oracle-command.coffee:22:12)
  at OracleCommand.module.exports.OracleCommand.what (/Users/sky/.atom/packages/go-oracle/lib/oracle-command.coffee:36:13)
  at OracleCommand.module.exports.OracleCommand.command (/Users/sky/.atom/packages/go-oracle/lib/oracle-command.coffee:47:6)
  at GoOracleView.module.exports.GoOracleView.runOracle (/Users/sky/.atom/packages/go-oracle/lib/go-oracle-view.coffee:72:13)
  at GoOracleView.module.exports.GoOracleView.openOracle (/Users/sky/.atom/packages/go-oracle/lib/go-oracle-view.coffee:67:6)
  at atom-workspace.atom.commands.add.go-oracle:oracle (/Users/sky/.atom/packages/go-oracle/lib/go-oracle-view.coffee:57:31)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:156:19)
  at [object Object].jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app.asar/src/space-pen-extensions.js:64:23)
  at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:75:67)
  at emitTwo (events.js:87:13)
  at EventEmitter.emit (events.js:169:7)
  at EventEmitter.ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/ipc.js:21:31)
  at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom.asar/renderer/api/lib/remote.js:110:29)
  at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/context-menu-manager.js:170:31)
  at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:150:33)
  at HTMLDocument.handler (/Applications/Atom.app/Contents/Resources/app.asar/src/space-pen-extensions.js:112:34)
  at HTMLDocument.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/vendor/jquery.js:4681:9)
  at HTMLDocument.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/space-pen/vendor/jquery.js:4359:46)

Commands

     -7:22 core:copy (atom-text-editor.editor.is-focused)
     -6:39.1.0 golang:updatetools (atom-text-editor.editor.is-focused)
     -6:21.8.0 golang:gobuild (atom-text-editor.editor.is-focused)
     -6:09.0 golang:gofmt (atom-text-editor.editor.is-focused)
     -5:39.1.0 golang:getmissingtools (atom-text-editor.editor.is-focused)
     -5:31.3.0 golang:goinfo (atom-text-editor.editor.is-focused)
     -4:30 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:38 core:copy (atom-text-editor#go-oracle.oraclePath.editor.mini.is-focused)
 10x -0:19.6.0 core:backspace (atom-text-editor#go-oracle.oraclePath.editor.mini.is-focused)
     -0:16.7.0 core:save (div.settings-view.pane-item)

Config

{
  "core": {
    "themes": [
      "seti-ui",
      "atom-dark-syntax"
    ]
  },
  "go-oracle": {
    "goPath": "/Users/sky/project/golang",
    "oraclePath": "/Users/sky/project/golang/"
  }
}

Installed Packages

# User
autocomplete-python, v0.5.1
color-picker, v2.0.7
emmet, v2.3.12
go-oracle, v0.2.1
go-plus, v3.3.12
javascript-snippets, v1.0.0
seti-ui, v0.7.1

# Dev
No dev packages

How to get right-click context menu?

The one you show in the gif on the front page.

After installing I have this kind of interface:

screen shot 2016-03-22 at 2 10 47 pm

Which is less than ideal b/c it requires:

  1. Select func, choose Go oracle
  2. Select oracle drop-down at the bottom, choose callers

Two steps as opposed to one.

Uncaught TypeError: Cannot read property 'importpath' of undefined

[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

Workflow changes

Currently, every time an oracle command is launched it will look at the current cursor position. This means that if you've drilled down into the code using links a mode has provided, switching to a new mode will launch oracle from the current position.

This may be the workflow desired.

It might be worth investigating a workflow where go-oracle tracks where it was when it was opened and runs all oracle commands with the stored position. If this were the case, we'd then need a way to explicitly tell the oracle to run a command from the current position, e.g. after drilling down.

This may be an unexpected and undesirable workflow.

Package.activateConfig is deprecated.

Use a config schema instead. See the configuration section
of https://atom.io/docs/latest/hacking-atom-package-word-count and
https://atom.io/docs/api/latest/Config for more details

Package.activateConfig (C:\Users\DmG\AppData\Local\atom\app-0.201.0\resources\app.asar\src\package.js:263:11)
PackageDetailView.activate (C:\Users\DmG\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:163:26)
PackageDetailView.updateInstalledState (C:\Users\DmG\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:201:12)
<unknown> (C:\Users\DmG\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\settings-view\lib\package-detail-view.js:235:24)
<unknown> (C:\Users\DmG\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\emissary\lib\emitter.js:155:30)
Array.forEach (native)

guru?

Are there any plans to replace oracle support with the replacement tool guru? Thanks!

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.