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

lsp attribute reading #60

Open
kendfss opened this issue Sep 8, 2022 · 1 comment
Open

lsp attribute reading #60

kendfss opened this issue Sep 8, 2022 · 1 comment

Comments

@kendfss
Copy link

kendfss commented Sep 8, 2022

When working with a language server for go I encounter the following errors

error   PluginAllocator not declared by package vst2
error   Dispatcher not declared by package vst2
error   unknown field UniqueID in struct (vst2.Plugin) literal
error   unknown field Version in struct (vst2.Plugin) literal
error   unknown field InputChannels in struct (vst2.Plugin) literal
error   unknown field OutputChannels in struct (vst2.Plugin) literal
error   unknown field Name in struct (vst2.Plugin) literal
error   unknown field Vendor in struct (vst2.Plugin) literal
error   unknown field Category in struct (vst2.Plugin) literal
error   unknown field Parameters in struct (vst2.Plugin) literal
error   unknown field ProcessDoubleFunc in struct (vst2.Plugin) literal
error   unknown field ProcessFloatFunc in struct (vst2.Plugin) literal

Can anything be changed in the implementation to address these issues or is this sworn to be another issue of "cgo is not go"?
If the former, I don't know C or CGo, but I'd be happy to learn if you've got any good places to start on the issue
Cheers.

@dudk
Copy link
Member

dudk commented Sep 12, 2022

Hello @kendfss! This package is using go's build tags to separate VST plugin and host APIs. The types you've mentioned require plugin build tag. LMK if it helps.

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

2 participants