Skip to content
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

Add support for Python 3.12 #53

Closed
shivaypiece opened this issue Aug 30, 2024 · 0 comments · Fixed by #93
Closed

Add support for Python 3.12 #53

shivaypiece opened this issue Aug 30, 2024 · 0 comments · Fixed by #93
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@shivaypiece
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants