New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin: application complains about missing dll when importing package (Windows 386) #28789
Comments
Please kindly upload the entire code. The current code, will always exit in the first line, not executing anything. |
It is the entire code, system error happens immediately on startup (before os.Exit(0) gets called) when package plugin is imported. |
Issue to track windows plugin implementation is #19282. If windows plugin is not implemented, what is the benefit to be able to import Alex |
My Go application is built for multiple platforms. This bug enforces me to define build constraints like |
Merely importing the |
I don't see a problem with that. Do you have better suggestion?
Alex |
The problem is that it should not be necessary, the plugin package contains 3 files: Both files 'plugin_dlopen.go' and 'plugin_stubs.go' define build constraints. The file 'plugin_stubs.go' is used for unsupported OS's like windows --> plugin.Open(...) should return an error (plugin: not implemented). Michael |
Change https://golang.org/cl/151139 mentions this issue: |
@michael-obermueller please try https://go-review.googlesource.com/c/go/+/151139 Thank you. Alex |
Thank you Alex, your change fixes the problem. Michael |
Reopening for the CL to close this issue. |
Thanks for checking. Now we will wait for https://go-review.googlesource.com/c/go/+/151139 to get submitted. Alex |
What did you do?
go build Main.go
run the application
What did you expect to see?
No error. I know that Go plugins are not supported in windows but it is possible to import package plugin (stub implementation).
What did you see instead?
System Error window: The code execution cannot proceed because .DLL was not found. Reinstalling the program may fix this problem.
Does this issue reproduce with the latest release (go1.11.2)?
yes, reproducible with all releases from 1.8 - 1.11.2
System details
The text was updated successfully, but these errors were encountered: