swyddfa / esbonio

A language server for working with Sphinx projects.
https://docs.esbon.io/
131 stars 21 forks source link

Preview server fails to start on MacOS #341

Closed alcarney closed 2 years ago

alcarney commented 2 years ago

Unable to start the multiprocessing.Process for the server as it fails with an error along the lines of Unable to pickle object _thread.lock

skycaptain commented 2 years ago

The same or similar issue happens still on MacOS:

[esbonio.lsp] Starting preview server.
Failed to handle request 4 workspace/executeCommand work_done_token=None command='esbonio.server.preview' arguments=[CommandParams(show=False)]
Traceback (most recent call last):
 ...
    ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle '_thread.lock' object
alcarney commented 2 years ago

That's annoying! Hopefully the same fix for Windows will work on MacOS...