Cannot accept suggestion with Enter
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?
Are you using SublimeText 2 or 3? Can you temporarily disable all of your other packages and see if the problem remains?
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!
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.
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!
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.
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.
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.
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 :(
Can you send me a file with the minimum amount of code in it that triggers the problem?
v1.0.4 fixing issue #10 was just released. That changes there might fix this issue too. Let me know.