Open
Description
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:
- I build using:
commands := []string{"build", "-buildmode=plugin", "-o", pluginPathSo, pluginPathGo}
- 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?