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 doesn't replace text sometimes

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Sometimes the autocomplete will not work as expected. Usually after using Spyder for a while

What steps reproduce the problem?

  1. type “np.newa”
  2. press “tab” to get an autocompletion

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

I would expect “np.newaxis”

Instead I get “np.newanewaxis”

Versions

  • Spyder version: Spyder 4.0.0.dev0
  • Python version: Python 3.7.0 64-bit | Qt 5.9.3 | PyQt5 5.9.2 | Darwin 18.2.0
  • Qt version:
  • PyQt version:
  • Operating System name/version: Mojave 10.14.1

Dependencies

pygments >=2.0 : 2.2.0 (OK) sphinx >=0.6.6 : 1.8.1 (OK) psutil >=0.3 : 5.4.7 (OK) pyls >=0.19.0 : 0.21.2 (OK) nbconvert >=4.0 : 5.4.0 (OK) pandas >=0.13.1 : 0.23.4 (OK) numpy >=1.7 : 1.15.2 (OK) sympy >=0.7.3 : 1.3 (OK) cython >=0.21 : 0.28.5 (OK) qtconsole >=4.2.0 : 4.4.1 (OK) IPython >=4.0 : 7.0.1 (OK) matplotlib >=2.0.0: 3.0.0 (OK) pylint >=0.25 : 2.1.1 (OK)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Dec 14, 2018

Let’s talk about this in our meeting tomorrow.

1reaction
andfoycommented, Dec 13, 2018

Another idea would be to compute the starting prefix between the existing string and the textEdit value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio code - VSCODE autocomplete deletes the text
My VSCODE sometimes insert sometimes replace the text when im working with flutter. There are some screenshots of the problem.
Read more >
Autocomplete in Word has stopped working
I use autocomplete in Word to create custom comments for grading papers. It has recently stopped working. When I try to create a...
Read more >
bug? autocomplete replacing next word
I am running the OSX version of PHPStorm. (98.108). I did the File-Invalidate Caches after installing it. I really like the autopopup feature ......
Read more >
446210 – Autocomplete replaces exact matches with inexact ...
C.foo" results in the text "Bar.class.foo", because the inexact match is ... What I'm not fine with is that this behavior sometimes replaces...
Read more >
How to use Auto-Correction and predictive text on your iPhone ...
When you enter the shortcut in a text field, the phrase automatically replaces it. For example, you could type "GM" and "Good morning"...
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