[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] /error suppresses /fail replies
:-)
Well, given this is an opportunity to improve let’s agree a sensible behaviour. I think both clients should either send (the same!) /fail messages when errors are suppressed, or there should be an optional flag for that.
S.
> On 11 Jan 2021, at 11:03, christof.ressi@xxxxxx wrote:
>
> It's not the first supernova bug I would have fixed, so don't worry
> about that :-)
>
> On 11.01.2021 11:49, i@xxxxxxxxxxxxxx wrote:
>> Okay, so this turns out to be a bigger mess. Supernova seems not to send /fail messages, and ignores the error suppression. :-/
>>
>>> On 11 Jan 2021, at 10:47, i@xxxxxxxxxxxxxx wrote:
>>>
>>> Hi All,
>>>
>>> Quick query:
>>>
>>> The documentation for /error says "Turn on or off error messages sent to the SuperCollider post window.”
>>>
>>> It does this, but also turns off /fail replies, a behaviour that is not documented. Quick test:
>>>
>>> b = Synth.basicNew(\default, s, 2000)
>>>
>>> OSCFunc.trace(hideStatusMsg: true)
>>>
>>> b.query; // node not found and /fail received
>>>
>>> s.sendBundle(0.1, ['/error', -1], ['/n_query', 2000]) // silence
>>>
>>> ___
>>>
>>> I think the /fail replies are harmless probably, as if you’re not interested, you’re not listening anyway. It could be useful to be able to suppress the posts but still handle fails in other ways, e.g. to implement custom error responses. As another I was just trying to test if a node exists, and wanted to do that without worrying the user with a ‘FAILURE’.
>>>
>>> Would this be worth changing to match the documented behaviour? I don’t imagine anyone is counting on this, since it doesn’t work as it says on the tin.
>>>
>>> Thoughts?
>>>
>>> S.
>>> _______________________________________________
>>> sc-dev mailing list
>>>
>>> info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
>>> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
>>> search: https://listarc.bham.ac.uk/lists/sc-dev/search/
>>
>> _______________________________________________
>> sc-dev mailing list
>>
>> info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
>> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
>> search: https://listarc.bham.ac.uk/lists/sc-dev/search/
>
> _______________________________________________
> sc-dev mailing list
>
> info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
> search: https://listarc.bham.ac.uk/lists/sc-dev/search/
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/