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 does not insert correct word when requested with Ctrl+Space #2672

Closed
rthouvenin opened this issue Sep 6, 2015 · 2 comments
Closed

Comments

@rthouvenin
Copy link
Contributor

To reproduce: in a python editor, start typing something and when the word is long enough so that there should be only one auto-complete suggestion, invoke it with Ctrl+Space. For example, type enume and invoke the auto-completion. Because there is only one suggestion, the word is automatically completed. However the auto-complete menu opens anyway, and if I press Enter to validate and close it, the word is replaced with one where the beginning of the word is repeated. For example, in the case of enumerate, it is replaced with enumenumerate.

This does NOT happen when there is more than one auto-complete suggestion or when the auto-complete is automatically triggered when typing a dot, even if there is a single suggestion. In both these cases, the word is not automatically completed and pressing Enter correctly finishes the word.

Also, the problem occurs in latest Spyder 3.0.0dev, but not in the stable release that I have (2.2.5). In 2.2.5, the auto-complete menu does not open and the word is automatically completed to the single suggestion, which is I think the correct behavior (this is also what Eclipse does if I remember correctly). So it seems to be a regression. Will happily help fix it if given pointers.

@ccordoba12
Copy link
Member

@blink1073, this one seems for you :-)

@ccordoba12 ccordoba12 added this to the v3.0 milestone Sep 6, 2015
@goanpeca
Copy link
Member

goanpeca commented Sep 6, 2015

Yes I have noticed this behavior and I can confirm, please @blink1073 take a look :-p

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

No branches or pull requests

4 participants