SublimePHPIntel icon indicating copy to clipboard operation
SublimePHPIntel copied to clipboard

Cannot accept suggestion with Enter

Open chlab opened this issue 11 years ago • 10 comments

Hi

Thanks for the plugin! I'm experiencing a problem, when I start typing a method name, e.g. $this->ge, then the dropdown appears suggesting getActiveFilters. I cannot accept the suggestion via keyboard though, [Enter], [Tab], etc. don't work, the only thing that does is clicking the suggestion I want.

I don't know if maybe Sublime and SublimePHPIntel are cancelling each other out here or something? I can accept the code suggestions from the default PHP library with [Enter] without a problem, although that's probably not the plugin suggesting those.

Any help on this?

chlab avatar Dec 29 '14 15:12 chlab

Are you using SublimeText 2 or 3? Can you temporarily disable all of your other packages and see if the problem remains?

jotson avatar Dec 29 '14 16:12 jotson

I'm using SublimeText 3. I thought of that, but do you know if there's any way to do that manually, I have quite a few packages installed :(

Thanks!

chlab avatar Dec 30 '14 09:12 chlab

You could just physically move the packages out of the Packages directory in your config. But if that resolves the issue then you'll want to enable them one by one anyway to find the culprit. Keep me updated because right now I can't reproduce this.

jotson avatar Dec 30 '14 18:12 jotson

Sorry for the long wait, this an issue I have at work, didn't feel like doing any work over the holidays :). So, the culprit seems to be the BracketHighlighter package. When I move it or disable it, I can accept the suggestions with Tab. I'll try to find out why it doesn't work with BracketHighlighter.

Also, is it possible to accept suggestions with Enter as well?

Thanks!

chlab avatar Jan 06 '15 07:01 chlab

No problem. I use the BracketHighlighter package as well without problems. And I can accept a suggestion with Tab or Enter. What platform are you on? Mac, Windows? You might try opening the Sublime console Ctrl+` to see if there are any errors during completion.

jotson avatar Jan 06 '15 17:01 jotson

Hm, that's weird. I'm on Fedora Linux. I'll check the console and reset/reinstall the package later in the week and let you know if that fixes it.

chlab avatar Jan 06 '15 19:01 chlab

Also experiencing this issue.

I'm on OS X 10.10.2. I'll try a fresh install of ST3 and see if I can duplicate it from there. No console errors, and I'm not using BracketHighlighter. Very strange.

kennonb avatar Jan 09 '15 20:01 kennonb

I removed and re-installed BracketHighlighter, so I'm now at the factory settings. I'm still having the same problem, though not as a rule. Sometimes it works with Tab and/or Enter, sometimes it doesn't. I can't determine what the difference is when it works and when it does not.

Update: just found a case where it doesn't work. There are multiple suggestions and both have several parameters (3-4). Maybe that has something to do with it.

Update 2: also have a case where it doesn't work with no parameters and only one suggestion.

I don't know how what other infos I can give :(

chlab avatar Jan 12 '15 14:01 chlab

Can you send me a file with the minimum amount of code in it that triggers the problem?

jotson avatar Jan 19 '15 19:01 jotson

v1.0.4 fixing issue #10 was just released. That changes there might fix this issue too. Let me know.

jotson avatar Jan 19 '15 21:01 jotson