Addon Manager improvements
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Addon Manager improvements
Starting a topic to announce, well, Addon Manager improvements...
You can now restart FreeCAD directly from the addons manager, after installing a workbench/module.
You can now restart FreeCAD directly from the addons manager, after installing a workbench/module.
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Addon Manager improvements
This trick will speed up developement too.
Re: Addon Manager improvements
Edit: Shouldn't you include revision number where the feature was introduced to avoid confusion if it is available on existing builds?
I am not sure how those 16808 number are called but shouldn't you include that to avoid "It is not here yet" confusions? Just asking...
I am not sure how those 16808 number are called but shouldn't you include that to avoid "It is not here yet" confusions? Just asking...
Last edited by kisolre on Tue May 21, 2019 8:26 pm, edited 2 times in total.
Re: Addon Manager improvements
If it's the number as in 0.19.16808, then it's the revision number.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Addon Manager improvements
YES!
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
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
Re: Addon Manager improvements
… I just have downloaded
FC 19.16817_x86 on Win10_32
and it doesn't work at all ?????
FC 19.16817_x86 on Win10_32
and it doesn't work at all ?????
Code: Select all
Running the Python command 'Std_AddonMgr' failed:
Traceback (most recent call last):
File "C:\FC.19\FreeCAD_0.19.16817_x86_LP_11.11_PY2QT4-WinVS2013\Mod\AddonManager\AddonManagerGui.py", line 10, in Activated
import AddonManager
('invalid syntax', ('C:\\FC.19\\FreeCAD_0.19.16817_x86_LP_11.11_PY2QT4-WinVS2013\\Mod\\AddonManager\\AddonManager.py', 306, 28, ' ret = m.exec()\n'))
Re: Addon Manager improvements
Try changing line 306 in AddonManager.py from:hammax wrote: ↑Wed May 22, 2019 6:03 am … I just have downloaded
FC 19.16817_x86 on Win10_32
and it doesn't work at all ?????Code: Select all
Running the Python command 'Std_AddonMgr' failed: Traceback (most recent call last): File "C:\FC.19\FreeCAD_0.19.16817_x86_LP_11.11_PY2QT4-WinVS2013\Mod\AddonManager\AddonManagerGui.py", line 10, in Activated import AddonManager ('invalid syntax', ('C:\\FC.19\\FreeCAD_0.19.16817_x86_LP_11.11_PY2QT4-WinVS2013\\Mod\\AddonManager\\AddonManager.py', 306, 28, ' ret = m.exec()\n'))
Code: Select all
ret = m.exec()
Code: Select all
ret = m.exec_()
Re: Addon Manager improvements
One risky issue:
If you have started a new design or you have modified one, and then you run the Addon Manager, clicking OK to restart FreeCAD will skip the check to Save your work, before restarting FreeCAD. Any changes will be lost without even a rescue option.
(tested with FreeCAD_0.19.16817_x64_LP_12.1.2_PY3QT5-WinVS2015)
Re: Addon Manager improvements
exec is a built-in function in Py3 but seems to be a keyword in Py2. So, using it to show a QDialog works with Py3 but raises a syntax error in Py2. Although Py3 is now the default Python version since v0.19 I think it would still be good to make it working with Py2.FC 19.16817_x86 on Win10_32
and it doesn't work at all ?????
It's not only risky wrt data loss but it also makes the application crash. I created a document and added a body feature and after installing a plugin I confirmed to restart FreeCAD. The new instance started but the old instance caused a crash.One risky issue:
If you have started a new design or you have modified one, and then you run the Addon Manager, clicking OK to restart FreeCAD will skip the check to Save your work, before restarting FreeCAD. Any changes will be lost without even a rescue option.
(tested with FreeCAD_0.19.16817_x64_LP_12.1.2_PY3QT5-WinVS2015)
So, instead of forcing the event loop to stop (using QApplication.quit()) it's safer to use MainWindow.close().
Code: Select all
if Gui.getMainWindow().close():
QtCore.QProcess.startDetached(QtGui.QApplication.applicationFilePath(),args)
Another thing:
If you open the Addonmanager then it shows a green check mark for all installed plugins and in parentheses it shows "Installed". But when installing a new one then all check marks suddenly disappear. Furthermore it would be good to give a visual feedback after installing a new plugin, e.g. showing an orange check mark and in parentheses write "Restart" or "Require restart".
Re: Addon Manager improvements
All suggested changes done in git commit 73c1a9c9a!
Thanks for the feedback guys!
Thanks for the feedback guys!