Coder Social home page Coder Social logo

lloiser / go-debug Goto Github PK

View Code? Open in Web Editor NEW
388.0 388.0 21.0 1.24 MB

๐Ÿ› A go debugger for atom using delve.

Home Page: https://atom.io/packages/go-debug

License: MIT License

JavaScript 95.19% CSS 4.81%
atom debug debugger delve go golang

go-debug's People

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  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  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

go-debug's Issues

Cannot read property 'Component' of undefined

Cannot even initialize the package, found this in logs. I'm on 1.7.0-beta4 version of Atom. OSX.

Uncaught (in promise) TypeError: Cannot read property 'Component' of undefined
    at Object.<anonymous> (/Users/sadovnychyi/.atom/packages/go-debug/lib/variables.jsx:64:23)
    at Module._compile (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/sadovnychyi/.atom/packages/go-debug/lib/panel.jsx:25:21)
    at Module._compile (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Module.require (module.js:366:17)
    at require (/Applications/Atom Beta.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.start (/Users/sadovnychyi/.atom/packages/go-debug/lib/main.js:60:11)
    at /Users/sadovnychyi/.atom/packages/go-debug/lib/main.js:42:9
    at process._tickCallback (node.js:392:9)

Re-running npm install manually didn't help.

Docker support?

Hi guys,

I'm kind of new to use delve for debugging, so excuse em if I'm asking smth that doesn't make sense.
So I have a container that has a go application running... Is there a way to run the debugger in the container and see it in the editor?

Thank you so much for the help.

Need a method to delete breakpoints, if a file is renamed or deleted

To reproduce the issue:

  1. set a breakpoint in a go file
  2. don't clear the breakpoint
  3. delete or rename the file
  4. click the original breakpoint in the debug panel
  5. a new file will be created with the original name
  6. if the breakpoint isn't on line 1, then the only way to remove the breakpoint will be to add a line, which will reset the breakpoint line number to current line.
  7. if there were multiple breakpoints in the original deleted or renamed file, then attempting to remove them with the mouse results in issue #21

Behavior shouldn't be to create a new file, instead it should warn that the file doesn't exist and offer to clear the breakpoint(s) from the debug tab.

Preferably it should be possible for all breakpoints to be cleared from the debug panel using the mouse or shortcut, in addition to locating and clearing them from the gutter.

environment vars under Test

Thank you for the integration with Atom. Though I haven't needed a debugger for Go for years, today is the day I take on a huge unknown codebase and immediately need to debug/follow-through some failing tests.

How would one set environment variables to debug under Test? I need to set a number of CLI environment vars for the integration tests.

I see a textbox under the TEST and DEBUG tabs that says "arguments passed to delve after --". Looking at the delve CLI docs, I didn't see a way to specify environment variables though.

Passing command line arguments

I can't see a way to pass arguments to my program when debugging, i.e. using the -- args from the CLI. Is the functionality hidden somewhere?

Unable to Select Text in Debug Frame

Atom Version: 1.7.3
System: Windows 7 Pro 64-bit
From: go-debug package, v0.1.11

The variable list in the debug frame is nice but I want to be able to select and copy the data from within it. Although the cursor changes to a text-tool, I cannot select the text.

I did a little bit of reading and there were mentions here (tcarlsen/atom-message-panel#24) about setting the attribute "tabindex" to -1 helping enable text selection.

And this discussion (https://discuss.atom.io/t/cant-select-panel-text/15453) mentioned adding the "native-key-bindings" class to allow for copy and paste to work.

If I knew a bit more or had more time, I would try to do a pull request. Just logging the request for now.

Input in main window

Hi,

thanks for the great plugin... debugging contributes greatly to the value of atom as go ide... however: how am I supposed to debug something like this?

package main

import "fmt"

func main() {
    var a int
    fmt.Scanf("%v\n", &a)
    fmt.Printf("%v", a)
}

The Scanf blocks until it receives some input. How can I provide input?

delve exec support

hi,

it would be great to support the exec command from delve to debug a precompiled binary. i use gb to build my binaries so dlv debug does not work.

And it would be a great idea to have debug-configurations like visualstudio-code, so that one can specifiy not only the binary to start but also arguments and environment variables.

i integrated this in my vsc container and it would be great to have your plugin in my atocker container too.

Not able to set Breakpoints

I tried to set a breakpoint by clicking on the gutter(line numbers) but it did not worked. I disabled all plugins and tried again. Same behavior. I saw the function in the code but it is just not working.

Sorry that i dont have any further infos. If you need something specific just tell me.

Uncaught TypeError: validateEventDispatches is not a function

[Enter steps to reproduce below:]

  1. Open up Atom Beta on OSX ( 1.8.0-beta1 )
  2. watch app keep prompting about type error

Atom Version: 1.8.0-beta1
System: Mac OS X 10.11.4
Thrown From: go-debug package, v0.1.12

Stack Trace

Uncaught TypeError: validateEventDispatches is not a function

At /Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginUtils.js:99

TypeError: validateEventDispatches is not a function
    at Object.executeDispatchesInOrder (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginUtils.js:99:5)
    at executeDispatchesAndRelease (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:42:22)
    at executeDispatchesAndReleaseTopLevel (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:53:10)
    at Array.forEach (native)
    at forEachAccumulated (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/forEachAccumulated.js:24:9)
    at Object.EventPluginHub.processEventQueue (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:215:7)
    at runEventQueueInBatch (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventEmitterMixin.js:18:18)
    at Object.ReactEventEmitterMixin.handleTopLevel [as _handleTopLevel] (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventEmitterMixin.js:29:5)
    at handleTopLevelImpl (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:73:24)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/Transaction.js:136:20)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactDefaultBatchingStrategy.js:63:19)
    at Object.batchedUpdates (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactUpdates.js:97:20)
    at ReactEventListener.dispatchEvent (/Users/jdyer/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:150:20)

Commands

     -2:22.1.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -1:55.1.0 core:close (div.panels-item)
  2x -1:46.6.0 find-and-replace:select-next (atom-text-editor.editor.is-focused)
     -1:45 editor:duplicate-lines (atom-text-editor.editor.is-focused)
  2x -1:44 editor:delete-to-end-of-subword (atom-text-editor.editor.is-focused)
     -1:39.4.0 editor:duplicate-lines (atom-text-editor.editor.is-focused)
     -1:16.9.0 settings-view:open (atom-text-editor.editor.is-focused)
     -1:11.2.0 core:select-all (atom-text-editor.editor.mini.is-focused)
     -0:47.8.0 go-debug:stop (atom-text-editor.editor.is-focused)
     -0:04.8.0 go-debug:toggle-panel (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
atom-prism, v0.1.2
autocomplete-go, v1.1.0
builder-go, v1.0.0
dockerletion, v0.2.0
environment, v1.2.0
go-config, v1.1.4
go-debug, v0.1.12
go-get, v1.0.3
go-plus, v4.1.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
language-docker, v1.1.6
linter, v1.11.4
linter-docker, v0.1.2
linter-golinter, v1.2.0
navigator-godef, v1.0.3
pretty-json, v1.2.0
tester-go, v1.0.4

# Dev
No dev packages

Set breakpoints not aligned with current click point

go-debug 0.1.9
Atom 1.7.2
OS X El Capitan 10.11.4
go version go1.6 darwin/amd64
Delve Debugger
Version: 0.11.0-alpha
Build: f454207a340cc6b16b69f5924c647938b3c1a771

Setting a breakpoint in go package, doesn't align with the line that was originally clicked.

For example in the attached link to a png file, I clicked the breakpoint at line 310, but the breakpoint was set for 317. To clear the breakpoint at line 317, I have to click on line 310 again.

Screenshot

I cannot reproduce this behavior on smaller, less complex files that don't have types, structs and multiple comments etc.

Debugger does not stop when Atom quits

This drove me mad a few days ago. When I have an app running and attached to the debugger, the debugger will not quit when Atom quits. The application being debugged does quit appropriately.

$ ps ax | grep dlv
15577   ??  S      0:00.24 /usr/local/bin/dlv debug --headless=true --listen=localhost:2345 --log

When Atom is restarted and I try to debug an application, this message prints:

couldn't start listener: listen tcp 127.0.0.1:2345: bind: address already in use
delve closed with code 1

The debugger should quit when Atom quits. Since it does not, the process keeps running and no further applications can be debugged until the process is killed via the command line.

Allow Debug Window To Be Closed / Hidden

The debug window occupies a not-insignificant amount of screen space, and it does so even when you're not working with go code. It would be nice to:

  • Allow the window to be closed / hidden
  • Prevent initialization of the window until debugging is started for the first time (e.g. perhaps by invoking a command / menu item)
  • Prevent initialization of the window until a .go file is opened (look at grammar-used activation hooks atom/atom#7638 / atom/atom#9527)

Uncaught TypeError: Cannot read property 'webkitMatchesSelector' of undefined

[Enter steps to reproduce below:]

  1. Close all files
  2. Start a debugging session

A configuration file specifying package to debug would be more intuitive.

Atom Version: 1.7.2
System: Mac OS X 10.11.4
Thrown From: go-debug package, v0.1.7

Stack Trace

Uncaught TypeError: Cannot read property 'webkitMatchesSelector' of undefined

At /Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactErrorUtils.js:53

TypeError: Cannot read property 'webkitMatchesSelector' of undefined
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:244:26)
    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:160:19)
    at Panel.onCommandClick (/Users/gmedina/.atom/packages/go-debug/lib/panel.jsx:285:18)
    at Object.invokeGuardedCallback (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactErrorUtils.js:27:12)
    at executeDispatch (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginUtils.js:79:21)
    at Object.executeDispatchesInOrder (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginUtils.js:102:5)
    at executeDispatchesAndRelease (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:43:22)
    at executeDispatchesAndReleaseTopLevel (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:54:10)
    at Array.forEach (native)
    at forEachAccumulated (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/forEachAccumulated.js:23:9)
    at Object.EventPluginHub.processEventQueue (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:259:7)
    at runEventQueueInBatch (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventEmitterMixin.js:18:18)
    at Object.ReactEventEmitterMixin.handleTopLevel [as _handleTopLevel] (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventEmitterMixin.js:34:5)
    at handleTopLevelWithoutPath (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:93:24)
    at handleTopLevelImpl (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:73:3)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/Transaction.js:136:20)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactDefaultBatchingStrategy.js:62:19)
    at Object.batchedUpdates (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactUpdates.js:94:20)
    at ReactEventListener.dispatchEvent (/Users/gmedina/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:204:20)

Commands

     -7:39 go-debug:togglePanel (atom-text-editor.editor.is-focused)
     -7:36.7.0 go-debug:stop (atom-text-editor.editor)
     -7:35.8.0 go-debug:runPackage (atom-text-editor.editor)
     -7:30.9.0 go-debug:stop (atom-text-editor.editor)
     -7:29.8.0 go-debug:runPackage (atom-text-editor.editor)
     -7:23.7.0 go-debug:continue (atom-text-editor.editor)
  4x -7:19.2.0 go-debug:next (atom-text-editor.editor)
     -7:04.2.0 go-debug:stop (atom-text-editor.editor)
     -7:02.4.0 core:save (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)
     -7:00.7.0 go-debug:runPackage (atom-text-editor.editor)
     -6:57.2.0 go-debug:continue (atom-text-editor.editor)
 38x -6:51.8.0 go-debug:next (atom-text-editor.editor)
  3x -3:22.4.0 go-debug:continue (atom-text-editor.editor)
     -0:55.4.0 go-debug:stop (atom-text-editor.editor)
  6x -0:19.9.0 core:close (atom-text-editor.editor.is-focused)
  2x -7:42.8.0 go-debug:runPackage (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
autocomplete-go, v1.0.6
builder-go, v1.0.0
environment, v1.2.0
go-config, v1.1.4
go-debug, v0.1.7
go-get, v1.0.3
go-plus, v4.1.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
linter, v1.11.4
navigator-godef, v1.0.3
pretty-json, v1.0.3
tester-go, v1.0.4

# Dev
No dev packages

Uncaught TypeError: Cannot use 'in' operator to search for 'dataset' in null

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.4.0
System: Linux Mint
Thrown From: go-debug package, v0.0.2

Stack Trace

Uncaught TypeError: Cannot use 'in' operator to search for 'dataset' in null

At /home/lemonash/.atom/packages/go-debug/lib/utils.js:30

TypeError: Cannot use 'in' operator to search for 'dataset' in null
    at getDeep (/home/lemonash/.atom/packages/go-debug/lib/utils.js:30:14)
    at elementPropInHierarcy (/home/lemonash/.atom/packages/go-debug/lib/utils.js:41:9)
    at Panel._onStacktraceClick (/home/lemonash/.atom/packages/go-debug/lib/panel.js:139:17)

Commands

     -1:26.3.0 go-debug:continue (div.go-debug-panel)
  4x -1:24.5.0 go-debug:step (div.go-debug-panel)
     -1:22.2.0 go-debug:next (div.go-debug-panel)
     -1:15.7.0 go-debug:restart (div.go-debug-panel)
     -1:13.8.0 go-debug:runPackageTests (div.go-debug-panel)
     -1:12.2.0 go-debug:runPackage (div.go-debug-panel)
     -1:10.2.0 go-debug:runPackageTests (div.go-debug-panel)
     -1:09.4.0 go-debug:runPackage (div.go-debug-panel)
     -1:04.6.0 core:save (button.btn.btn-default)
  4x -1:01.4.0 core:cancel (button.btn.btn-default)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "themes": [
      "cold-ui",
      "monokai-seti"
    ]
  }
}

Installed Packages

# User
cold-ui, v1.4.0
dash, v1.6.0
file-icons, v1.6.14
go-debug, v0.0.2
go-plus, v3.5.2
highlight-line, v0.11.0
monokai-seti, v0.7.0

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'nodeName' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.1
System: Mac OS X 10.10.5
Thrown From: go-debug package, v0.1.7

Stack Trace

Uncaught TypeError: Cannot read property 'nodeName' of undefined

At /Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactErrorUtils.js:53

TypeError: Cannot read property 'nodeName' of undefined
    at CommandLogger.module.exports.CommandLogger.logCommand (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/notifications/lib/command-logger.js:81:38)
    at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/notifications/lib/command-logger.js:33:24
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:20)
    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:160:19)
    at Panel.onCommandClick (/Users/olebedev/.atom/packages/go-debug/lib/panel.jsx:285:18)
    at Object.invokeGuardedCallback (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactErrorUtils.js:27:12)
    at executeDispatch (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginUtils.js:79:21)
    at Object.executeDispatchesInOrder (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginUtils.js:102:5)
    at executeDispatchesAndRelease (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:43:22)
    at executeDispatchesAndReleaseTopLevel (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:54:10)
    at Array.forEach (native)
    at forEachAccumulated (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/forEachAccumulated.js:23:9)
    at Object.EventPluginHub.processEventQueue (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:259:7)
    at runEventQueueInBatch (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventEmitterMixin.js:18:18)
    at Object.ReactEventEmitterMixin.handleTopLevel [as _handleTopLevel] (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventEmitterMixin.js:34:5)
    at handleTopLevelWithoutPath (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:93:24)
    at handleTopLevelImpl (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:73:3)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/Transaction.js:136:20)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactDefaultBatchingStrategy.js:62:19)
    at Object.batchedUpdates (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactUpdates.js:94:20)
    at ReactEventListener.dispatchEvent (/Users/olebedev/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:204:20)

Commands

     -4:08.7.0 terminal-panel:toggle (atom-text-editor.editor.is-focused.vim-mode.normal-mode)
  3x -4:06.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -3:51.4.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -3:38.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  3x -2:47.2.0 terminal-panel:toggle (div.panel.cli-status.panel-bottom)
     -2:17.6.0 core:copy (div.panel.cli-status.panel-bottom)
     -1:53.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:43 core:paste (atom-text-editor.editor.mini.is-focused)
     -0:42.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "atom-terminal-panel"
    ],
    "projectHome": "$GOPATH/src",
    "themes": [
      "one-dark-ui",
      "gruvbox"
    ]
  }
}

Installed Packages

# User
autocomplete-go, v1.0.6
builder-go, v1.0.0
go-config, v1.1.4
go-debug, v0.1.7
go-get, v1.0.3
go-plus, v4.1.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
gruvbox, v1.0.5
linter, v1.11.4
navigator-godef, v1.0.2
terminal-panel, v1.14.1
tester-go, v1.0.4
vim-mode, v0.65.0

# Dev
No dev packages

Failed to call CreateBreakpoint when path contains a symlink

go-debug fails to set breakpoints when run if the path for GOPATH contains a symlink, for example:

/Users/richard/dev -> /Users/richard/Documents/development

project loaded in atom from this path /Users/richard/dev but as you can see, the paths shown below are for the full path.

In this situation the following errors show up in go-debug consul:

Starting delve with "/Users/richard/Documents/development/go/src/github.com/richardbowden/passwordHash/example/main.go" with "debug" Delve output: 2016/07/26 14:04:28 server.go:71: Using API v1 2016/07/26 14:04:28 debugger.go:61: launching process with args: [./debug] Started delve with "/Users/richard/Documents/development/go/src/github.com/richardbowden/passwordHash/example/main.go" with "debug" Adding breakpoint: /Users/richard/Documents/development/go/src/github.com/richardbowden/passwordHash/example/main.go:24 API server listening at: 127.0.0.1:2345 Failed to call CreateBreakpoint error: unknown file: /Users/richard/Documents/development/go/src/github.com/richardbowden/passwordHash/example/main.go Adding breakpoint failed: /Users/richard/Documents/development/go/src/github.com/richardbowden/passwordHash/example/main.go:24 error: unknown file: /Users/richard/Documents/development/go/src/github.com/richardbowden/passwordHash/example/main.go

When using the absolute (no symlinks) path for GOPATH go-debug works perfectly.

for clarity, this path does work.
~/Documents/development/go

The pane toggle command throws Uncaught TypeError: Cannot read property 'dispatch' of undefined

  1. When pressing cmd+k, cmd+g

Atom Version: 1.7.2
System: Mac OS X 10.11.3
Thrown From: go-debug package, v0.1.8

Stack Trace

Uncaught TypeError: Cannot read property 'dispatch' of undefined

At /Users/rokche/.atom/packages/go-debug/lib/commands.js:63

TypeError: Cannot read property 'dispatch' of undefined
    at atom-workspace.action (/Users/rokche/.atom/packages/go-debug/lib/commands.js:63:28)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:09.2.0 find-and-replace:find-previous (atom-text-editor.editor.mini.is-focused)
     -0:06.1.0 core:cancel (div.panels)
     -0:01.0 go-debug:toggle-panel (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "angularjs",
      "angularjs-helper",
      "angularjs-snippets"
    ],
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ],
    "themes": [
      "atom-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
autocomplete-go, v1.0.6
autocomplete-paths, v1.0.2
bootstrap-3-snippetset, v0.0.6
bootstrap3-snippets, v0.1.2
builder-go, v1.0.0
emmet, v2.4.3
go-config, v1.1.4
go-debug, v0.1.8
go-get, v1.0.3
go-plus, v4.1.0
go-quick-import, v0.2.0
go-signature-statusbar, v1.0.2
godoc, v0.2.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
gotests, v0.2.5
linter, v1.11.4
linter-golint, v0.3.0
linter-golinter, v1.2.0
linter-gotype, v0.1.0
linter-govet, v0.1.5
minimap, v4.22.1
monokai, v0.18.0
navigator-godef, v1.0.3
remote-sync, v4.0.1
robin-language-php, v0.9.0
tester-go, v1.0.4

# Dev
No dev packages

Delve Downloader doesn't support GOPATH with multiple parts

Looks like the dlv download procedure doesn't handle GOPATHs with multiple parts.

[Enter steps to reproduce below:]

  1. Click "Yes" on dialog to download dlv binary for me.

Atom Version: 1.8.0
System: Mac OS X 10.11.5
Thrown From: go-debug package, v0.1.13

Stack Trace

Uncaught Error: ENOENT: no such file or directory, chmod '/Users/{username}/.gvm/pkgsets/go1.6.2/global:/Users/{username}/code/go/bin/dlv'

At fs.js:1055

Error: ENOENT: no such file or directory, chmod '/Users/{username}/.gvm/pkgsets/go1.6.2/global:/Users/{username}/code/go/bin/dlv'
    at Error (native)
    at Object.fs.chmodSync (fs.js:1055:18)
    at Object.module.exports.writeFileTo (/Users/{username}/.atom/packages/go-debug/node_modules/adm-zip/util/utils.js:108:20)
    at Object.extractEntryTo (/Users/{username}/.atom/packages/go-debug/node_modules/adm-zip/adm-zip.js:354:19)
    at extract (/Users/{username}/.atom/packages/go-debug/lib/delve.js:374:7)
    at Request._callback (/Users/{username}/.atom/packages/go-debug/lib/delve.js:364:4)
    at Request.self.callback (/Users/{username}/.atom/packages/go-debug/node_modules/request/request.js:200:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/Users/{username}/.atom/packages/go-debug/node_modules/request/request.js:1067:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/Users/{username}/.atom/packages/go-debug/node_modules/request/request.js:988:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)
    at doNTCallback2 (node.js:465:9)
    at process._tickCallback (node.js:379:17)

Commands

Config

{
  "core": {
    "disabledPackages": [
      "gocode",
      "go-oracle",
      "go-oracle",
      "minimap",
      ".bin"
    ],
    "themes": [
      "nucleus-dark-ui",
      "one-dark-syntax"
    ]
  }
}

Installed Packages

# User
activate-power-mode, v0.5.2
angularjs, v0.3.4
autocomplete-go, v1.1.0
builder-go, v1.0.0
circle-ci, v0.10.1
environment, v1.2.0
file-icons, v1.7.15
fonts, v1.5.0
go-config, v1.1.4
go-debug, v0.1.13
go-find-references, v1.2.3
go-get, v1.0.3
go-plus, v4.1.0
go-rename, v0.3.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
language-docker, v1.1.6
language-fish-shell, v1.0.4
language-go, v0.42.0
language-proto, v0.7.0
language-protobuf, v0.5.0
language-ts, v1.0.2
linter, v1.11.11
merge-conflicts, v1.4.4
navigator-godef, v1.0.3
nucleus-dark-ui, v0.8.5
project-manager, v2.9.7
tabs-to-spaces, v1.0.2
terminal-plus, v0.14.5
tester-go, v1.0.4

# Dev
No dev packages

Test & Run pane disappear

Hi,

I have a new problem on MacOSX with the latest version ::
When I open atom and a go file, the test&run Pane is there, but whatever I do on this Panel it disappears.
The simplest action to make this happen is to click on "Toggle output Panel" : the output displays, but the test&Run panel disappears.

My Delve installation is working (version 0.11.0-alpha, build cfe0e52d040955efc34e7b34ef41313f03fe4864), and the delve path in go-debug is correct.

It used to work before, but I'm not sure of when it has been broken.

Launching atom --dev and looking at the console does not show anything.

Thanks for your help.
Jerome

does not work on windows

My environment:

  1. windows 10
  2. atom 1.6.2
  3. installed delve and add delve in the path
  4. godebug 0.1.5

It shows go-debug has been installed in setting page but go-debug has not displayed in Pakcages menu.

And when I opened a main.go file, and press F5, there is no any debug panels.

Simply not working on my OSX

Hi,
probably great job, but I cannot figure how to make it work.

When I have a go file opened, I see the Test, Debug footer.
But when clicking on Test or Debug nothing happens.

Delve is correctly installed and working with other IDE such as Visual Studio Code. Same behavior on delve 0.10.0-alpha and 1.11.0-alpha

Can you help me ?
What I'm doing wrong ?
Jerome

debug process not terminated/killed when hitting stop button + crash

Hi there,

i got the following issue:
When debugging a server application that runs in an infinite for loop or within a waitgroup. Hitting the stop button does not kill the ./debug process which keeps the application running. This occured in a non deterministic way, sometimes it happened, sometimes not. This wasn't much of a problem since i was able to kill the debug process manually. It somehow got better during the previous update of go-debug.

But it got worse after installing the recent update, when i hit the stop button, sometimes an additional debug process ist launched, and when i kill them manually, atom stops responding and needs to be restartet, when i hit the "Debug"- Button again.

I'm using:
Xubuntu 15.10
atom 1.7.2
go-debug 0.1.11
delve 0.11.0-alpha

P.S: Thank you very much for the work on go-debug besides go-plus it has become one of the packages i don't want to miss when working on go code with atom.

Go Debug not working in Atom

Hi i have installed this plugin and the delve package at the same time for Atom however after pressing keys f5 or anything that was included in guides and usage. Nothing happens, no toggle panel or debugger output. Is there something that I should do first before trying it to Atom IDE? anyway I am using Ubuntu. Thanks.

Install delve Binaries For The User

Because delve is not go gettable on all platforms, on some platforms (e.g. OS X, Windows) a binary could be downloaded and installed to ease the user's first experience with this package.

Conceptually, I think the code required to satisfy this issue would:

  1. Check a location (the Jetbrains repo or the canonical repo) for versions
  2. Use semver to determine the latest version
  3. Download the binary
  4. Place the binary in $GOPATH/bin (as determined using go-config)
  5. Detect the location of the binary
  6. Use the binary

There's an alternate flow for platforms (e.g. Linux) for which delve is go gettable: use go-get to prompt the user to go get -u https://github.com/derekparker/delve.

joefitzgerald/go-plus#410 is blocked by this.

Uncaught TypeError: Cannot read property 'dispatch' of null

[Enter steps to reproduce below:]

  1. Disable the go-debug package

Atom Version: 1.9.9
System: Mac OS X 10.11.6
Thrown From: go-debug package, v0.1.19

Stack Trace

Uncaught TypeError: Cannot read property 'dispatch' of null

At /Users/kevin/.atom/packages/go-debug/lib/delve.js:25

TypeError: Cannot read property 'dispatch' of null
    at addOutputMessage (/Users/kevin/.atom/packages/go-debug/lib/delve.js:25:3)
    at ChildProcess.<anonymous> (/Users/kevin/.atom/packages/go-debug/lib/delve.js:92:5)
    at emitTwo (events.js:100:13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:90:13)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:477:12)

Commands

     -1:54.2.0 vim-mode:insert-below-with-newline (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -1:49.7.0 vim-mode:activate-normal-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -1:49.3.0 ex-mode:open (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -1:49.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
 15x -1:49 blur (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "gometalinter-linter",
      "go-debug"
    ],
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "go-debug": {
    "panelInitialVisible": false
  }
}

Installed Packages

# User
atom-beautify, v0.29.10 (inactive)
autocomplete-go, v1.1.1 (active)
builder-go, v1.0.1 (active)
ex-mode, v0.13.0 (active)
file-icons, v1.7.18 (active)
git-plus, v5.16.2 (inactive)
go-config, v1.2.3 (active)
go-debug, v0.1.19 (inactive)
go-get, v1.0.4 (active)
go-plus, v4.2.0 (active)
godoc, v0.3.0 (active)
gofmt, v1.1.7 (active)
gometalinter-linter, v1.1.1 (inactive)
gorename, v1.0.3 (active)
highlight-line, v0.11.1 (active)
jshint, v1.8.6 (active)
language-docker, v1.1.7 (active)
last-cursor-position, v0.9.0 (active)
linter, v1.11.16 (active)
merge-conflicts, v1.4.4 (active)
minimap, v4.24.7 (active)
navigator-godef, v1.0.4 (active)
pigments, v0.31.2 (active)
tester-go, v1.0.5 (active)
vim-mode, v0.65.1 (active)
vim-mode-visual-block, v0.2.15 (active)
vim-surround, v0.8.1 (active)
atom-dark-syntax, v0.27.0 (active)
atom-dark-ui, v0.51.0 (active)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (inactive)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.1 (active)
metrics, v0.53.1 (active)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.1 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'null' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.8.0-beta2
System: Mac OS X 10.11.4
Thrown From: go-debug package, v0.1.11

Stack Trace

Uncaught TypeError: Cannot read property 'null' of undefined

At /Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactMount.js:649

TypeError: Cannot read property 'null' of undefined
    at Object.ReactMount.findReactContainerForID (/Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactMount.js:649:50)
    at findParent (/Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:41:30)
    at handleTopLevelWithoutPath (/Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:87:16)
    at handleTopLevelImpl (/Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:73:3)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/Transaction.js:136:20)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactDefaultBatchingStrategy.js:62:19)
    at Object.batchedUpdates (/Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactUpdates.js:94:20)
    at ReactEventListener.dispatchEvent (/Users/tmaintz/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:204:20)

Commands

Config

{
  "core": {
    "disabledPackages": [
      "atom-wallaby"
    ],
    "packagesWithKeymapsDisabled": [
      "lcov-info"
    ],
    "themes": [
      "brogrammer-ui",
      "bronokai"
    ]
  },
  "go-debug": {
    "limitCommandsToGo": true,
    "panelInitialVisible": false
  }
}

Installed Packages

# User
atom-typescript, v8.8.1
autocomplete-go, v1.0.6
brogrammer-ui, v1.0.0
bronokai, v1.0.0
builder-go, v1.0.0
docblockr, v0.7.3
editorconfig, v1.4.0
environment, v1.2.0
file-icons, v1.7.6
go-config, v1.1.4
go-debug, v0.1.11
go-get, v1.0.3
go-plus, v4.1.0
go-quick-import, v0.2.0
go-signature-statusbar, v1.0.2
godoc, v0.2.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
language-proto, v0.7.0
language-terraform, v0.7.4
linter, v1.11.4
linter-eslint, v7.2.1
navigator-godef, v1.0.3
pretty-json, v1.0.3
project-manager, v2.9.7
project-view, v0.5.0
ssh-config, v0.10.1
tester-go, v1.0.4

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

[Enter steps to reproduce below:]

  1. Open a file
  2. Resize the Go-Debug panel
  3. Uncaught TypeError pops up

Atom Version: 1.7.2
System: Mac OS X 10.11.4
Thrown From: go-debug package, v0.1.11

Stack Trace

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null

At /Users/Neil/.atom/packages/go-debug/lib/panel.jsx:261

TypeError: Cannot read property 'getBoundingClientRect' of null
    at Panel.onResize (/Users/Neil/.atom/packages/go-debug/lib/panel.jsx:261:33)

Commands

     -0:03.2.0 minimap:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "markdown-preview",
      "travis-ci-status"
    ],
    "packagesWithKeymapsDisabled": [
      "markdown-preview"
    ],
    "themes": [
      "one-dark-ui",
      "monokai-seti"
    ]
  },
  "go-debug": {
    "delvePath": "/usr/local/go/bin/dlv",
    "limitCommandsToGo": true
  }
}

Installed Packages

# User
autocomplete-go, v1.0.6
builder-go, v1.0.0
change-case, v0.6.0
color-picker, v2.1.1
compare-files, v0.6.2
emmet, v2.4.3
environment, v1.2.0
file-icons, v1.7.7
fonts, v1.2.0
go-config, v1.1.4
go-debug, v0.1.11
go-get, v1.0.3
go-plus, v4.1.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
highlight-line, v0.11.1
javascript-snippets, v1.2.1
last-cursor-position, v0.9.0
linter, v1.11.4
linter-jsonlint, v1.2.5
markdown-preview-plus, v2.4.0
merge-conflicts, v1.4.2
minimap, v4.22.1
monokai-seti, v0.7.0
navigator-godef, v1.0.3
pigments, v0.26.0
tester-go, v1.0.4
vim-mode, v0.65.0
vim-surround, v0.8.1

# Dev
No dev packages

Debugging is not working as expected

Hello!

First of all, THANKS for your project! :) It's awesome!

But I have some issue with it.

I have been playing with Delve for some time at my Mac El Capitan from CLI and it's working great!

I'm using it this way:

  • Run debugger with command: dlv debug ../mytool -- -config /tmp/tmpoG4xmF_internal
  • Setup breakpoint: b file.go:138
  • continue
  • Hit breakpoint with custom tool

And at this step I could look around, check traces, values of variables and everything what I want.

But when I'm trying to reproduce same approach it with Atom Go I'm going into troubles :(

I could run debugging session, I could set break points.

But when I hit breakpointed code I got:

Delve output: 2016/08/22 18:29:57 debugger.go:271: switching to goroutine 74

But I see no changes in variables / goroutines field:
atom go debug

Also I see no changes about "current instruction processed by debugger" inside editor.

What I'm going wrong?

delve connect support

Hi,

is it possible to have dlv connect possibility from go-debug ? so that we can debug go runtime remotely and change variables value at runtime with go-debug in atom.

can't fork process

I'm getting this error when trying to set breakpoint and debug:

debugger.go:61: launching process with args: [./debug.test]
could not launch process: stat ../.../debug.test: no such file or directory
delve closed with code 1

I'm on OS X 10.11.4

Toggle pane visibility

This is incredible work, thank you for making it! could there be a hot-key for hiding/showing the pane?

f5 shortcut does absolutely nothing

Just installed go-debug for the first time, after downloading the newest Atom on Mac OS X 10.11.3.

I have keyboard shortcuts enabled, but f5 does absolutely nothing. Nothing is output to the console.

The only way I can run/debug is to click the "Debug" area of the sidebar, wait for a bunch of errors to be printed, and then use the controls up there. Debug gets unselected after each run, so the console just gets a lot of these. At no point in time does f5 do anything, regardless of whats selected.

Not sure if the error from Delve are related? Putting them here in case they are.

Starting delve with "/Users/michele/Projects/go/web-playground/main.go" with "debug"
Delve output: 2016/07/01 17:00:55 debugger.go:55: launching process with args: [./debug]
Started delve with "/Users/michele/Projects/go/web-playground/main.go" with "debug"
Delve output: 2016/07/01 17:00:55 server.go:301: method Run has wrong number of ins: 1
2016/07/01 17:00:55 server.go:301: method Stop has wrong number of ins: 2

Uncaught Error: spawn EACCES

Atom Version: 1.9.9
System: Mac OS X 10.11.6
Thrown From: go-debug package, v0.1.20

Stack Trace

Uncaught Error: spawn EACCES

At internal/child_process.js:302

Error: spawn EACCES
    at exports._errnoException (util.js:890:11)
    at ChildProcess.spawn (internal/child_process.js:302:11)
    at exports.spawn (child_process.js:379:9)
    at run (/Users/nikbys/.atom/packages/go-debug/lib/delve.js:58:16)
    at Object.runPackage (/Users/nikbys/.atom/packages/go-debug/lib/delve.js:21:10)
    at atom-text-editor.action (/Users/nikbys/.atom/packages/go-debug/lib/commands.js:27:25)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

     -0:00.1.0 go-debug:run-package (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".DS_Store",
      "._*",
      "Thumbs.db",
      ".yaml"
    ],
    "packagesWithKeymapsDisabled": []
  }
}

Installed Packages

# User
atom-beautify, v0.29.10 (inactive)
autocomplete-go, v1.1.1 (active)
builder-go, v1.0.1 (active)
environment, v1.2.0 (active)
go-config, v1.2.3 (active)
go-debug, v0.1.20 (active)
go-get, v1.0.4 (active)
go-plus, v4.2.0 (active)
godoc, v0.3.1 (active)
gofmt, v1.1.8 (active)
gometalinter-linter, v1.1.1 (active)
gorename, v1.0.3 (active)
language-docker, v1.1.7 (active)
linter, v1.11.16 (active)
navigator-godef, v1.0.4 (active)
seti-syntax, v1.0.1 (inactive)
seti-ui, v1.3.2 (inactive)
terminal-plus, v0.14.5 (active)
tester-go, v1.0.6 (active)
xcode-syntax, v0.1.0 (inactive)
zentabs, v0.8.7 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (active)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (active)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.1 (active)
metrics, v0.53.1 (active)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.1 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Uncaught TypeError: validateEventDispatches is not a function

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.8.0
System: Mac OS X 10.11.5
Thrown From: go-debug package, v0.1.12

Stack Trace

Uncaught TypeError: validateEventDispatches is not a function

At /Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginUtils.js:99

TypeError: validateEventDispatches is not a function
    at Object.executeDispatchesInOrder (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginUtils.js:99:5)
    at executeDispatchesAndRelease (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:42:22)
    at executeDispatchesAndReleaseTopLevel (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:53:10)
    at Array.forEach (native)
    at forEachAccumulated (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/forEachAccumulated.js:24:9)
    at Object.EventPluginHub.processEventQueue (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/EventPluginHub.js:215:7)
    at runEventQueueInBatch (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventEmitterMixin.js:18:18)
    at Object.ReactEventEmitterMixin.handleTopLevel [as _handleTopLevel] (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventEmitterMixin.js:29:5)
    at handleTopLevelImpl (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:73:24)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/Transaction.js:136:20)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactDefaultBatchingStrategy.js:63:19)
    at Object.batchedUpdates (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactUpdates.js:97:20)
    at ReactEventListener.dispatchEvent (/Users/r.saissy/.atom/packages/go-debug/node_modules/react-for-atom/node_modules/react/lib/ReactEventListener.js:150:20)

Commands

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "linter-rubocop",
      "linter-foodcritic"
    ],
    "projectHome": "/Users/remy/Projects/criteo"
  },
  "go-debug": {
    "panelInitialVisible": false
  }
}

Installed Packages

# User
autocomplete-go, v1.1.0
builder-go, v1.0.0
formatter-gofmt, v1.0.1
go-config, v1.1.4
go-debug, v0.1.12
go-get, v1.0.3
go-plus, v4.1.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
language-chef, v0.9.0
latexer, v0.3.0
latextools, v0.8.1
linter, v1.11.4
linter-chktex, v1.3.0
linter-golinter, v1.2.0
navigator-godef, v1.0.3
tester-go, v1.0.4

# Dev
No dev packages

go-debug window showing up, breakpoints work, but no debugging

I've installed Delve and it works in the console. I then installed your package. The side-bar shows up, I can even set breakpoints. But when I hit f5, nothing happens. (it looks like a debug file might be added to my working tree for a nanosecond).

Nothing is showing up in the console in the dev tools. My GOPATH is properly set

process.env.GOPATH
"/Users/qhenkart/workspace/golang"

Any ideas what might be going on?

Conditional breakpoints support

It seems that delve support conditional breakpoints: by hit count & by expression. It would be nice to have support for that feature in UI

Release Practices

I encourage you to include the CHANGELOG and optimally GitHub releases, Release notes in the release process.

I came by looking for what is new in the latest and; while it is easy enough for someone familiar with GitHub and git, understanding what's new may be beyond the skill of some plugin users.

Uncaught Error: Cannot decorate a destroyed marker

[Enter steps to reproduce below:]

  1. Install.
  2. Make any action.

Atom Version: 1.9.9
System: Unknown Windows Version
Thrown From: go-debug package, v0.1.19

Stack Trace

Uncaught Error: Cannot decorate a destroyed marker

At C:\Users\lord\AppData\Local\atom\app-1.9.9\resources\app.asar\src\decoration-manager.js:192

Error: Cannot decorate a destroyed marker
    at DecorationManager.module.exports.DecorationManager.decorateMarker (C:\Users\lord\AppData\Local\atom\app-1.9.9\resources\app.asar\src\decoration-manager.js:192:15)
    at TextEditor.module.exports.TextEditor.decorateMarker (C:\Users\lord\AppData\Local\atom\app-1.9.9\resources\app.asar\src\text-editor.js:1540:37)
    at GutterContainer.module.exports.GutterContainer.addGutterDecoration (C:\Users\lord\AppData\Local\atom\app-1.9.9\resources\app.asar\src\gutter-container.js:111:30)
    at Gutter.module.exports.Gutter.decorateMarker (C:\Users\lord\AppData\Local\atom\app-1.9.9\resources\app.asar\src\gutter.js:70:35)
    at updateMarker (C:/Users/lord/.atom/packages/go-debug/lib/editors.js:131:33)
    at C:/Users/lord/.atom/packages/go-debug/lib/editors.js:80:23
    at Array.forEach (native)
    at updateMarkers (C:/Users/lord/.atom/packages/go-debug/lib/editors.js:80:7)
    at Array.<anonymous> (C:/Users/lord/.atom/packages/go-debug/lib/editors.js:161:3)
    at C:/Users/lord/.atom/packages/go-debug/lib/utils.js:44:12

Commands

 13x -1:19.3.0 tree-view:reveal-active-file (atom-workspace.workspace.scrollbars-visible-always.seti-ui-no-icons.theme-monokai-syntax-for-one-dark.theme-one-dark-ui)
  2x -0:36.1.0 go-debug:toggle-breakpoint (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "allowPendingPaneItems": false,
    "audioBeep": false,
    "automaticallyUpdate": false,
    "closeEmptyWindows": false,
    "disabledPackages": [
      "metrics",
      "spell-check"
    ],
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [],
    "themes": [
      "one-dark-ui",
      "monokai-syntax-for-one-dark"
    ]
  },
  "go-debug": {
    "limitCommandsToGo": true
  }
}

Installed Packages

# User
autocomplete-go, v1.1.1 (active)
builder-go, v1.0.1 (active)
environment, v1.2.0 (active)
file-icons, v1.7.18 (active)
git-control, v0.8.2 (inactive)
git-diff-popup, v0.1.8 (inactive)
git-time-machine, v1.5.3 (inactive)
go-config, v1.2.3 (active)
go-debug, v0.1.19 (active)
go-get, v1.0.4 (active)
go-plus, v4.2.0 (active)
godoc, v0.3.0 (active)
gofmt, v1.1.7 (active)
gometalinter-linter, v1.1.1 (active)
gorename, v1.0.3 (active)
highlight-line, v0.11.1 (active)
indent-guide-ext, v0.2.1 (active)
indent-guide-improved, v1.4.9 (active)
linter, v1.11.16 (active)
linter-jshint, v2.1.0 (active)
markdown-format, v2.5.1 (active)
minimap, v4.24.7 (active)
minimap-codeglance, v0.4.5 (active)
minimap-cursorline, v0.2.0 (active)
minimap-linter, v1.1.1 (active)
monokai-syntax-for-one-dark, v0.2.2 (active)
navigator-godef, v1.0.4 (active)
project-ring, v0.39.0 (active)
synced-sidebar, v0.4.3 (active)
tabs-to-spaces, v1.0.2 (active)
tester-go, v1.0.5 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.51.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.43.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.3.2 (active)
one-light-ui, v1.3.2 (inactive)
one-dark-syntax, v1.2.0 (inactive)
one-light-syntax, v1.2.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.2 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.1 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.0 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.0 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
find-and-replace, v0.198.0 (inactive)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.1 (active)
metrics, v0.53.1 (inactive)
notifications, v0.64.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.238.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (inactive)
status-bar, v1.4.1 (active)
styleguide, v0.47.1 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.98.1 (active)
timecop, v0.33.1 (active)
tree-view, v0.208.0 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.32.2 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.0 (active)
language-csharp, v0.12.1 (active)
language-css, v0.36.2 (active)
language-gfm, v0.86.0 (active)
language-git, v0.13.0 (active)
language-go, v0.42.0 (active)
language-html, v0.44.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.22.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.0 (active)
language-less, v0.29.3 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.0 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.68.5 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.52.0 (active)
language-shellscript, v0.22.3 (active)
language-source, v0.9.0 (active)
language-sql, v0.21.1 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.8 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

Uncaught Error: The given gutter cannot be removed because it is not within this GutterContainer.

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.7.2
System: Mac OS X 10.11.4
Thrown From: go-debug package, v0.1.8

Stack Trace

Uncaught Error: The given gutter cannot be removed because it is not within this GutterContainer.

At /Applications/Atom.app/Contents/Resources/app.asar/src/gutter-container.js:100

Error: The given gutter cannot be removed because it is not within this GutterContainer.
    at GutterContainer.module.exports.GutterContainer.removeGutter (/Applications/Atom.app/Contents/Resources/app.asar/src/gutter-container.js:100:15)
    at Gutter.module.exports.Gutter.destroy (/Applications/Atom.app/Contents/Resources/app.asar/src/gutter.js:27:30)
    at destroyEditor (/Users/gmedina/.atom/packages/go-debug/lib/editors.js:192:16)
    at onWillDestroyPaneItem (/Users/gmedina/.atom/packages/go-debug/lib/editors.js:37:3)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
    at PaneContainer.module.exports.PaneContainer.willDestroyPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:298:27)
    at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:630:17)
    at Pane.module.exports.Pane.destroyActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:617:12)
    at Workspace.module.exports.Workspace.destroyActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:692:35)
    at Workspace.module.exports.Workspace.closeActivePaneItemOrEmptyPaneOrWindow (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:731:21)
    at atom-workspace.commandRegistry.add.core:close (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:211:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:98:36)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)

Commands

  2x -0:07.9.0 core:close (atom-text-editor.editor.is-focused)

Config

{
  "core": {}
}

Installed Packages

# User
autocomplete-go, v1.0.6
build, v0.59.0
build-make, v0.8.0
builder-go, v1.0.0
environment, v1.2.0
go-config, v1.1.4
go-debug, v0.1.8
go-get, v1.0.3
go-plus, v4.1.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
linter, v1.11.4
navigator-godef, v1.0.3
pretty-json, v1.0.3
tester-go, v1.0.4

# Dev
No dev packages

go-debug not starting properly

Although it worked in the past, recent version(s) of go-debug do not start properly on my machine. I tried to debug this but I didn't get that far. However, here's the stacktrace that I got:

TypeError: Cannot read property 'Component' of undefined
    at Object.<anonymous> (/Users/bpruessm/.atom/packages/go-debug/lib/variables.jsx:64:23)
    at Module.contents.overrideModuleCompile.Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.keys.forEach.Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/bpruessm/.atom/packages/go-debug/lib/panel.jsx:27:21)
    at Module.contents.overrideModuleCompile.Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.keys.forEach.Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.start (/Users/bpruessm/.atom/packages/go-debug/lib/main.js:66:11)
    at /Users/bpruessm/.atom/packages/go-debug/lib/main.js:26:9

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.