[solved] PlugData compiling to patch.init(): abstractions not working

Hi there,
I’m struggeling to get abstractions working on my patch.init(). I made a testpatch with only an [dac~] and one abstraction containing an oscillator. When compiling I get this message:

  1. [91mError [0m pd2hv: in “” @ (x:0, y:0): Don’t know how to parse object “osc_abstraction”. Is it an object supported by Heavy? Is it an abstraction? Have the search paths been correctly configured?
  2. [91mError [0m pd2hv: in “” @ (x:0, y:0): There was an error while connecting two objects. Have all objects been correctly instantiated? Have all inlets and outlets been declared?

Hope anybody can give me a hint, what I’m doing wrong. Thanks!

Do you have the abstraction and your patch saved in the same location?

Yes, I even added that folder to the search path list. No luck.

Objects from the heavy library don’t have this issue. They are abstractions as well if i understand correctly?

Correct, the heavy library gets added to the path. However the local directory always has preference over any additional paths.

If you have a patch main.pd and in the same directory there is a synth_voice.pd that gets loaded as [synth_voice] in the patch, then the compiler should be able to find this.

It should not be necessary to add the local path to the path settings in plugdata, as it is already the first place that the compiler searches.

I’m so perplexed. this is all I’m trying. and it’s not working. either in Windows 11 and on a MacBook.

Sure I must be missing something

btw. it’s the same when I try to compile an audio plugin.

[edit]
it is working, when I put the abstraction in the “plugdata>Abstractions” folder (where the other libraries are stored.

So I’m assuming it’s something about writing permissions? I’ll keep investigating

[edit 2]
in case somebody has the same issue. the problem was a space in the folder path where I saved the abstraction object

Yup I just realized this. We got another user today that had the same issue: can't compile when patch includes abstraction · Issue #2174 · plugdata-team/plugdata · GitHub

Spaces in paths are always annoying and hard to properly escape across all supported systems.

ha ha, that was me :))). Wasn’t sure where was the best place to post this. sorry if it’s redundant. But increases chances for others to find the solution I guess

1 Like