pipelined / vst2

Build vst2 plugins and hosts with Go
MIT License
135 stars 17 forks source link

lsp attribute reading #60

Open kendfss opened 2 years ago

kendfss commented 2 years ago

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 commented 2 years ago

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.