question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autocomplete not working in editor

See original GitHub issue

Description of your problem

Autocomplete stopped working in the Spyder editor (it worked before, but no longer).

What steps will reproduce the problem?

  1. Fresh install of Spyder and upgrade all dependencies
  2. Reset Spyder to factory settings
  3. Type the following in a new file:

jannie = ‘aaa’ jann

(Followed by CTRL + SPACE to activate autocomplete). Nothing happens. No output in Python console.

Also, no results when attempting auto-complete for built-in modules, functions, etc.

If I go to Consoles -> Open a Python Console and do the same, then autocomplete does work.

I can confirm that CTRL + SPACE also works correctly in the Sublime Text editor.

What is the expected output? What do you see instead?

Expected popup of autocomplete dialog. No popup appeared.

Please provide any additional information below

The following settings are enabled in Preferences -> Editor -> Code Introspection/Analysis:

  • Display balloon tips

  • Automatic code completion

  • Case sensitive code completion

  • Enter key selects completion

  • Link to object definition

  • Real-time code analysis

  • Real-time code style analysis

  • Code annotations

  • Perform analysis when saving file and every 2500 ms

Versions and main components

  • Spyder Version: 3.1.4
  • Python Version: 3.6.0 32bits
  • Qt Version: 5.7.1
  • PyQt Version: PyQt5 5.7.1
  • Operating system: Windows 10

Dependencies

Please go to the menu entry Help > Optional Dependencies (or Help > Dependencies), press the button Copy to clipboard and paste the contents below:

jedi >=0.9.0 : 0.10.2 (OK) matplotlib >=1.0 : None (NOK) nbconvert >=4.0 : 5.2.1 (OK) numpy >=1.7 : None (NOK) pandas >=0.13.1 : None (NOK) pep8 >=0.6 : 1.7.0 (OK) pyflakes >=0.6.0 : 1.5.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.7.1 (OK) qtconsole >=4.2.0: 4.3.0 (OK) rope >=0.9.4 : 0.10.5 (OK) sphinx >=0.6.6 : 1.6.2 (OK) sympy >=0.7.3 : 1.0 (OK) autocomplete

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
shaktikshricommented, Jul 20, 2019

sad to say but spyder has by far proven to be the most unstable IDE I ever used. Have been trying to fix things around since morning and stuff keeps breaking one after the other. And now I am again trying to look for why autocomplete isn’t working 😦 This is not the first time this issue has happened, seems more like Spyder’s internal decision decides when autocomplete should work and when not depending on the day of the week.

7reactions
ccordoba12commented, Jun 12, 2017

Thanks for reporting. This is a duplicate of issue #4410.

We still don’t know why but autocompletion is working fine for Anaconda users and broken for some users that don’t use it.

So my suggestion is to use Anaconda instead of your own Python installation, if possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliSense in Visual Studio Code
The editor supports "tab completion" which inserts the best matching completion when pressing Tab. This works regardless of the suggest widget showing or...
Read more >
autocomplete not working on editor but it is in console. - Reddit
autocomplete not working on editor but it is in console. I am running pycharm on windows 10. I have installed a new package...
Read more >
XML Editor autocomplete not working with support libraries
Autocomplete in XML support library is working again. Checking out files from Version Control or copying all the source files in a new...
Read more >
Auto Complete not working in PyCharm editor, but ... - YouTrack
Auto Complete not working in PyCharm editor, but works in console ; State, Duplicate D ; Assignee, Unassigned ; Subsystem, No Subsystem ;...
Read more >
Solved: Code completion not working in Spyder 5.1.5 after
My first line in the Editor (not console) was import arcpy, My second line was arcpy.Add... but no autocomplete appeared.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found