AddonManager never goes further “Checking connection”
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start in NetworkManager.py at the reply.finished connection near line 256 and __reply_finished near lines 547-550. Inspect the other reply-handling sites in that file for the same PySide6 behavior, then exercise the AddonManager connection check. Done means the check proceeds past “Checking connection” and completed replies still trigger their data handling and notifications.
Written by the indexing model from the issue text.
Description
Here reply is always None, rendering the function useless. That's a known peculiarity of PySide6.
As a workaround against that, I suggest changing
https://github.com/FreeCAD/AddonManager/blob/a38c8f003e8131bb7588313374abb4ccb26da9e9/NetworkManager.py#L256
to
reply.finished.connect(lambda r=reply: self.__reply_finished(r))
def __reply_finished(self, reply: QtNetwork.QNetworkReply | None = None) -> None:
"""Called when a reply has been completed: this makes sure the data has been read and
any notifications have been called."""
if reply is None:
reply = self.sender()
to maintain the compatibility with calls I might've missed. I find the solution dirty, but it works.
There are many more places like this, even in the file. That's the reason I make the issue, not a PR.
FreeCAD Info:
OS: Manjaro Linux (KDE/plasma/wayland)
Architecture: x86_64
Version: 1.0.2.39319 (Git)
Build type: Release
Branch: makepkg
Hash: 256fc7eff3379911ab5daf88e10182c509aa8052
Python 3.13.7, Qt 6.10.1, Coin 4.0.5, Vtk 9.5.2, OCC 7.9.2
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/FreeCAD Dark/
Installed mods:
CADExchangerfasteners-backup-before-zip-migration0.5.33 (Disabled) ← this proves the changes work well!fasteners0.5.43pcb6.2023.1manifest.json
- Dominant language
- Python
- Stars
- 24
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from FreeCAD/AddonManager
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
FreeCAD/AddonManager#534 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
FreeCAD/AddonManager#532 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 22/100
FreeCAD/AddonManager#529 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
FreeCAD/AddonManager#528 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
FreeCAD/AddonManager#527 · 1 comment ·
All issues in FreeCAD/AddonManager
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
hugohe3/ppt-master#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 89/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
521xueweihan/HelloGitHub#4716 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
pcqpcq/open-source-android-apps#619 ·
Maintainers usually reply within 1 day
-
contribution Windows 主机
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Lee-xeo/Claude-Cage#1519 ·
Maintainers usually reply within 1 day