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

fix setup tools deprecation pkg_resource warning manging Jedi/Emacs communication #372

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

plandes
Copy link

@plandes plandes commented Dec 2, 2023

After installing Python 11 and installing the latest setup tools, Emacs JEDI stopped working because a warning message mangled the JEDI/Emacs communication.

The setuptools under version 69.0.2 has deprecated the pkg_resources module and produces this warning when loading jediepcserver.py:

DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

This pull request simply adds a warning ignore to suppress it matching on the category and error message. Per the URL given, it will need to be replaced with importlib at some point, but this at least this fixes it for the short term.

@plandes
Copy link
Author

plandes commented Dec 2, 2023

The maintainer of jedi responded and mentioned the aforementioned sys_path was taken out and replaced with the jedi.Project API instead in this issue.

Would creating a pull request that makes these changes be helpful?

Thanks in advance
-Paul

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

Successfully merging this pull request may close these issues.

1 participant