-
Notifications
You must be signed in to change notification settings - Fork 89
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
deffered error : (error "\"AssertionError()\"") #332
Comments
So, I finally got it to work! I downgraded Jedi to version 0.11.0 inside of the environment.
Jedi:show-setup-info in working condition:
|
I have the same issue. For me, this typically starts (in Hopefully that's a hint! |
I'll try to reproduce it locally right now, but would be very nice if someone could provide some repro steps. |
FStringStart thing is related to parso: https://github.com/davidhalter/parso/search?q=FStringStart&unscoped_q=FStringStart and could be related to the recent update in Jedi: davidhalter/jedi#1063 (comment) that mentioned a parso upgrade. Did any of you upgrade jedi, emacs-jedi or parso recently? |
I haven't upgraded anything individually. I just installed whatever is in my init.el file through MELPA, as well as the modules that "jedi:install-server" will automatically add to the python environment. But what turned out solving it for me, was to downgrade to Jedi 0.11.0 in the python environment that Jedi is using (~/.emacs.d/.python-environment/default). Here is my init.el file. This is how I did it, unnecessary steps and all:
I tried re-installing the Jedi server multiple times to no avail. Again, what solved it for me was to uninstall the current Jedi python module (0.13.2) and install Jedi version 0.11.0 instead (inside of the default python environment "~/.emacs.d/.python-environments/default"). And boom, the Jedi completion works flawlessly! No matter how big the file is. It's been working without any issues whatsoever the entire day after I downgraded the Jedi python module inside of the environment. |
Yes. I have a script that reinstalls all my packages that I run once a week or so, so I've upgraded everything a couple of days ago. $ ~/.emacs.d/.python-environments/default/bin/pip freeze
epc==0.0.5
jedi==0.13.2
jediepcserver==0.2.7
parso==0.3.2
sexpdata==0.0.3
tzlocal==1.5.1 I'll try doing a |
λ .emacs.d\.python-environments\default\Scripts\activate.bat
λ (default) pip freeze
epc==0.0.5
jedi==0.11.0
jediepcserver==0.2.7
parso==0.1.0
sexpdata==0.0.3 Jedi works fine for me now, and these are the packages in use. |
If downgrading helps, the problem is clearly with the new version of jedi/parso. But I still have hard time reproducing it. Could you try adding
to the config and check the |
The "FStringStart"-related error appears to be a common thing among different Jedi "frontends": |
SOLVED - Look at the comment down below on how I managed to "fix" my issue.
OS: Windows 10 Pro (Version: 1809, OS Build 17763.292)
Python version: 3.6.7
Emacs version: 26.1
Jedi PIP version: 0.2.7
Jedi MELPA version: 0.13.2
I'm having some oddities with Jedi where when I'm inside a python file (this one in particular has around 200 lines of code), Jedi will give me the completion box/menu after dots, but only in the first lines. When I go to around line 180, all of a sudden the completion/suggestion menu won't appear after dot. That is when I get
deffered error : (error "\"AssertionError()\"")
.So basically, around line 1-50, I get the completion menu with all kinds of suggestions (that I haven't even used in the file). But around line 180 no menu pops up, and that's where I get the AssertionError.
I pulled up the epc buffer and it just keeps telling me:
ERROR:epc:AssertionError()
.Example in the beginning of the file where it works:
https://i.imgur.com/q2Oohd7.png
Example further down in the file where it doesn't work:
https://i.imgur.com/Frqw2kQ.png
I have tried re-installing the jedi-server to no avail. It gives the same exact results.
I am really new to emacs, so I'm obviously doing something wrong here.
Here is my init.el file, for reference:
https://pastebin.com/bF3svCkw
Here is the jedi setup info (jedi:show-setup-info):
I'm sorry if I forgot some important information. If needed I'll update as fast as possible.
The text was updated successfully, but these errors were encountered: