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
PyDev: Autocomplete opens outside insert mode by moving cursor, even when disabled #785
Comments
Also happens in unstable (0.73.20170320), even after uninstalling these:
|
In the title you're saying "even when disabled". Does this mean you get the popup even if Vrapper is toggled so that it reads "vrapper disabled" in the Eclipse status line? If so, it is unlikely we're going to be able to do anything about this as it is PyDev which chooses to open an autocomplete window. |
I was referring to unchecking all the options on both Code Completion tabs in PyDev's configuration, not disabling vrapper (I haven't tried that, not sure how to do that). |
With disabling Vrapper I mean clicking the Vim icon in the toolbar: It doesn't really matter though: I've setup a local install of PyDev and was able to reproduce your scenario, with Vrapper disabled there is no popup if I just use the arrow keys to move right after inserting an I have no idea why PyDev would react this way to Vrapper's actions. I might try to toy with it for a bit but no promises... EDIT: More remarks:
EDIT 2:
|
It's not specific to PyDev, it also happens with PDT (PHP development tools) |
@timdiels I haven't really debugged the PDT code but a quick grep in their sources shows the same problem: their code is not compatible with Vrapper because they bypass Eclipse JFace and register listeners on SWT widgets directly. Vrapper works with JFace because JFace editors have a method "prependVerifyKeyListener" which will make sure that Vrapper comes first to suppress certain keys. When PDT registers SWT KeyListeners, those keys are always handled by PDT before Vrapper sees them so Vrapper can do nothing about them. |
I have same problem in a Eclipse EDA editor. Steps like this:
But press Arrow up/down not j/k will not trigger proposal popup. In My EDA editor based on AbstractTextEditor , is there some method to get Vrapper mode, so I can prohibit the proposal popup when in normal mode. |
I add the following code in my ContentAssistProcessor, the problem solved.Class HdlCompletionProcessor implements IContentAssistProcessor {
public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,int documentOffset) {
} ..... |
By the way, my contentassistant processor use the following auto-trigger characters
|
To reproduce, make a file
test.py
containing this line'abcde'
. Place cursor at the start of the line, enter insert mode and type a single letter (e.g.ia
), exit insert mode and nowll
orfa
to move the cursor toa
, when moving from'
toa
, autocomplete will pop up. I expect autocomplete never to pop up while not in edit mode, or at least in this case I wouldn't expect it to pop up.I tested with stable Vrapper (0.72.0).
Eclipse version:
Installed software (eclipse):
The text was updated successfully, but these errors were encountered: