Search found 2228 matches

by chennes
Sun Aug 14, 2022 9:46 pm
Forum: Developers corner
Topic: Help with git for testing Addon Manager
Replies: 20
Views: 734

Re: Help with git for testing Addon Manager

OK, it turns out it's something strange with GitPython -- when I let the library do the checkout I am ending up with a repo that does not respond as expected. But if I check out by hand everything works fine, using the same underlying version of Git. I'm a little frustrated by GitPython right now --...
by chennes
Fri Aug 12, 2022 1:27 pm
Forum: Developers corner
Topic: Calling python.exe using asyncio
Replies: 3
Views: 262

Re: Calling python.exe using asyncio

Thanks both of you for the pointers. @ickby do you think I should just put the subprocess call into a dedicated QThread instead? I have had some difficulties getting those to die gracefully on Linux.
by chennes
Thu Aug 11, 2022 9:04 pm
Forum: Help on using FreeCAD
Topic: Need Help with Preference Pack
Replies: 13
Views: 741

Re: Need Help with Preference Pack

Are you self-compiled? I have one thing to try, but it will require a source code modification.
by chennes
Thu Aug 11, 2022 8:38 pm
Forum: Developers corner
Topic: Calling python.exe using asyncio
Replies: 3
Views: 262

Calling python.exe using asyncio

The Addon Manager uses pip to automatically install dependencies, and a couple of weeks ago I also added some new code to use pip to check for available updates to those dependencies. Everything worked fine, I used subprocess.run to launch python -m pip and everything seemed fine. But that's a block...
by chennes
Thu Aug 11, 2022 6:02 pm
Forum: Open discussion
Topic: [Bug] Add-ons manager stops.
Replies: 24
Views: 941

Re: [Bug] Add-ons manager stops.

I'm guessing that it's the pip update check code that's locking up, although it's not running on the GUI thread so I'm surprised the "X" doesn't work to close the window. I will try to poke at it when I have a chance.
by chennes
Thu Aug 11, 2022 2:51 pm
Forum: Open discussion
Topic: [Bug] Add-ons manager stops.
Replies: 24
Views: 941

Re: [Bug] Add-ons manager stops.

So you are now back to being unable to close that window? Did this just start in the last couple of weeks? I've added some code that tries to check installed Python packages for available updates using pip, so maybe there is something going wrong there.
by chennes
Wed Aug 10, 2022 5:24 pm
Forum: Developers corner
Topic: Help with git for testing Addon Manager
Replies: 20
Views: 734

Re: Help with git for testing Addon Manager

Code: Select all

* master
So maybe this is just something like a really old checkout, or I've broken it, or something
by chennes
Wed Aug 10, 2022 5:06 pm
Forum: Developers corner
Topic: Help with git for testing Addon Manager
Replies: 20
Views: 734

Re: Help with git for testing Addon Manager

adrianinsaval wrote: Wed Aug 10, 2022 3:30 pm

Code: Select all

git status -sb --porcelain
this could be easier to parse, here it gives:
## master...origin/master [behind 6]
It works beautifully on my Windows machine, but on the Mac I just get "##master" -- I wonder if there's something wrong with git version 2.32.1 (Apple Git-133).
by chennes
Wed Aug 10, 2022 3:46 pm
Forum: Developers corner
Topic: Help with git for testing Addon Manager
Replies: 20
Views: 734

Re: Help with git for testing Addon Manager

Maybe, I am running 2.32.1 on Mac OS. I just tested on Windows with 2.29.2 and the normal "get status" gives me your results. Adding "--porcelain" still gives nothing, which is unfortunate, and I'm a little concerned about the inconsistency.
by chennes
Wed Aug 10, 2022 3:06 pm
Forum: Developers corner
Topic: Help with git for testing Addon Manager
Replies: 20
Views: 734

Re: Help with git for testing Addon Manager

The Addon Manager doesn't do any configuration beyond just doing a plain "git clone", so that's what I've got.