Addon Manager Redesign 2021

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

uwestoehr wrote: Fri Apr 08, 2022 2:45 pm just that something in AeroFoil needs to be fixed.
Right, I am just explaining why the perfectly valid Python there is not actually valid for the AM. Since the problem is here:
https://raw.githubusercontent.com/melwy ... il.FCMacro

I believe we really need to ping @melwynfranciscarlo
melwynfranciscarlo wrote: pinged by pinger macro
ETA: I've submitted a PR to that repo. https://github.com/melwyncarlo/AeroFoil/pull/1
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

TheMarkster wrote: Fri Apr 08, 2022 3:40 pm In the update report can the new versions be displayed? Is it possible an update can be applied from cache and not be the very latest?
What do you mean by "the update report"? And no, updates can't be done from the cache, the cache only stores the metadata and icon files, not the whole git repo.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Addon Manager Redesign 2021

Post by TheMarkster »

chennes wrote: Fri Apr 08, 2022 4:07 pm
TheMarkster wrote: Fri Apr 08, 2022 3:40 pm In the update report can the new versions be displayed? Is it possible an update can be applied from cache and not be the very latest?
What do you mean by "the update report"? And no, updates can't be done from the cache, the cache only stores the metadata and icon files, not the whole git repo.
After an update a window pops up with the title "Update report".

https://github.com/FreeCAD/FreeCAD/blob ... r.py#L1430

It displays in a message box the addons that were updated. I would like to see something like:

Parametric_Curve_FP (2022.04.04.rev2)
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

TheMarkster wrote: Fri Apr 08, 2022 4:13 pm I would like to see something like:
Parametric_Curve_FP (2022.04.04.rev2)
Yes, that would be a very simple change. I'll make it as soon as we're out of feature freeze.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
kisolre
Veteran
Posts: 4164
Joined: Wed Nov 21, 2018 1:13 pm

Re: Addon Manager Redesign 2021

Post by kisolre »

While trying to update macro CenterOfMass I got an error but no useful info was logged in Report View. I had to enter the macro info page and try the update from there to see the error message:
.
MacroInstallError.JPG
MacroInstallError.JPG (31.74 KiB) Viewed 1663 times
.
Which of course would not succeed.
There were some WB updated and two macros (one failed) and the only output to Report view was this:

Code: Select all

12:50:56  Macro Editor Assistant was installed successfully.
12:50:56  Macro Editor Assistant was installed successfully.

I have everything checked in the Output window preferences page.

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.28663 (Git)
Build type: Release
Branch: master
Hash: 539a6bf58d9c500ca1310c7d52e6fd351ccebda9
Python 3.8.8, Qt 5.15.2, Coin 4.0.1, OCC 7.5.3
Locale: Bulgarian/Bulgaria (bg_BG)
Installed mods: 
  * 3DfindIT 1.2.0
  * A2plus 0.4.55b
  * AirPlaneDesign 0.4.0
  * ArchTextures
  * Assembly3 0.11.3
  * Assembly4 0.11.10
  * BIM 2021.12.0
  * BOLTSFC
  * CfdOF 1.14.0
  * CubeMenu
  * CurvedShapes 1.0.1
  * Curves 0.3.0
  * CycloidGearBox
  * Defeaturing
  * Design456
  * DesignSPHysics 0.6.1-2201-31-01
  * dodo
  * DynamicData 2.46.0
  * ExplodedAssembly
  * fasteners 0.3.40
  * FCGear 1.0.0
  * FCPDWorkbench 0.2.0
  * FEM_FrontISTR 0.1.0
  * frame
  * freecad.xray
  * FreeCAD_ExtMan
  * FreeCAD_mcm_addon
  * Help 1.0.0-alpha
  * InvGears 0.1.2
  * kicadStepUpMod 10.11.9
  * lattice2 1.0.0
  * Launcher
  * Manipulator 1.4.3
  * Mechatronic
  * MeshRemodel 1.8919.0
  * MnesarcoUtils
  * Nikra-DAP
  * nurbs
  * OpticsWorkbench 1.0.8
  * ose-piping
  * parts_library
  * PlacementTools
  * Plot
  * Pyramids-and-Polyhedrons
  * Reinforcement
  * Render 2022.1.0
  * Rocket 2.3.0
  * SearchBar 1.0.1
  * SelectorToolbar
  * sheetmetal 0.2.49
  * Ship
  * Silk
  * SlopedPlanesMacro
  * StemfieWB
  * symbols_library
  * ThreadProfile 1.81.0
  * toSketch
  * workfeature
  * workfeature-macro
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

Thanks for the report -- I'll add some more verbose failure messaging to the report view. I also thought I'd written the workaround code for Macros that tried to specify an absolute path to their icon, and apparently that's not working right.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

kisolre wrote: Sat Apr 09, 2022 10:07 am While trying to update macro CenterOfMass I got an error but no useful info was logged in Report View.
I've improved the output, and fixed the actual underlying Addon Manager error (though not the error with the macro, which contains bad metadata). It should install now, sans icon. git commit 0e40b9956
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Addon Manager Redesign 2021

Post by TheMarkster »

I recently (2 days ago) updated DynamicData to 2.46. On my computer it shows the correct version, but the addon manager still shows 2.45 (until I refresh local cache). Is it possible to refresh only that part of the local cache when an update is done?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Addon Manager Redesign 2021

Post by Kunda1 »

Yea, delta update of cache would be sweet!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
chennes
Veteran
Posts: 3884
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Addon Manager Redesign 2021

Post by chennes »

TheMarkster wrote: Sun Apr 10, 2022 4:00 pm Is it possible to refresh only that part of the local cache when an update is done?
Not yet, but much more sophisticated cache downloading and updating is coming soon, once we are out of the feature freeze.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply