Skip to content

plugin was built with a different version of package internal #3116

Open
@JCzz

Description

@JCzz

Hi there

I am compiling golang plugin from code, and then read in the plugin again - for reading in code dynamic.

This works great from the terminal, but the problem is that when reading in the plugin using vscode debugger, the build flags are not the same as when I build the plugin.

Example:

  1. I build using: commands := []string{"build", "-buildmode=plugin", "-o", pluginPathSo, pluginPathGo}
  2. Reading in the plugin with plug, err := plugin.Open(path) I get "plugin was built with a different version of package internal"

Problem

I can solve the problem using the same build flags as vscode, when building my plugin, but I dont know what build flags vscode is using?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIssues related to the debugging functionality of the extension.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions