You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
“Start debugging” can run ,but “Run without debugging” unable to run on macOs when used gomod.
log:
Verbose logs are written to:
/var/folders/5v/f083s3c147b8xhll1wng2_8m0000gq/T/vscode-go-debug.txt
InitializeRequest
InitializeResponse
Using GOPATH: /Users/fish/Documents/code/go_path
../../../../code/go_workspace/ro/main.go:5:2: package ro/local is not in GOROOT (/usr/local/go/src/ro/local)
Process exiting with code: 1
Sending TerminatedEvent as delve is closed
DisconnectRequest
DisconnectRequest to parent
What version of Go, VS Code & VS Code Go extension are you using?
go versionto get version of Gocode -vorcode-insiders -vto get version of VS Code or VS Code Insidersgo env GOOS GOARCHto get the operating system and processor architecture detailsShare the Go related settings you have added/edited
{
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"git.enabled": false,
"window.zoomLevel": 0,
"workbench.iconTheme": "vscode-icons",
"editor.defaultFormatter": "ms-vscode.Go",
"go.autocompleteUnimportedPackages": true,
"extensions.ignoreRecommendations": false,
"go.docsTool": "gogetdoc",
"go.useLanguageServer": true
}
“Start debugging” can run ,but “Run without debugging” unable to run on macOs when used gomod.
log:
Verbose logs are written to:
/var/folders/5v/f083s3c147b8xhll1wng2_8m0000gq/T/vscode-go-debug.txt
InitializeRequest
InitializeResponse
Using GOPATH: /Users/fish/Documents/code/go_path
../../../../code/go_workspace/ro/main.go:5:2: package ro/local is not in GOROOT (/usr/local/go/src/ro/local)
Process exiting with code: 1
Sending TerminatedEvent as delve is closed
DisconnectRequest
DisconnectRequest to parent
My code:

Please check it.