vst2 icon indicating copy to clipboard operation
vst2 copied to clipboard

lsp attribute reading

Open kendfss opened this issue 2 years ago • 1 comments

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.

kendfss avatar Sep 08 '22 23:09 kendfss

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.

dudk avatar Sep 12 '22 07:09 dudk