There is a bit of complex interaction of stuff going on here, which TBH I don't totally love. For an action a variable will be created if the auto create variable option is enabled, or it is a relative/toggle action, or if as Enum is enabled and if the module is able to subscribe to the parameter.
Yes, complex, although also very neat/powerful, especially working on the feedbacks too. I was also able to abstract further with expression variables to generate the paths (and expected value variables reading).
More generally Companion will be calling the subscribe callback every time the path value is edited, so while typing it will inevitably be called for several invalid values as the complete path is entered, unless you copy/paste the value. As such several errors in the log as to be expected.
Yeah, I was meaning more the way it doesn't log anything about the path subscription for some reason when it's not a valid path (at that point presumably just db).
@peternewman please let me know how you go with v2.8.1. Packaged build attached to the release.
From initial testing, that's working great thanks! I'll let you know if I find any issues. One minor oddity, which I suspect isn't new, although probably impossible to prove...
Certain edits of the path force a disconnect, e.g. (specifically when Companion/the browser auto-inserts the matching closing ]):
26.03.16 08:04:22 Module: Failed to subscribe to path Ruby.Sources.Tone.Aux Busses.PGM1.Gain Error: Could not find node Gain on given path 1,1,61,5,21
26.03.16 08:04:31 Module: Failed to subscribe to path Ruby.Sources.Tone.Aux Busses.PGM1.Gain[] Error: Could not find node Gain[] on given path 1,1,61,5,21
26.03.16 08:04:31 Module: Status: connecting - Disconnected
26.03.16 08:04:31 Module: Disconnected from 1.2.3.4:9000
26.03.16 08:04:31 Module: Failed to subscribe to path Ruby.Sources.Tone.Aux Busses.PGM1.Gain[] Error: Socket was disconnected
26.03.16 08:04:31 Module: Connected to 1.2.3.4:9000
But also when I delete both square brackets:
26.03.16 08:04:00 Module: Failed to subscribe to path Ruby.Sources.Tone.Aux Busses.PGM1.Gain[ Error: Could not find node Gain[ on given path 1,1,61,5,21
26.03.16 08:04:02 Module: Status: connecting - Disconnected
26.03.16 08:04:02 Module: Disconnected from 1.2.3.4:9000
26.03.16 08:04:02 Module: Connecting to 1.2.3.4:9000
26.03.16 08:04:02 Module: Failed to subscribe to path Ruby.Sources.Tone.Aux Busses.PGM1.Gain Error: Socket was disconnected
26.03.16 08:04:02 Module: Connected to 1.2.3.4:9000
Originally posted by @peternewman in #76