This is on Gramps 5.2.2 but it would probably be the same for Gramps 6
I just tried the update (0.1.67 to 0.1.70) button for 1 of the FTV addons in the Addon Manager
(Project URL: https://raw.githubusercontent.com/ztlxltl/FamilyTreeView/dist/gramps52)
All 5 seem to be linked somehow and a single update-click updated all 5 and then threw the following error 3 times:
88314124: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
File "/home/districtsupport/.local/lib/python3.11/site-packages/gramps/gui/widgets/styledtexteditor.py", line 698, in __set_fallback_icons
icon = tool_button.get_child().get_child()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get_child'
Meanwhile on Windows (AIO 5.2.4) I’ve never had any errors when updating FTV. I just click on the update button for FTV, not on any of the associated addons, and everything updates at the same time.
The repository folder for the FTV addons-en.json is browsable but in a different branch (dist) from the source code (main). So to diagnose odd behavior in the Addon Manager which might be related to the list, we need to look at the /dist/gramps52/listings/
Although everyone describes this problem in the context of my addon, I believe this is a bug in the Addon Manager and is only noticed for my addon due to the frequent updates. I think the reason is that there are multiple plugins registered in a single directory. (I’m not sure if this problem would disappear if they were all registered in a single .gpr.py file, but I don’t think so.)
I strongly believe that registering multiple plugins in one addon directory is not much of a problem. In the Gramps addons-source repo, there are multiple directories with multiple .gpr.py files (e.g. FilterRules, FilterRules2, D3Charts, DNA).
I haven’t checked the bug tracker to see if this bug of the addon manager is already discussed there, but @emyoulation said that there are several known issues with the addon manager.
@Nick-Hall
Do the FTV addons need to be separated into separate folders (and separate .tgz files) for the Update button in Addon Manager to work without conflicts? Or does the Addon Manager need to be improved for Suites of Addons. (Like the 2 Rules expansion Packs)?
Putting multiple addons into a single folder shouldn’t cause a problem. We have been doing this for many years now. It may even have a benefit if consistent versions are required.
The side effect is that all addons in the folder will be installed or updated at once.
I’ll look into the styled text editor error. It appears that it is being run without its toolbar buttons.