jsr223.log reports errors running a script like this:
Failed to execute rule '747f6553-7ef1-4ff4-bdbc-0a085443d8df': Fail to execute action: 1
My current modus operandi is to open paperUi/rules section and then search for that id which is somewhat frustrating. Is there a way to get the name of a failing rule listed along with the id?
or a command line query to get the name from the rule registry?
TIA
There is a feature request from a long time ago requesting this. I half implemented it before the ESH reintegration and build system change, which screwed up several of my development environments, including the one with those changes. The local repos are still there, so it shouldn’t be lost. I expect that some day this will get merged in.
Until then, you can get the name of the rule by searching for the UID in Paper UI> Rules. This could also be done in a script…
rule_name = [rule for rule in rules.getAll() if rule.UID == "747f6553-7ef1-4ff4-bdbc-0a085443d8df"][0].name
Edit: Here is the feature request, which has not been copied over from the ESH repo…
so, answering my own question thanks to your input, here is the bash one-liner, wrapped into a script for easy insertion of the parameter, which returns the name of a rule by it’s id:
your line of code looks elegant but I failed to understand how to implement it.
And ‘directly’ is a relative measure. I see the error message in a tab of konsole (KDE) and have a bash script that allows me to find the script name right there with