-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Scala-mode: Period key triggering autocompletion. #2702
Comments
In the meantime, control g could exit the auto-completion and allow you to press . again. Agreed that its an issue though. |
Yep, I never bothered to fix that one. I've got muscle memory at this point to just |
I have vague recollections of Visual Studio doing the same thing so it's never really bothered me, but YMMV. |
Is this a Spacemacs issue, or should it be reported upstream to |
Yeah, it's a layer issue. The period key is bound to trigger company completions. The problem is when the company popup is already open--it gives undesired behaviour. I'll have a look at it today. |
Ok, I haven't look at it before. Probably removing these 3 lines should do the trick: https://github.com/syl20bnr/spacemacs/blob/develop/layers/+lang/scala/funcs.el#L94-L96 |
I just pushed a PR fixing that because it's causing a lot of headaches as @siegelzero suggested. Speaking of autocomplete, I'm wondering why scala/java layers are the only ones that have a function to complete with period? https://github.com/syl20bnr/spacemacs/blob/develop/layers/+lang/scala/funcs.el#L87 How are others layers using company to accomplish that behavior? |
When the auto-completion window pops up, pressing the
.
key triggers completion. This doesn't happen in other major modes that I've used - only scala mode.In a situation where you have objects
foo
andfoobar
, this can cause serious headaches. Trying to typefoo.attribute
is impossible, since the.
key expandsfoo
tofoobar
wheneverfoobar
is at the top of the completion candidate list.The text was updated successfully, but these errors were encountered: