-
Notifications
You must be signed in to change notification settings - Fork 259
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
Anaconda server crash due to Jedi version #944
Comments
There's a second problem involving virtual environments, where the JSON server doesn't start and results in the connection refused error:
Steps to reproduce
|
Expected Behaviour
Open a python file with ST, Anaconda provides it's features such as docs, autocomplete, and linting
Actual Behaviour
ConnectionRefusedError
is thrownSteps to Reproduce
Fresh install of Fedora 40, install
sublime-text
Set syntax to Python
Write a python script that makes use of other libraries such as:
While writing the last line, the autocomplete should throw an error
ST3, Anaconda and OS versions
ST3 Console Logs
See Troubleshooting section
Anaconda's JsonServer Logs
Note: Anaconda's JsonServer logs can be found in:
See Troubleshooting section
Troubleshooting
TLDR, it seems the Jedi version need to be bumped.
For a while now, Anaconda's server is unable to start up and I get this as part of the error in ST console:
I'm unable to find a detailed message unless I run
jsonserver.py
myself, then I can see more detailed message like stacktrace:After much digging and troubleshooting, I found when I install Jedi via pip, it's the latest version
jedi-0.19.1
and some of the code such asallowed_getattr_callback()
involved in thetoo many values to unpack
has changed. It returns three instead of two.I attempted a crude patch by
rsync
from.venv/lib/python3.12/site-packages/jedi/
to~/.config/sublime-text/Packages/Anaconda/anaconda_lib/jedi/
, and Anaconda appears to be working fine now. I have linting and autocomplete again, and I no longer see errors in my~/.local/share/anaconda/
logs.Edit: I can open a PR, or try checking for other library updates. But how can I test the changes, or who is able to test it? Long time user and happy to contribute a bit to a tool I love.
The text was updated successfully, but these errors were encountered: