-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Fix #790: preview server - Uses Thread instead of Process for Linux #837
Conversation
677a3cd
to
1453956
Compare
for more information, see https://pre-commit.ci
(sorry for the force push, the commit had not the correct author) |
Tested successfully on Ubuntu 24.04 with Python 3.12.3 (for the Thread part) and on Windows 11 with Python 3.12.6 (for the old Process part) I'm open to any feedback |
Awesome, thanks for this! I've only taken a quick glance, but it looks good to me so far. I'll try and have a proper look over the next week or so :) |
Ok, I've resurrected the ci pipelines for the However, having re-read #790 I noticed that the issue was originally reported on MacOS - could you tweak this PR so that a While you're at it could you also add a changelog entry in a file |
Good news !
Oh yeah you're right, I didn't pay attention to that, it's hard to understand what environments are affected !
I will add it. Thanks for your explanations ! |
@alcarney The main part is done, but I have a question :
Since I use a Thread now, I have just removed it, but I don't want to make any mistakes here ! Btw, as before, I tested and it worked on Ubuntu 24.04 with Python 3.12.3 and on Windows 11 with Python 3.12.6. |
I don't remember the exact details, but in order to share objects with a Now that we're using a Thread that's no longer necessary :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for working on this - looks good to me! :)
Workaround to fix Preview of rst files not working #790.
To limit any retrocompatibility issues, a Thread is used (instead of the current Process) only if we are on Linux.