Closed jcowgar closed 1 year ago
Same problem here.
Try setting dlvCwd
listed here https://pkg.go.dev/github.com/go-delve/delve/service/dap#LaunchConfig
// DlvCwd is the new working directory for Delve server.
// If specified, the server will change its working
// directory to the specified directory using os.Chdir.
// Any other launch attributes with relative paths interpreted
// using Delve's working directory will use this new directory.
// When Delve needs to build the program (in debug/test modes),
// it will run the go command from this directory as well.
//
// If a relative path is provided as DlvCwd, it will be
// interpreted as a path relative to Delve's current working
// directory.
DlvCwd string `json:"dlvCwd,omitempty"`
That worked, thank you!
Thank you for that! It works!
I have a simple hello world program. When attempting to debug, I receive the error:
go.mod does exist in
/home/jeremy/projects/hello_world
. When I go to that directory in my terminal and run the "go build" command above, a binary is built successfully.My sublime-project is