These are chat archives for derekparker/delve

27th
Jun 2015
Derek Parker
@derekparker
Jun 27 2015 00:36
@aarzilli just a heads up I took care of rebasing your PR and fixing some broken OSX stuff, I'll likely be merging it in tonight
Florin Pățan
@dlsniper
Jun 27 2015 12:23

Hi, I'm trying to test how delve works with an http client and I have the following issue:

dlv -addr="127.0.0.1:6663" -log -headless run  ./u.go
2015/06/27 14:14:24 debugger.go:53: launching process with args: [./debug ./u.go]
2015/06/27 14:14:29 server.go:300: method Run has wrong number of ins: 1
2015/06/27 14:14:29 server.go:300: method Stop has wrong number of ins: 2

The browser hangs and nothing happens. I'm using commit 29ed16984851be78fadf8e70ad908d37cd3c47f3
I've tried to look for server.go:300 but there's no such line in the project files.
Do I do something wrong?

Derek Parker
@derekparker
Jun 27 2015 12:34
@dlsniper so the HTTP client / server was actually replaced in favor of a JSON-RPC client / server.
The same infrastructure that was initially put in for the HTTP server remains (as far as the abstractions) however the core client / server have been re-implemented in order to use a more lightweight protocol
Florin Pățan
@dlsniper
Jun 27 2015 12:35
ah, I see, I was just looking in the sources now. Thanks
Derek Parker
@derekparker
Jun 27 2015 12:48
No problem
I'm very interested in your feedback on editor integrations by the way, and if you need resources for JSON-RPC implementations (there are plenty in python) please let me know \cc @dlsniper
Florin Pățan
@dlsniper
Jun 27 2015 12:49
Yeap, that's what I'm working on right now actually. I finally have time this weekend to play around with it
but the IDEA API is ... powerful (and vastly un-documented) when it comes to create a debugger for a custom language :D
Here's the tracking ticket if you want to keep an eye on it: go-lang-plugin-org/go-lang-idea-plugin#1640