rubyist / go-oracle Goto Github PK
View Code? Open in Web Editor NEWAtom package for interfacing with Go's oracle tool
License: MIT License
Atom package for interfacing with Go's oracle tool
License: MIT License
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.
[Enter steps to reproduce below:]
Atom Version: 0.192.0
System: Mac OS X 10.10.3
Thrown From: go-oracle package, v0.2.0
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)
{
"core": {
"themes": [
"one-dark-ui",
"monokai"
],
"disabledPackages": [
"tabs",
"tree-view"
]
}
}
# 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
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)
The context menu CSON format has changed. Please see
https://atom.io/docs/api/latest/ContextMenuManager
[Enter steps to reproduce below:]
go get golang.org/x/tools/cmd/oracle
Atom Version: 0.198.0
System: Mac OS X 10.10.4
Thrown From: go-oracle package, v0.2.0
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)
-0:01.2.0 go-oracle:oracle (atom-text-editor.editor.is-focused)
{
"core": {
"disabledPackages": [
"vim-mode"
]
}
}
# 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
[Enter steps to reproduce below:]
Atom Version: 1.0.7
System: Mac OS X 10.10.5
Thrown From: go-oracle package, v0.2.1
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)
-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)
{
"core": {
"disabledPackages": [
"symbols-view"
]
},
"go-oracle": {
"goPath": "/Users/sander/projects/go"
}
}
# 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
In keymaps/go-oracle.cson: Use the atom-workspace
tag instead of the workspace
class.
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:
styles/
directory instead of stylesheets/
in the <pack-name>
packageactivationCommands
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"] }
$
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.$$
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.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.atom.views.getView(atom.workspace)
, which returns an HTMLElement.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!
[Enter steps to reproduce below:]
Atom Version: 1.0.0
System: Mac OS X 10.10.3
Thrown From: go-oracle package, v0.2.1
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)
-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)
{
"core": {
"themes": [
"seti-ui",
"atom-dark-syntax"
]
},
"go-oracle": {
"goPath": "/Users/sky/project/golang",
"oraclePath": "/Users/sky/project/golang/"
}
}
# 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
[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)
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)
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
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.
Uncaught Error: spawn ENAMETOOLONG
Atom Version: 0.158.0
System: Mac OS X 10.10.1
Thrown From: go-oracle package, v0.2.0
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
I can't find any info on installing the oracle command. Can this be documented in the go-oracle README for now?
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).
Are there any plans to replace oracle support with the replacement tool guru? Thanks!
The GOPATH environment variable can be a :
separated list of paths. Properly handle when this is the case.
From @0xdabbad00 on December 28, 2014 17:14
Atom Version: 0.165.0
System: Microsoft Windows 8.1 Pro with Media Center
Thrown From: Atom Core
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)
-0:00.0 go-oracle:oracle (input.hidden-input)
{
"core": {
"audioBeep": false,
"disabledPackages": [
"atom-lint",
"jsformat",
"linter-jshint",
"linter-jsxhint",
"jshint",
"linter-pep8",
"symbols-view",
"autocomplete-plus"
]
},
"editor": {
"fontSize": 12,
"showInvisibles": true
}
}
# 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
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)
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
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.