Please answer these questions before submitting your issue. Thanks!
What version of Go, VS Code & VS Code Go extension are you using?
- Run
go version to get version of Go
- go version go1.13.6 darwin/amd64
- Run
code -v or code-insiders -v to get version of VS Code or VS Code Insiders
- Check your installed extensions to get the version of the VS Code Go extension
- Run
go env GOOS GOARCH to get the operating system and processor arhcitecture details
Share the Go related settings you have added/edited
Run Preferences: Open Settings (JSON) command to open your settings.json file.
Share all the settings with the go. or ["go"] prefixes.
{
"terminal.integrated.shell.osx": "/bin/bash",
"go.useLanguageServer": true,
"window.zoomLevel": -1,
}
Describe the bug
I have a module built by go plugin. And I want to load the plugin in my main module, and debug the main code in vscode using go extension.
However, I can always see below error when it goes to the line to load the plugin using plugin.Open():
plugin.Open("/path/to/my/plugin"): plugin was built with a different version of package runtime/internal/sys
While, if I build and run the code outside vscode on the same machine, it works w/o any problem.
As I know, usually, go plugin load failure like this is caused by plugin and main code using different golang release, GOPATH, etc. However, I've checked that they are all the same.
Does vscode-go support debug go code using go plugin? Any idea of how to troubleshoot this issue?