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

Suggesting completions after commas/parentheses seems premature #3089

Closed
damienprystay opened this issue Sep 14, 2017 · 7 comments
Closed

Suggesting completions after commas/parentheses seems premature #3089

damienprystay opened this issue Sep 14, 2017 · 7 comments
Assignees
Milestone

Comments

@damienprystay
Copy link

Code intelligence is suggesting completions after I type a comma, apparently with a list of all the names in scope. This gets in the way when I'm writing comma-separated terms in a multi-line context, e.g. initializing a dictionary in Python:

d = {
'foo': 'bar',
'baz': 'bort',
}

After each comma I'm wanting to hit enter to start a new line; now I have to clear the suggestion popup, first (or I hit enter reflexively and get the first suggestion inserted). The same goes for an open parenthesis (e.g. when initializing a keyed array in PHP) - it's a tossup whether the next thing I'm going to be typing is a newline or something else.

I would say suggesting completions is reasonable after I've typed a word character, but not without any context to narrow the list of suggestions. Even if the next thing I want to input is something that's on the suggestion list, it's unlikely to be at or close enough to the top of the list that I can select it without first typing a couple characters of its name, anyway.

Komodo IDE 11.0.0 build 90665
Mac OS X 10.11.6

@th3coop
Copy link
Member

th3coop commented Sep 14, 2017

Looks like this needs to be PHP, though there could be use cases that trigger this in other languages. It is quite frustrating.

@damienprystay
Copy link
Author

I'm encountering it in Python as well, yes.

@th3coop
Copy link
Member

th3coop commented Sep 14, 2017

Confirmed. Thanks @damienprystay

@damienprystay
Copy link
Author

Relatedly (in that so far I only see this behaviour with post-delimiter suggestions), typing sufficiently fast can cause the completion popup to occur (and remain) after the character that triggered it has been obsoleted.

E.g. (in PHP) typing foo(); one character at a time shows the suggestion popup (other than for as many of the initial letters produced suggestions) occurs after (, and disappears after ); however, typing it at speed can result in the popup only occurring after the ;. Again, if the next character is a newline, that can result instead in selecting the first suggestion.

@Naatan Naatan added this to the 11.0.1 milestone Sep 15, 2017
@Naatan
Copy link
Member

Naatan commented Sep 15, 2017

@damienprystay can you please log that separately? Only one issue per report :)

@mitchell-as
Copy link
Contributor

@mjainQA
Copy link

mjainQA commented Oct 11, 2017

Verified in Komodo IDE, version 11.0.1, build 90755, platform macosx.
Built on Tue Oct 10 09:26:02 2017.

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

5 participants