-
Notifications
You must be signed in to change notification settings - Fork 82
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
Occasional exception: ValueError: Invalid file descriptor: -1 #57
Comments
Repro steps? I'm not even sure if the problem stems from neovim-remote, python-client or even asyncio.. hmm. |
I can't reproduce it, but it would be interesting to know if it still happens with the latest neovim-remote v1.8.4. That version double-checks if a given Unix domain is valid by trying to connect to it first and using a temporary socket should that fail. |
Since there's nothing I can do about this without further information, I'm closing this. Please reopen if you still think it's an issue in neovim-remote. |
I get similar exception sometimes in the following case: def sample_task(self, name: str, payload: dict):
loop = asyncio.new_event_loop()
coro = asyncio.sleep(1.0, loop=loop)
result = loop.run_until_complete(coro)
# loop.close() # uncomment this line to avoid edge case with __del__
return result Looks like a kind of edge case with Note the line |
I don't use asyncio directly, python-client does. Do you use the latest version of python-client? It should been fixed as of neovim/pynvim#303, but maybe we missed a case. |
@mhinz I didn't use |
The text was updated successfully, but these errors were encountered: