Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Does vscode-go support debug go code using go plugin? #3048

@morningspace

Description

@morningspace

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
    • 1.42.0
  • Check your installed extensions to get the version of the VS Code Go extension
    • 0.13.0
  • Run go env GOOS GOARCH to get the operating system and processor arhcitecture details
    • darwin
    • amd64

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions