-
Notifications
You must be signed in to change notification settings - Fork 120
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
Output flooded with EventLoop related messages #555
Comments
Questions:
The warning is actually coming from |
|
Hmm if #556 (comment) doesn't fix this, I'll need a repro to help you troubleshoot this issue. At least any traceback information will be needed. Can you try enabling neovim logging? $ export NVIM_PYTHON_LOG_FILE="555.log" NVIM_PYTHON_LOG_LEVEL="debug"
$ python ...<your script>... or override asyncio's warning logger to print the detailed stacktrace information: import functools
import logging
import asyncio.log
formatter = logging.Formatter('[%(levelname)s %(asctime)s] %(filename)s:%(lineno)d %(message)s')
ch = logging.StreamHandler()
ch.setFormatter(formatter)
asyncio.log.logger.addHandler(ch)
asyncio.log.logger.warning = functools.partial(asyncio.log.logger.warning, stack_info=True) BTW, if you'd like to silence the warning you can do something like: import asyncio.log
asyncio.log.logger.setLevel("ERROR") |
Minimal repro: vim = pynvim.attach('child', argv=['nvim', '--embed', '--clean', '-i', 'NONE'])
vim.close()
vim = pynvim.attach('child', argv=['nvim', '--embed', '--clean', '-i', 'NONE'])
vim.close()
# Result
Loop <_UnixSelectorEventLoop running=False closed=True debug=False> that handles pid 1048 is closed |
I have a Python script that is spawning thousands of short lived
nvim
instances.With the latest release of pynvim (i.e.
0.5.0
) the output gets flooded with the following messages:Is there a way to silence these messages ? A workaround, for the time being, is to downgrade to
0.4.3
.Thank you for your time and the new release.
Output of
nvim -V1 -v
The text was updated successfully, but these errors were encountered: