beego / bee

Bee is a tool for helping develop with beego app framework.
Apache License 2.0
1.45k stars 920 forks source link

Issue: github.com/gadelkareem/delve/service/debugger #736

Open Anu-N-2 opened 3 years ago

Anu-N-2 commented 3 years ago

Hi, Getting the below error. Tried using all the below RUN go get -u github.com/beego/bee RUN export GO111MODULE=on && go get -u github.com/beego/bee RUN export GO111MODULE=on && go get github.com/beego/bee

github.com/gadelkareem/delve/service/debugger

src/github.com/gadelkareem/delve/service/debugger/debugger.go:129:3: cannot use logger (type "github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Entry) as type "github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".Entry in field value src/github.com/gadelkareem/delve/service/debugger/debugger.go:224:23: not enough arguments in call to native.Launch have ([]string, string, bool, []string, string) want ([]string, string, proc.LaunchFlags, []string, string, [3]string) src/github.com/gadelkareem/delve/service/debugger/debugger.go:226:57: not enough arguments in call to gdbserial.LLDBLaunch have ([]string, string, bool, []string, string) want ([]string, string, proc.LaunchFlags, []string, string, [3]string) src/github.com/gadelkareem/delve/service/debugger/debugger.go:233:42: not enough arguments in call to gdbserial.RecordAsync have ([]string, string, bool) want ([]string, string, bool, [3]string) src/github.com/gadelkareem/delve/service/debugger/debugger.go:268:58: not enough arguments in call to gdbserial.LLDBLaunch have ([]string, string, bool, []string, string) want ([]string, string, proc.LaunchFlags, []string, string, [3]string) src/github.com/gadelkareem/delve/service/debugger/debugger.go:270:23: not enough arguments in call to native.Launch have ([]string, string, bool, []string, string) want ([]string, string, proc.LaunchFlags, []string, string, [3]string) src/github.com/gadelkareem/delve/service/debugger/debugger.go:463:43: not enough arguments in call to gdbserial.RecordAsync have ([]string, string, bool) want ([]string, string, bool, [3]string) src/github.com/gadelkareem/delve/service/debugger/debugger.go:1210:27: cannot use dregs (type op.DwarfRegisters) as type op.DwarfRegisters in argument to api.ConvertRegisters src/github.com/gadelkareem/delve/service/debugger/debugger.go:1210:53: cannot use d.target.Process.BinInfo().Arch (type proc.Arch) as type func(int, *op.DwarfRegister) (string, bool, string) in argument to api.ConvertRegisters src/github.com/gadelkareem/delve/service/debugger/debugger.go:1575:10: undefined: api.ConvertCheckpoint src/github.com/gadelkareem/delve/service/debugger/debugger.go:1575:10: too many errors

github.com/gadelkareem/delve/service/rpc2

src/github.com/gadelkareem/delve/service/rpc2/client.go:23:5: cannot use &RPCClient literal (type RPCClient) as type service.Client in assignment: RPCClient does not implement service.Client (wrong type for ExamineMemory method) have ExamineMemory(uintptr, int) ([]byte, error) want ExamineMemory(uint64, int) ([]byte, bool, error) src/github.com/gadelkareem/delve/service/rpc2/server.go:96:52: not enough arguments in call to s.debugger.Restart have (bool, string, bool, []string, bool) want (bool, string, bool, []string, [3]string, bool) src/github.com/gadelkareem/delve/service/rpc2/server.go:190:21: cannot assign []proc.Stackframe to out.Locations (type []api.Stackframe) in multiple assignment src/github.com/gadelkareem/delve/service/rpc2/server.go:190:44: too many arguments in call to s.debugger.Stacktrace have (int, int, api.StacktraceOptions, proc.LoadConfig) want (int, int, api.StacktraceOptions) src/github.com/gadelkareem/delve/service/rpc2/server.go:321:19: cannot assign []proc.Thread to out.Threads (type []api.Thread) in multiple assignment src/github.com/gadelkareem/delve/service/rpc2/server.go:342:13: cannot use t (type proc.Thread) as type api.Thread in assignment src/github.com/gadelkareem/delve/service/rpc2/server.go:367:42: too many arguments in call to s.debugger.PackageVariables have (int, string, proc.LoadConfig) want (string, proc.LoadConfig) src/github.com/gadelkareem/delve/service/rpc2/server.go:371:16: cannot use vars (type []proc.Variable) as type []api.Variable in assignment src/github.com/gadelkareem/delve/service/rpc2/server.go:398:25: s.debugger.Registers undefined (type *debugger.Debugger has no field or method Registers) src/github.com/gadelkareem/delve/service/rpc2/server.go:419:40: not enough arguments in call to s.debugger.LocalVariables have (api.EvalScope, proc.LoadConfig) want (int, int, int, proc.LoadConfig) src/github.com/gadelkareem/delve/service/rpc2/server.go:419:40: too many errors

github.com/gadelkareem/delve/service/rpccommon

src/github.com/gadelkareem/delve/service/rpccommon/server.go:83:3: cannot use logger (type "github.com/go-delve/delve/vendor/github.com/sirupsen/logrus".Entry) as type "github.com/gadelkareem/delve/vendor/github.com/sirupsen/logrus".Entry in field value

github.com/gadelkareem/delve/pkg/terminal

src/github.com/gadelkareem/delve/pkg/terminal/command.go:1032:40: not enough arguments in call to t.client.RestartFrom have (bool, string, bool, []string, bool) want (bool, string, bool, []string, [3]string, bool) src/github.com/gadelkareem/delve/pkg/terminal/command.go:1575:15: assignment mismatch: 2 variables but t.client.ExamineMemory returns 3 values src/github.com/gadelkareem/delve/pkg/terminal/command.go:1575:48: cannot use uintptr(address) (type uintptr) as type uint64 in argument to t.client.ExamineMemory src/github.com/gadelkareem/delve/pkg/terminal/command.go:1580:35: not enough arguments in call to api.PrettyExamineMemory

Anu-N-2 commented 3 years ago

even I tried to get the proxy also

RUN export GO111MODULE=on RUN export GOPROXY=https://goproxy.io RUN go get github.com/astaxie/beego RUN go get -u github.com/beego/bee

still the same error

flycash commented 3 years ago

Try

go get github.com/astaxie/beego@v1.12.3
go get github.com/beego/bee@v1.12.3

We got this error sometimes and it was caused by version conflict.

Anu-N-2 commented 3 years ago

This is not working. Need your help over here

flycash commented 3 years ago

722

You can try to remove github.com/gadelkareem/delve from GOPATH/pkg and then rerun commands

go get github.com/gadelkareem/delve@v1.4.2-0.20200619175259-dcd01330766f
go get github.com/astaxie/beego@v1.12.3
go get github.com/beego/bee@v1.12.3

I am thinking about replace github.com/gadelkareem/delve with github.com/go-delve/delve