Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger not working on Windows #2511

Closed
thingsis opened this issue Sep 24, 2019 · 16 comments · Fixed by #2526
Closed

Debugger not working on Windows #2511

thingsis opened this issue Sep 24, 2019 · 16 comments · Fixed by #2526

Comments

@thingsis
Copy link

What did you do? (required: The issue will be closed when not provided)

Installed vim-go
Compiled and ran program with :GoRun (works)
Tried debugging with :GoDebugStart, :GoDebugBreakpoint, :GoDebugNext

What did you expect to happen?

The Program to be executed in the debugger as per the manual

What happened instead?

It throws error messages already when trying to create the breakpoint. Then gvim crashes when starting to debug.

Configuration (MUST fill this out):

vim-go version:

Did "git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go" today. How do I find out which version?

vimrc you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):

vimrc
if has('gui_running')
  set guioptions-=T  "  no toolbar
  set guifont=Go_Mono:h12:cANSI:qDRAFT  "  Go Mono font
  colo dichromatic
  syntax on
  set lines=42 columns=142
  set guicursor+=a:blinkon0
endif
filetype plugin indent on
set backspace=indent,eol,start
:nnoremap  :NERDTreeToggle
set visualbell
set encoding=utf-8
set fileencoding=utf-8
autocmd FileType go setlocal tabstop=3 shiftwidth=3 softtabstop=3
""autocmd FileType go lcd %:p:h
set shiftwidth=3
set undofile
set undodir=~/vimfiles/undodir

Vim version (first three lines from :version):

VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:36:07)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1

Go version (go version):

go version go1.13 windows/amd64

Go environment

go env Output:
C:\Users\henri>go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\henri\AppData\Local\go-build
set GOENV=C:\Users\henri\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\henri\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\henri\AppData\Local\Temp\go-build716180014=/tmp
/go-build -gno-record-gcc-switches
![vim-go-error](https://user-images.githubusercontent.com/55752765/65526485-756be280-def1-11e9-825d-caf63737c4f0.jpg)
@thingsis
Copy link
Author

vim-go-error

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 25, 2019

I think this is a duplicate of #2481 .

I don't have a window machine, but I'd love to get to the bottom of it. If anyone can help, I would surely appreciate it.

@thingsis
Copy link
Author

It looks slightly different, but could still very well be the same. I am sadly not very knowledgeable when it comes to VIM and how to find these errors. Yet I am willing to help if there is anything I can do/try. Just let me know!

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 25, 2019

what I really need is to figure out what delve is sending on Windows and why it's different than on other systems. Can you run vim with vim -c "let g:go_debug=['debugger-commands'] and then provide the full contents of the __GODEBUG_OUTPUT__ window after you see the erorrs?

@thingsis
Copy link
Author

thingsis commented Sep 26, 2019

I hope this is what you are looking for. I did the following: I opened a file, set the current working dir to that files location. I tested the program with :GoRun, which works great. Then :GoDebugStart, :GoDebugBreakpoint, :GoDebugNext. Then the error happens...

ERR: 2019-09-26T10:20:11+02:00 info layer=debugger launching process with args: [C:\Users\henri\AppData\Local\Temp\VIA2785.tmp]
ERR: 2019-09-26T10:20:31+02:00 debug layer=rpc <- RPCServer.CreateBreakpoint(rpc2.CreateBreakpointIn{"Breakpoint":{"id":0,"name":"","addr":0,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":null,"totalHitCount":0}})
ERR: 2019-09-26T10:20:31+02:00 info layer=debugger created breakpoint: &api.Breakpoint{ID:1, Name:"", Addr:0x4d16cb, File:"C:/Users/henri/go/src/local/flightGenerator/readAirports.go", Line:33, FunctionName:"main.main", Cond:"", Tracepoint:false, TraceReturn:false, Goroutine:false, Stacktrace:0, Variables:[]string(nil), LoadArgs:(*api.LoadConfig)(nil), LoadLocals:(*api.LoadConfig)(nil), HitCount:map[string]uint64{}, TotalHitCount:0x0}
ERR: 2019-09-26T10:20:31+02:00 debug layer=rpc -> *rpc2.CreateBreakpointOut{"Breakpoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{},"totalHitCount":0}} error: ""
ERR: 2019-09-26T10:20:41+02:00 debug layer=rpc (async 2) <- RPCServer.Command(api.DebuggerCommand{"name":"continue","ReturnInfoLoadConfig":null})
ERR: 2019-09-26T10:20:41+02:00 debug layer=debugger continuing
ERR: 2019-09-26T10:20:41+02:00 debug layer=rpc (async 2) -> rpc2.CommandOut{"State":{"Running":false,"currentThread":{"id":19952,"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"goroutineID":1,"breakPoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{"1":1},"totalHitCount":1},"breakPointInfo":{},"ReturnValues":null},"currentGoroutine":{"id":1,"currentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"userCurrentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"goStatementLoc":{"pc":4556636,"file":"c:/go/src/runtime/asm_amd64.s","line":220,"function":{"name":"runtime.rt0_go","value":4556304,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4401536,"file":"c:/go/src/runtime/proc.go","line":113,"function":{"name":"runtime.main","value":4401536,"type":0,"goType":0,"optimized":true}},"threadID":19952,"unreadable":""},"Threads":[{"id":14764,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":17412,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":19952,"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"goroutineID":1,"breakPoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{"1":1},"totalHitCount":1},"breakPointInfo":{},"ReturnValues":null},{"id":23692,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":19836,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":14988,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":18512,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":9704,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
ERR: 2019-09-26T10:20:41+02:00 debug layer=rpc <- RPCServer.State(rpc2.StateIn{"NonBlocking":false})
ERR: 2019-09-26T10:20:41+02:00 debug layer=rpc -> *rpc2.StateOut{"State":{"Running":false,"currentThread":{"id":19952,"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"goroutineID":1,"breakPoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{"1":1},"totalHitCount":1},"ReturnValues":null},"currentGoroutine":{"id":1,"currentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"userCurrentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"goStatementLoc":{"pc":4556636,"file":"c:/go/src/runtime/asm_amd64.s","line":220,"function":{"name":"runtime.rt0_go","value":4556304,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4401536,"file":"c:/go/src/runtime/proc.go","line":113,"function":{"name":"runtime.main","value":4401536,"type":0,"goType":0,"optimized":true}},"threadID":19952,"unreadable":""},"Threads":[{"id":19836,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":14988,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":18512,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":9704,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":14764,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":17412,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":19952,"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"goroutineID":1,"breakPoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{"1":1},"totalHitCount":1},"ReturnValues":null},{"id":23692,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
ERR: 2019-09-26T10:22:21+02:00 debug layer=rpc <- RPCServer.ListGoroutines(rpc2.ListGoroutinesIn{"Start":0,"Count":0})
ERR: 2019-09-26T10:22:21+02:00 debug layer=rpc -> *rpc2.ListGoroutinesOut{"Goroutines":[{"id":1,"currentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"userCurrentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"goStatementLoc":{"pc":4556636,"file":"c:/go/src/runtime/asm_amd64.s","line":220,"function":{"name":"runtime.rt0_go","value":4556304,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4401536,"file":"c:/go/src/runtime/proc.go","line":113,"function":{"name":"runtime.main","value":4401536,"type":0,"goType":0,"optimized":true}},"threadID":19952,"unreadable":""},{"id":2,"currentLoc":{"pc":4402914,"file":"c:/go/src/runtime/proc.go","line":305,"function":{"name":"runtime.gopark","value":4402704,"type":0,"goType":0,"optimized":true}},"userCurrentLoc":{"pc":4402914,"file":"c:/go/src/runtime/proc.go","line":305,"function":{"name":"runtime.gopark","value":4402704,"type":0,"goType":0,"optimized":true}},"goStatementLoc":{"pc":4402348,"file":"c:/go/src/runtime/proc.go","line":242,"function":{"name":"runtime.init.5","value":4402288,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4402368,"file":"c:/go/src/runtime/proc.go","line":245,"function":{"name":"runtime.forcegchelper","value":4402368,"type":0,"goType":0,"optimized":true}},"threadID":0,"unreadable":""},{"id":3,"currentLoc":{"pc":4402914,"file":"c:/go/src/runtime/proc.go","line":305,"function":{"name":"runtime.gopark","value":4402704,"type":0,"goType":0,"optimized":true}},"userCurrentLoc":{"pc":4402914,"file":"c:/go/src/runtime/proc.go","line":305,"function":{"name":"runtime.gopark","value":4402704,"type":0,"goType":0,"optimized":true}},"goStatementLoc":{"pc":4303811,"file":"c:/go/src/runtime/mgc.go","line":210,"function":{"name":"runtime.gcenable","value":4303712,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4340096,"file":"c:/go/src/runtime/mgcsweep.go","line":64,"function":{"name":"runtime.bgsweep","value":4340096,"type":0,"goType":0,"optimized":true}},"threadID":0,"unreadable":""},{"id":4,"currentLoc":{"pc":4402914,"file":"c:/go/src/runtime/proc.go","line":305,"function":{"name":"runtime.gopark","value":4402704,"type":0,"goType":0,"optimized":true}},"userCurrentLoc":{"pc":4402914,"file":"c:/go/src/runtime/proc.go","line":305,"function":{"name":"runtime.gopark","value":4402704,"type":0,"goType":0,"optimized":true}},"goStatementLoc":{"pc":4303845,"file":"c:/go/src/runtime/mgc.go","line":211,"function":{"name":"runtime.gcenable","value":4303712,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4337408,"file":"c:/go/src/runtime/mgcscavenge.go","line":243,"function":{"name":"runtime.bgscavenge","value":4337408,"type":0,"goType":0,"optimized":true}},"threadID":0,"unreadable":""},{"id":5,"currentLoc":{"pc":4402914,"file":"c:/go/src/runtime/proc.go","line":305,"function":{"name":"runtime.gopark","value":4402704,"type":0,"goType":0,"optimized":true}},"userCurrentLoc":{"pc":4402914,"file":"c:/go/src/runtime/proc.go","line":305,"function":{"name":"runtime.gopark","value":4402704,"type":0,"goType":0,"optimized":true}},"goStatementLoc":{"pc":4299528,"file":"c:/go/src/runtime/mfinal.go","line":156,"function":{"name":"runtime.createfing","value":4299424,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4299552,"file":"c:/go/src/runtime/mfinal.go","line":161,"function":{"name":"runtime.runfinq","value":4299552,"type":0,"goType":0,"optimized":true}},"threadID":0,"unreadable":""}],"Nextg":-1} error: ""
ERR: 2019-09-26T10:22:21+02:00 debug layer=rpc <- RPCServer.Stacktrace(rpc2.StacktraceIn{"Id":1,"Depth":5,"Full":false,"Defers":false,"Cfg":null})
ERR: 2019-09-26T10:22:21+02:00 debug layer=rpc -> *rpc2.StacktraceOut{"Locations":[{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"Locals":null,"Arguments":null,"FrameOffset":-160,"FramePointerOffset":-176,"Defers":[],"Err":""},{"pc":4401990,"file":"c:/go/src/runtime/proc.go","line":203,"function":{"name":"runtime.main","value":4401536,"type":0,"goType":0,"optimized":true},"Locals":null,"Arguments":null,"FrameOffset":-32,"FramePointerOffset":-48,"Defers":[],"Err":""},{"pc":4565057,"file":"c:/go/src/runtime/asm_amd64.s","line":1357,"function":{"name":"runtime.goexit","value":4565056,"type":0,"goType":0,"optimized":true},"Locals":null,"Arguments":null,"FrameOffset":-24,"FramePointerOffset":-824634220544,"Defers":[],"Bottom":true,"Err":""}]} error: ""
ERR: 2019-09-26T10:22:22+02:00 debug layer=rpc <- RPCServer.ListLocalVars(rpc2.ListLocalVarsIn{"Scope":{"GoroutineID":1,"Frame":0,"DeferredCall":0},"Cfg":{"FollowPointers":false,"MaxVariableRecurse":0,"MaxStringLen":20,"MaxArrayValues":20,"MaxStructFields":0}})
ERR: 2019-09-26T10:22:22+02:00 debug layer=rpc -> *rpc2.ListLocalVarsOut{"Variables":[{"name":"counter","addr":824634219880,"onlyAddr":false,"type":"int","realType":"int","flags":0,"kind":2,"value":"0","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"[block] DW_OP_fbreg -0x1f8 ","DeclLine":13},{"name":"rd","addr":824634219968,"onlyAddr":false,"type":"*bufio.Reader","realType":"*bufio.Reader","flags":0,"kind":22,"value":"","len":1,"cap":0,"children":[{"name":"","addr":824633966688,"onlyAddr":true,"type":"bufio.Reader","realType":"bufio.Reader","flags":0,"kind":25,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0}],"base":0,"unreadable":"","LocationExpr":"[block] DW_OP_fbreg -0x1a0 ","DeclLine":19},{"name":"f","addr":824634219976,"onlyAddr":false,"type":"*os.File","realType":"*os.File","flags":0,"kind":22,"value":"","len":1,"cap":0,"children":[{"name":"","addr":824633745448,"onlyAddr":true,"type":"os.File","realType":"os.File","flags":0,"kind":25,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0}],"base":0,"unreadable":"","LocationExpr":"[block] DW_OP_fbreg -0x198 ","DeclLine":14},{"name":"err","addr":824634220088,"onlyAddr":false,"type":"error","realType":"error","flags":2,"kind":20,"value":"","len":0,"cap":0,"children":[{"name":"","addr":0,"onlyAddr":false,"type":"void","realType":"void","flags":0,"kind":0,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0}],"base":0,"unreadable":"","LocationExpr":"[block] DW_OP_fbreg -0x128 ","DeclLine":14},{"name":"line","addr":824634220072,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"I\n","len":2,"cap":0,"children":[],"base":824633762044,"unreadable":"","LocationExpr":"[block] DW_OP_fbreg -0x138 ","DeclLine":21},{"name":"err","addr":824634220104,"onlyAddr":false,"type":"error","realType":"error","flags":0,"kind":20,"value":"","len":0,"cap":0,"children":[{"name":"","addr":0,"onlyAddr":false,"type":"void","realType":"void","flags":0,"kind":0,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0}],"base":0,"unreadable":"","LocationExpr":"[block] DW_OP_fbreg -0x118 ","DeclLine":21},{"name":"substrings","addr":824634220248,"onlyAddr":false,"type":"[]string","realType":"[]string","flags":0,"kind":23,"value":"","len":824634220312,"cap":4450075,"children":[{"name":"","addr":824634236928,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634236944,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634236960,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":" \u0001O\u0000\u0000\u0000\u0000\u0000@tP\u0000\u0000\u0000\u0000\u0000D\ufffd\ufffd3","len":824633745440,"cap":0,"children":[],"base":5378400,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634236976,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634236992,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237008,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237024,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237040,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237056,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237072,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237088,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237104,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237120,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237136,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237152,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237168,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237184,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237200,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237216,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0},{"name":"","addr":824634237232,"onlyAddr":false,"type":"string","realType":"string","flags":0,"kind":24,"value":"","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0}],"base":824634236928,"unreadable":"","LocationExpr":"[block] DW_OP_fbreg -0x88 ","DeclLine":33}]} error: ""
ERR: 2019-09-26T10:22:22+02:00 debug layer=rpc <- RPCServer.ListFunctionArgs(rpc2.ListFunctionArgsIn{"Scope":{"GoroutineID":1,"Frame":0,"DeferredCall":0},"Cfg":{"FollowPointers":false,"MaxVariableRecurse":0,"MaxStringLen":20,"MaxArrayValues":20,"MaxStructFields":0}})
ERR: 2019-09-26T10:22:22+02:00 debug layer=rpc -> *rpc2.ListFunctionArgsOut{"Args":[]} error: ""
ERR: 2019-09-26T10:26:30+02:00 debug layer=rpc <- RPCServer.State(rpc2.StateIn{"NonBlocking":false})
ERR: 2019-09-26T10:26:30+02:00 debug layer=rpc -> *rpc2.StateOut{"State":{"Running":false,"currentThread":{"id":19952,"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"goroutineID":1,"breakPoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{"1":1},"totalHitCount":1},"ReturnValues":null},"currentGoroutine":{"id":1,"currentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"userCurrentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"goStatementLoc":{"pc":4556636,"file":"c:/go/src/runtime/asm_amd64.s","line":220,"function":{"name":"runtime.rt0_go","value":4556304,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4401536,"file":"c:/go/src/runtime/proc.go","line":113,"function":{"name":"runtime.main","value":4401536,"type":0,"goType":0,"optimized":true}},"threadID":19952,"unreadable":""},"Threads":[{"id":9704,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":14764,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":17412,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":19952,"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"goroutineID":1,"breakPoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{"1":1},"totalHitCount":1},"ReturnValues":null},{"id":23692,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":19836,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":14988,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":18512,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
ERR: 2019-09-26T10:26:30+02:00 debug layer=rpc <- RPCServer.Eval(rpc2.EvalIn{"Scope":{"GoroutineID":1,"Frame":0,"DeferredCall":0},"Expr":"Frame","Cfg":null})
ERR: 2019-09-26T10:26:30+02:00 debug layer=rpc -> *rpc2.EvalOut{"Variable":null} error: "could not find symbol value for Frame"
ERR: 2019-09-26T10:26:32+02:00 debug layer=rpc <- RPCServer.State(rpc2.StateIn{"NonBlocking":false})
ERR: 2019-09-26T10:26:32+02:00 debug layer=rpc -> *rpc2.StateOut{"State":{"Running":false,"currentThread":{"id":19952,"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"goroutineID":1,"breakPoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{"1":1},"totalHitCount":1},"ReturnValues":null},"currentGoroutine":{"id":1,"currentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"userCurrentLoc":{"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false}},"goStatementLoc":{"pc":4556636,"file":"c:/go/src/runtime/asm_amd64.s","line":220,"function":{"name":"runtime.rt0_go","value":4556304,"type":0,"goType":0,"optimized":true}},"startLoc":{"pc":4401536,"file":"c:/go/src/runtime/proc.go","line":113,"function":{"name":"runtime.main","value":4401536,"type":0,"goType":0,"optimized":true}},"threadID":19952,"unreadable":""},"Threads":[{"id":19952,"pc":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"function":{"name":"main.main","value":5050976,"type":0,"goType":0,"optimized":false},"goroutineID":1,"breakPoint":{"id":1,"name":"","addr":5052107,"file":"C:/Users/henri/go/src/local/flightGenerator/readAirports.go","line":33,"functionName":"main.main","Cond":"","continue":false,"traceReturn":false,"goroutine":false,"stacktrace":0,"LoadArgs":null,"LoadLocals":null,"hitCount":{"1":1},"totalHitCount":1},"ReturnValues":null},{"id":23692,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":19836,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":14988,"pc":140715559615076,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":18512,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":9704,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":14764,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null},{"id":17412,"pc":140715559600468,"file":"","line":0,"goroutineID":0,"ReturnValues":null}],"NextInProgress":false,"exited":false,"exitStatus":0,"When":""}} error: ""
ERR: 2019-09-26T10:26:32+02:00 debug layer=rpc <- RPCServer.Eval(rpc2.EvalIn{"Scope":{"GoroutineID":1,"Frame":0,"DeferredCall":0},"Expr":"5052107","Cfg":null})
ERR: 2019-09-26T10:26:32+02:00 debug layer=rpc -> *rpc2.EvalOut{"Variable":{"name":"5052107","addr":0,"onlyAddr":false,"type":"","realType":"","flags":4,"kind":2,"value":"5052107","len":0,"cap":0,"children":[],"base":0,"unreadable":"","LocationExpr":"","DeclLine":0}} error: ""

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 26, 2019

Do you have the same problem if you run :GoDebugContinue instead of :GoDebugNext after setting your breakpoint?

@thingsis
Copy link
Author

If I remember correctly there was no difference. I will try again a little later. Do you need the dump again?

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 26, 2019

I don't need the dump again.

@thingsis
Copy link
Author

Just checked. Exact same behavior.

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 26, 2019

@thingsis the output I need is what's in g:go_debug_commands, not the __GODEBUG_OUTPUT__ window. Can you get that for me?

@thingsis
Copy link
Author

I hope this is what you need. Otherwise let me know how I can get to the required output.

vim-go-error2

@bhcleek
Copy link
Collaborator

bhcleek commented Sep 29, 2019

Thanks, @thingsis. What I need is the value of g:go_debug_commands after all those errors. You can get that by running vim with vim -c "let g:go_debug=['debugger-commands']" and then running echo g:go_debug_commands after you get your errors.

@bhcleek
Copy link
Collaborator

bhcleek commented Oct 1, 2019

@thingsis I've been able to figure out at least part of the problem and will be putting up a PR in the next couple of days to eliminate the errors you're seeing.

bhcleek added a commit to bhcleek/vim-go that referenced this issue Oct 1, 2019
RPC responses are sometimes empty on Windows, so check that the results
are a dictionary and that the result field is not empty.

Fixes fatih#2511
Fixes fatih#2481
@bhcleek bhcleek added the bug label Oct 1, 2019
@thingsis
Copy link
Author

thingsis commented Oct 2, 2019

@bhcleek I will try this today since I was travelling the last few days. I will post my feedback here later.

@thingsis
Copy link
Author

thingsis commented Oct 5, 2019

@bhcleek At the moment the master branch doesn't seem to be in a state in which I could try this - getting errors as soon as I open go files or try to install the go binaries. I will wait till the next release and try again.

@bhcleek
Copy link
Collaborator

bhcleek commented Oct 5, 2019

I'm not aware of any issues on master similar to what you're describing. Please open a new issue if you need help or want to see them fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants