SkyLeach / pudb.vim

Integrate the awesome PUDB debugger with NeoVim
MIT License
84 stars 10 forks source link

Apparent race condition with autocmd and CLI arguments #1

Open SkyLeach opened 6 years ago

SkyLeach commented 6 years ago

It seems when a file is passed to neovim as a CLI argument and all of these conditions are true there may be a problem with rplugins: 1.) the file is python, 2.) the file has breakpoints registered with pudb.

example: nvim ./test/test_templates.py

results :messages

"test/test_templates.py" 136L, 3937C Error detected while processing function remote#define#request:
line    2:
no request handler registered for "/Users/magregor/src/pudb.vim/rplugin/python3/vim_pudb.py:autocmd:BufReadPost:*.py"

This error doesn't prevent the plugin from working after the first load.

numirias commented 6 years ago

I'm right now tackling a similar obscure race condition in a different plugin (numirias/semshi#11). We have a ticket at neovim/python-client#341. If you think this may have the same root cause and you got some additional information, feel free to chime in over there.