LunarVim/starter.lvim

debug go [debug-adapter stderr]

thsea opened this issue · 0 comments

thsea commented

it's work well in my Ubuntu OS
but in my android OS it failed
checkhealth result is all ok
go 1.20.4

[debug-adapter stderr] 2023-05-19T11:09:25Z error layer=dap recovered panic: attempting to open file Delve cannot parse
goroutine 6 [running]:
runtime/debug.Stack()
	/data/data/com.termux/files/usr/lib/go/src/runtime/debug/stack.go:24 +0x64
github.com/go-delve/delve/service/dap.(*Session).recoverPanic(0x400032c000, {0x5ae1e49860, 0x4000332100})
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/dap/server.go:555 +0x44
panic({0x5ae1d7f2c0, 0x5ae1e47698})
	/data/data/com.termux/files/usr/lib/go/src/runtime/panic.go:890 +0x258
github.com/go-delve/delve/service/debugger.verifyBinaryFormat({0x400033a440?, 0x5ae186dba4?})
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/debugger/debugger.go:2305 +0x130
github.com/go-delve/delve/service/debugger.(*Debugger).Launch(0x40000d2790, {0x40001bcfa0?, 0x1, 0x1}, {0x5ae1852fa0, 0x1})
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/debugger/debugger.go:246 +0x58
github.com/go-delve/delve/service/debugger.New(0x4000000c80, {0x40001bcfa0, 0x1, 0x1})
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/debugger/debugger.go:196 +0x528
github.com/go-delve/delve/service/dap.(*Session).onLaunchRequest.func2(0x400032c000, 0x4000195288)
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/dap/server.go:1053 +0xdc
github.com/go-delve/delve/service/dap.(*Session).onLaunchRequest(0x400032c000, 0x4000332100)
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/dap/server.go:1054 +0x17dc
github.com/go-delve/delve/service/dap.(*Session).handleRequest(0x400032c000, {0x5ae1e49860?, 0x4000332100?})
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/dap/server.go:589 +0x2fc
github.com/go-delve/delve/service/dap.(*Session).ServeDAPCodec(0x400032c000)
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/dap/server.go:541 +0x308
github.com/go-delve/delve/service/dap.(*Server).runSession(0x400020a930, {0x702cf8fff0?, 0x4000316000?})
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/dap/server.go:478 +0x148
github.com/go-delve/delve/service/dap.(*Server).Run.func1()
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/dap/server.go:470 +0xd8
created by github.com/go-delve/delve/service/dap.(*Server).Run
	/data/data/com.termux/files/home/.local/share/go/pkg/mod/github.com/go-delve/delve@v1.20.2/service/dap/server.go:452 +0x68