(Gramps 5.1.4-2 on Mac)
I’ve often noticed that add-on filter rules appear multiple times in the filter editor. What causes this? How can I avoid it or fix it?
(Gramps 5.1.4-2 on Mac)
I’ve often noticed that add-on filter rules appear multiple times in the filter editor. What causes this? How can I avoid it or fix it?
Could be multiple folders with different addon versions of the filter rules? Maybe caused by manual installation?
I just restarted Gramps and now I see only three instead of five. But I have only one file “matrilinealprogenitrix.gpr.py” anywhere on my computer.
You could use the built-in Plugin Manager or the Plugin Manager Enhanced addon to seach for the addon/files. Do they also show duplicate entries? The Info button shows the filepath and addon version.
It shows only one entry in the plugin manager for that particular example.
For another one, which currently shows up six times in the filter editor, there are two entries in the plugin manager, and the info for both is the same (same release, same folder, same filename).
I guess I can just delete and reinstall them, but I’m curious to learn how it happened so that I can avoid it in the future.
Did we ever arrive at a definitive cause and cure for this because now it is happening to me under 6.0.1 ?
I have noticed it too. I close Gramps, then move (not delete) the Filter folders from the Plugins directory to my desktop. Restart Gramps. Then close Gramps. Put the filter folders back in the plugins directory. When Gramps is started again, the filters are reset.
But check. If you have any custom filter that uses any of these rules, they may be out of sorts and need to be reset. Fortunately, the only rule I have in my standard set of filters is the Active Person rule.
If you do not have SuperTool or FilterParams installed, do the Rules also show?
6.0 integrated the Filter+ gramplet’s scraper. All 3 of those items have some interesting added Rules support. I wonder if @kku might have some ideas about multiple listings of addon Rules?
I do have FilterParams installed and they do show (when I try to add a new rule) there as well with the same number of duplicates as in the core app.
SuperTool is also installed but I cannot determine where to check for the filters within it since I have not yet ‘climbed that hill’. No need to dig into it so I have not used it yet.
Thanks for any help in this matter since I am busy with surgical tree pruning/merging with the help of custom filters. It is while doing this today that I noticed the anomaly.
brian
It seems that at least the Reload function in “Plugin Manager Enhanced” will create duplicate entries in the rule list.
In Linux the Reload button appears only if Gramps is run in debug mode. For some reason in Windows the debug mode seems to be the default!?
@kku
Thanks for looking into this. While the bug solving processes are taking place is there a verdict on how to proceed if one has this problem.
brian
I believe that all copies behave correctly. They are just copies of the same rule.
Restarting Gramps works for me as a workaround. I don’t have an explanation if there are duplicate rules after restarting.
a bug report has been started. However, a repeatable workflow that exhibits the problem has not been isolated:
@prculley has posted a PR2065 to the gramps/gen/plug/ _manager.py
file to check for an addon rule before appending it to the list.
Please verify that this patch fixes the duplicated Rule listing problem for your system and post your results.
Yes. It fixed the problem nicely. It prevented any new additions to the list of available addon filter rule when I ‘Refresh’ the list and it also (as a bonus!) deleted all existing duplicates in the available addon filter rule list.
Thank you very much.
brian
@prculley
Nice work and thanks!