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

Error when trying install delve in traditional way #2067

Closed
kt1755 opened this issue Jun 1, 2020 · 5 comments
Closed

Error when trying install delve in traditional way #2067

kt1755 opened this issue Jun 1, 2020 · 5 comments

Comments

@kt1755
Copy link

kt1755 commented Jun 1, 2020

dbp.os.comm = strings.ReplaceAll(string(comm), "%", "%%")

I'm using delve to debug our code inside docker container. And I got error: # github.com/go-delve/delve/pkg/proc/native /go/src/github.com/go-delve/delve/pkg/proc/native/proc_linux.go:170:16: undefined: strings.ReplaceAll when install delve using command go get github.com/go-delve/delve/cmd/dlv. Please tell me what happened, and how to fix it.

@aarzilli
Copy link
Member

aarzilli commented Jun 1, 2020

Which version of go are you using?

@chainhelen
Copy link
Contributor

@aarzilli

According to installation doc, Please note you must have Go 1.10 or higher installed in order to compile Delve.
In code, it is MinSupportedVersionOfGoMinor = 12.

Doc need to be changed or I am wrong?

@aarzilli
Copy link
Member

aarzilli commented Jun 1, 2020

Version 1.12 is being tested in CI so that one should be fine.

@yc-alex-xu
Copy link

I met the same problem with Go 1.10 under Ubuntu too.

$ go version
go version go1.10.4 linux/amd64

@aarzilli
Copy link
Member

aarzilli commented Jun 1, 2020

We only test and support the three most recent versions of Go. Use a more recent version of Go or a less recent version of Delve.

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

4 participants