-
-
Notifications
You must be signed in to change notification settings - Fork 19
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 automatically show suggestions due to prefix override workaround #501
Comments
Hello. Do you have |
Yes, it's 3, the default one. |
Do the words your typing happen to be less than three characters when this doesn't work 😄 ? IIUC, this setting causes nothing to be autocompleted unless you've typed at least three characters. If this is indeed causing the problem, you can try setting it to |
No. Sorry. Neither typing more than However, when I set it to BTW, I don't want |
Okay, I think I may be able to clear up some confusion: autocompletion triggers on characters such as If you type something after them, you fall back to "standard" autocompletion, which also happens when you start typing on a new line. If you have In short, this probably happens:
I would expect this to start working when you typed 3 or more characters, then, though 😄. |
@Gert-dev For clarification, I've updated the issue and added more precise details on the problem (in the Example section). |
Hmm, I understand. This does somehow appear to be linked to that The strange thing is that, on exactly the third character, even the snippets disappear. As if Atom knows there should now be other suggestions, but none are shown. If I press I'm wondering if this is related to this fix I did. Could you perhaps try commenting it out to see if that fixes anything? (I can say for sure that it's not a server problem, since in other clients and the server output the appropriate suggestions appear to be returned.) |
@Gert-dev Oh! Good to hear it does not only happen for me. And about the fix, what should I do to get the fix? Only updating to the latest version or not? |
Commenting out that line in |
Hello. Nice to hear you found a workaround. Indeed, I could remove the line, but it will break sorting and filtering the list, as indicated by the comment above it. Atom seems to insist on doing its own reordering and filtering client-side, whilst the autocompletion results by Serenata are already filtered and sorted server-side. This causes less relevant results to be shown or the sorting to be different than intended by the server. The only fix I've found for that so far is this line, but it seems like an upstream bug. Seeing as removing this line fixes it, I'll update the title of this ticket to reflect that and leave it open so it's not forgotten in the future. |
Commenting out that line in |
is this bug still exists with current 5.4.0? |
@yanggs07 Still exists. As @Gert-dev has said, it seems to be an upstream bug. |
emmmm so i still use v4.5.3 with osx 10.15.2, atom |
This may be fixed in atom-languageclient v1.0.0 if it is not please open an issue on the new repo https://github.com/atom-ide-community/atom-languageclient |
@Gert-dev Could you please release a new version (probably 5.4.1) for this change? Maybe it's late, but I think it was an effective and impactful change. |
Done - in the spirit of leaving the package in a somewhat stable state (due to #522). |
@Gert-dev Great! Thanks. And yes, the package is in a really good shape (and sorry, I'm personally interested in, but unable to being a maintainer). |
For But for local variables, it still adds an extra Seems like |
@nelson6e65, as you might already know, that's a separated issue being tracked in #487. |
Oh, sorry. I didn't remember it. 😅 |
Hi. First of all, thanks for this cool package in Atom. Everything works fine, except the auto-completion.
Desciption
When I type characters like
$
,::
or->
, the suggestions will be shown in a great way, but when I enter another character to limit the suggestions, all Serenata suggestions will be disappeared (yes, the default snippets are shown). However, all of expected suggestions will be re-shown when I enter Ctrl+Space.Example
To be clarified, in the following example,
minimumWordLength
equals3
(in the settings ofautocomplete-plus
package):$this->
$this->d
d
, likedebug
anddo
$this->de
de
, likedebug
anddef
$this->de
+ Ctrl+Spacede
$this->deb
deb
, likedebug
deb
$this->deb
+ Ctrl+Spacedeb
Steps to Reproduce
Do steps in Example section above.
Platform Information
ide-php
and the like installed.autocomplete-plus
:minimumWordLength
:3
What should I do now?
The text was updated successfully, but these errors were encountered: