mikeoliphant / neural-amp-modeler-lv2

Neural Amp Modeler LV2 plugin implementation
GNU General Public License v3.0
229 stars 28 forks source link

warning: Writing ambiguous atom:Path literal. #58

Closed brummer10 closed 9 months ago

brummer10 commented 9 months ago

When neural-amp-modeler receive a patchGet message it sends write_current_path() without check if there is a patch loaded or not, that result, in case no patch is loaded in a empty path message. jalv.gtk-d response with a warning

warning: Relative path but base is not a file URI.
warning: Writing ambiguous atom:Path literal.

a simple check if currentModelPath.empty() before response could avoid that.

This warning appears on any startup with empty path, regardless if a custom UI ask for the path or not.

mikeoliphant commented 9 months ago

Not sure why an empty path isn't valid. How else would you let the host know that there isn't a model loaded?

brummer10 commented 9 months ago

Just did a quick test, and indeed hosts seems to expect a empty path in order to know that no model is loaded, otherwise they assume that the last pathSet message was successful. So it seems it's jalv here to blame for print a warning for a valid message.

mikeoliphant commented 9 months ago

With LV2 it seems like it is often hard to know what is "correct" - both hosts and plugins seem to mostly just be trying to do what the other expects as best they can...