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

missing SetDX method when go getting dlv #1811

Closed
realB12 opened this issue Jan 5, 2020 · 14 comments
Closed

missing SetDX method when go getting dlv #1811

realB12 opened this issue Jan 5, 2020 · 14 comments

Comments

@realB12
Copy link

realB12 commented Jan 5, 2020

Executing
go get -u github.com/derekparker/delve/cmd/dlv
on an up to date Windows 10 Pro machine in a VS Code Terminal with newest version of git and go (1.13) fails with the following errors:

C:\Users\reneb\go\src\github.com\go-delve\delve\pkg\proc\native\proc.go:165:13: cannot use v (type *Thread) as type proc.Thread in append:
*Thread does not implement proc.Thread (missing SetDX method)
C:\Users\reneb\go\src\github.com\go-delve\delve\pkg\proc\native\proc.go:173:2: cannot use th (type *Thread) as type proc.Thread in return argument:
*Thread does not implement proc.Thread (missing SetDX method)
C:\Users\reneb\go\src\github.com\go-delve\delve\pkg\proc\native\proc.go:178:12: cannot use dbp.currentThread (type *Thread) as type proc.Thread in return argument:
*Thread does not implement proc.Thread (missing SetDX method)
C:\Users\reneb\go\src\github.com\go-delve\delve\pkg\proc\native\proc.go:267:2: cannot use trapthread (type *Thread) as type proc.Thread in return argument:
*Thread does not implement proc.Thread (missing SetDX method)
C:\Users\reneb\go\src\github.com\go-delve\delve\pkg\proc\native\proc.go:284:40: impossible type assertion:
*Thread does not implement proc.Thread (missing SetDX method)
C:\Users\reneb\go\src\github.com\go-delve\delve\pkg\proc\native\proc.go:299:22: cannot use thread (type *Thread) as type proc.Thread in argument to proc.GetG:
*Thread does not implement proc.Thread (missing SetDX method)
C:\Users\reneb\go\src\github.com\go-delve\delve\pkg\proc\native\proc.go:312:43: cannot use dbp.currentThread (type *Thread) as type proc.Thread in argument to proc.GetG:
*Thread does not implement proc.Thread (missing SetDX method)

Something wrong in delve or on my side ?

@chainhelen
Copy link
Contributor

I updates my go version to 1.13 on windows 10 and go get is ok.
Maybe you can remove C:\Users\reneb\go\src\github.com\go-delve\ and try again (or use cmd instead of VS Code Terminal).

@aarzilli
Copy link
Member

aarzilli commented Jan 6, 2020

It's possible that it's because you are using github.com/derekparker/delve instead of github.com/go-delve/delve, otherwise try what @chainhelen says. It's something with your install.

@lovelife-amtf
Copy link

lovelife-amtf commented Jan 13, 2020

It's possible that this version only support 64bit golang

@skynet2
Copy link

skynet2 commented Jan 18, 2020

Same issue during installation for Raspberry PI 3 Model B v1.2

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
pi@raspberrypi:~ $ go version
go version go1.13.6 linux/arm

Install log

pi@raspberrypi:~ $ go get -u github.com/go-delve/delve/cmd/dlv
# github.com/go-delve/delve/pkg/proc/native
go/src/github.com/go-delve/delve/pkg/proc/native/proc.go:165:13: cannot use v (type *Thread) as type proc.Thread in append:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/proc.go:173:2: cannot use th (type *Thread) as type proc.Thread in return argument:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/proc.go:178:12: cannot use dbp.currentThread (type *Thread) as type proc.Thread in return argument:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/proc.go:267:2: cannot use trapthread (type *Thread) as type proc.Thread in return argument:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/proc.go:284:40: impossible type assertion:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/proc.go:299:22: cannot use thread (type *Thread) as type proc.Thread in argument to proc.GetG:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/proc.go:312:43: cannot use dbp.currentThread (type *Thread) as type proc.Thread in argument to proc.GetG:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/threads.go:131:14: t.SetPC undefined (type *Thread has no field or method SetPC)
go/src/github.com/go-delve/delve/pkg/proc/native/threads.go:135:42: cannot use t (type *Thread) as type proc.Thread in argument to bp.CheckCondition:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/threads.go:137:26: cannot use t (type *Thread) as type proc.Thread in argument to proc.GetG:
        *Thread does not implement proc.Thread (missing SetDX method)
go/src/github.com/go-delve/delve/pkg/proc/native/threads.go:137:26: too many errors

@chainhelen
Copy link
Contributor

chainhelen commented Jan 18, 2020

Dlv v1.3.2 (lasted tag) not support linux-arm64, you can try master branch. @skynet2

@zogyi
Copy link

zogyi commented Feb 16, 2020

@realB12 hey, have you solved this problem, I encountered the same issue when I installed the dev tool in VS code(windows 64bit, go1.13.8 windows/386, latest go-delve), thanks.

@ghost
Copy link

ghost commented Feb 20, 2020

Same here.

[user@void ~]$ uname -a
Linux void 5.4.19_1 #1 SMP Wed Feb 12 15:24:37 UTC 2020 ppc64le GNU/Linux
[user@void ~]$ go version
go version go1.13.8 linux/ppc64le
[user@void delve]$ make install
go install "-ldflags=-X main.Build=fcba29112560ddbd61d2adbcb3abd88aa20f0911" github.com/go-delve/delve/cmd/dlv
# github.com/go-delve/delve/pkg/proc/native
pkg/proc/native/proc.go:164:13: cannot use v (type *Thread) as type proc.Thread in append:
	*Thread does not implement proc.Thread (missing SetDX method)
pkg/proc/native/proc.go:172:2: cannot use th (type *Thread) as type proc.Thread in return argument:
	*Thread does not implement proc.Thread (missing SetDX method)
pkg/proc/native/proc.go:177:12: cannot use dbp.currentThread (type *Thread) as type proc.Thread in return argument:
	*Thread does not implement proc.Thread (missing SetDX method)
pkg/proc/native/proc.go:265:2: cannot use trapthread (type *Thread) as type proc.Thread in return argument:
	*Thread does not implement proc.Thread (missing SetDX method)
pkg/proc/native/proc.go:275:43: cannot use dbp.currentThread (type *Thread) as type proc.Thread in argument to proc.GetG:
	*Thread does not implement proc.Thread (missing SetDX method)
pkg/proc/native/threads.go:131:14: t.SetPC undefined (type *Thread has no field or method SetPC)
pkg/proc/native/threads.go:135:42: cannot use t (type *Thread) as type proc.Thread in argument to bp.CheckCondition:
	*Thread does not implement proc.Thread (missing SetDX method)
pkg/proc/native/threads.go:137:26: cannot use t (type *Thread) as type proc.Thread in argument to proc.GetG:
	*Thread does not implement proc.Thread (missing SetDX method)
pkg/proc/native/threads.go:167:9: undefined: registers
pkg/proc/native/threads.go:173:10: t.restoreRegisters undefined (type *Thread has no field or method restoreRegisters, but does have RestoreRegisters)
pkg/proc/native/threads.go:173:10: too many errors
exit status 1
make: *** [Makefile:10: install] Error 1

@dlsniper
Copy link
Contributor

@zogyi/@jdu9 you seem to have Go for Windows 386, not for amd64. Replace your Go installation and try again.

@ghost
Copy link

ghost commented Feb 21, 2020

@dlsniper "go version go1.13.8 linux/ppc64le".

@dlsniper
Copy link
Contributor

@jdu9 sorry, in your case, that's not supported either, see #1564

@realB12
Copy link
Author

realB12 commented Feb 24, 2020

I updates my go version to 1.13 on windows 10 and go get is ok.
Maybe you can remove C:\Users\reneb\go\src\github.com\go-delve\ and try again (or use cmd instead of VS Code Terminal).

Done that: same result

@realB12
Copy link
Author

realB12 commented Feb 24, 2020

@realB12 hey, have you solved this problem, I encountered the same issue when I installed the dev tool in VS code(windows 64bit, go1.13.8 windows/386, latest go-delve), thanks.

No, still have the same problem:
Im on a most updated Windows 10 64-Bit i386 Machine with latest version of Go (v1.13.4) an no other issues than this one. Can it be that with Go Version 13 default is Module-Mode and no longer GOPATH mode and delve not yet "fit" on this?

@dlsniper
Copy link
Contributor

dlsniper commented Feb 24, 2020

@realB12 Please see my comment here: https://blog.jetbrains.com/go/2019/02/06/debugging-with-goland-getting-started/#comment-20789

Also, keep in mind that you don't need to manually install Delve for using with GoLand. We bundle it automatically (and update it as GoLand gets updated).

@realB12
Copy link
Author

realB12 commented Feb 24, 2020

Issue solved for me:
Solution: Uninstall the i386/32Bit Go version and Install the newest amd64/64-bit version!

Problem was due to 32Bit Go installation rather than 64Bit!
(I have accidently installed the i386 = 32-Bit Go Version when upgrading go to the newest 1.13.4 version. The dumb person I am, I have taken i386 for Intel (I am running on Intel Processors) and amd64 for AMD Processors assuming that both are 64Bit per default - so - shame on me! ).

So for me - having a 64Bit machine - the problem is solved for me.
However it seems that 32-Bit is not or no longer supported as mentioned by other Issues here already.

@realB12 realB12 closed this as completed Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants