Skip to content
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

Shipping the plugin executable generates unintuitive error messages #6

Open
bearbin opened this issue Aug 20, 2019 · 0 comments
Open

Comments

@bearbin
Copy link

bearbin commented Aug 20, 2019

Currently, the plugin directory contains an executable file plugin (the compiled form of plugin.go). If a user attempts to use this code without recompiling plugin, a rather unintuitive error message is provided, of the form:

Error: generating file for table TableName: failed to run contents template: template: gnorm_templates/table.gotmpl:188:19: executing "gnorm_templates/table.gotmpl" at <plugin "plugin" "insertCols" .Table.Columns>: error calling plugin: error running plugin "": : fork/exec gnorm_templates/plugin/plugin: exec format error

If only the source is shipped instead of the binary then a more sane no such file or directory error will be generated. If the README contained instructions about having to build the plugins before using the code it would be even better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant