Can't get code completion to work
I have installed PyCharm (PyCharm 2023.1.2 (Community Edition)) on a mac.
I have some issues with code completion. I was able to go mapp the "Code/Code Completion/Basic" to a button, and get the popup suggestion, for example when doing
myObj.
I get a list of suggestions as expected, but i can't choose any. I can scroll up or down using the mouse, but no keyboard shortcut allows me to move up or down the suggestion list, and no keyboard command (or mouse-click) allows me to select/insert a suggestion.
Perhaps I'm just not understanding which Editor Actions control the scrolling up/down the list, and which Editor Action inserts the selected item.
Thanks in advance.
Please sign in to leave a comment.
- Some screenshots of the suggestions list where the issue happens
- logs from **Help | Collect Logs and Diagnostic Data** after reproducing the issue
Will do. It works fine in IntelliJ so i'm a bit puzzled about the behaviour. Will log what i can.
Any advice as to which key shortcut should be allowing me to scroll up/down, and select?
Some initial troubleshooting you can try:
- Check if you have custom/downloaded plugins and try disabling them
- Try restoring the Keymap scheme to default
- Try restoring the whole IDE settings to default
To restore default settings, you can use **File | Manage IDE settings | Restore Default Settings...**. Your current settings will be backed up, so you can revert to them later if needed (to do this, just import settings from the backed up folder).
I started up PyCharm to reproduce, and of course now it works as expected. I'll keep using it and see if I can get it back to the buggy state, but it definitely appears to be some sort of bug causing the events from the popup window not to be captured and relayed properly. As soon as it happens again, i'll grab the logs and post a bug.
Thanks!
Submitted bug report with screen recording: https://youtrack.jetbrains.com/issue/PY-61379/Auto-completion-Overlays-not-working-was-able-to-reproduce