plugin_neovim
plugin_neovim copied to clipboard
Add support for Python 3.12
If one tries to run the Neovim plugin with Python version 3.12 then they will encounter the following error:
Encountered TypeError
thon:
loading plugin at /Users/judson/-vim/plugged/plugin_neovim/rplugin/python3/pieces_py
ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'
Traceback
(most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pynvim/plugin/host.py", line 193, in _load
module = handle_import(directory, name)
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pynvim/plugin/host.py", line 40, in _handle_import
return importlib.import_module(name)
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'
remote/host: python3 host registered plugins []
remote/host: generated plugin manifest: /Users/judson/.local/share/nvim/rplugin.vim
We should ensure that the plugin is compatible with Python 3.12