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

autocomplete error #2162

Closed
frozenhole opened this issue Feb 7, 2022 · 6 comments
Closed

autocomplete error #2162

frozenhole opened this issue Feb 7, 2022 · 6 comments
Milestone

Comments

@frozenhole
Copy link

frozenhole commented Feb 7, 2022

Screenshot from 2022-02-07 22-29-55

@aivarannamaa
Copy link
Member

aivarannamaa commented Feb 7, 2022

I suppose you have apt-installed an older version of Thonny which doesn't fit with your current version of jedi.

The solution is to apt remove thonny and install Thonny+Python bundle (bash <(wget -O - https://thonny.org/installer-for-linux)), which has its own private copy of suitable jedi library

@aivarannamaa
Copy link
Member

Thonny 4 has refactored autocompletion so you could try https://github.com/thonny/thonny/releases/tag/v4.0.0b1

@abawer
Copy link

abawer commented Oct 7, 2022

i followed the solution of @aivarannamaa and removed then installed Thonny with the bash linux installer script. Autocomplete now works for me, but after auto-completion, i get the following error IDE error trace

Traceback (most recent call last):
  File "/home/amit/apps/thonny/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
    return self.func(*args)
  File "/home/amit/apps/thonny/lib/python3.10/site-packages/thonny/plugins/autocomplete.py", line 171, in _on_select_item_via_event
    self._check_request_details()
  File "/home/amit/apps/thonny/lib/python3.10/site-packages/thonny/plugins/autocomplete.py", line 174, in _check_request_details
    assert self.winfo_ismapped()
AssertionError

@aivarannamaa
Copy link
Member

@abawer, thanks for the notice. I'll see if I can reproduce this.

@aivarannamaa aivarannamaa added this to the 4.0.2 milestone Oct 7, 2022
@abawer
Copy link

abawer commented Oct 7, 2022

It only happened to me once, right after opening the IDE for the fresh install and trying to autocomplete (ctrl+space) over my code.

@aivarannamaa aivarannamaa modified the milestones: 4.0.2, 4.0.x Jan 14, 2023
@aivarannamaa aivarannamaa modified the milestones: 4.0.x, 4.0.3 Jan 26, 2023
@aivarannamaa
Copy link
Member

I could not reproduce, but changed the code a bit that this error shouldn't happen again.

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

No branches or pull requests

3 participants