-
Notifications
You must be signed in to change notification settings - Fork 235
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 very slows, keeps setting the mark #16
Comments
I'm guessing you're using emacs? |
Oops, yes, sorry. |
Could you be a little more specific ? I have a little delay when trying to complete after "Batteries.", is this kind of completion you are talking about, or it is slow even when there is few matches ? |
It happens even with very few choices. For instance, typing "str", I immediately have 5 choices, but it's when I select the choice that the delay happens. I also see some delay when I'm using "backspace" on such lines, or when I edit the "locked" zone. I suspect merlin keeps trying to compile what I write, and this interacts badly with completion. I don't know how to tell merlin to stop trying to find the types of things, to see if this is the culprit. If it matters, I'm on OS X, with a Cocoa emacs 24.2.1, built with homebrew. I installed merlin yesterday with opam. |
You could try |
Ok, I tried Merlin with vim and aquamacs on a Mac OS X Mountain Lion. Vim integration with Merlin was completely transparent, going like a breeze. This seem related to OcamlPro/typerex#2 . |
I did, but it did not change anything.
I use the opam version. Does it directly come from git, or is it a released version? Is there a way to update to master using opam? |
|
I updated the version and it's even slower. |
OK, so it seems that the issue is that merlin tries to find the type as it does the completion. What would be helpful is a way to avoid merlin to automatically find the types (so I would need to manually do a C-c C-ret to make the locked zone grow). |
Alan Schmitt notifications@github.com writes:
Thanks for the report. I disabled the idle checking during completion |
It seems to be much better. I'll keep stressing it and will reopen if I notice something wrong. Thanks a lot! |
I tried another version of emacs for OS X, and merlin is much faster on it (as well as flyspell, which used to be very slow as well). So this may be another way to solve this. Here it is: https://github.com/railwaycat/emacs-mac-port |
Signed-off-by: Roman Leshchinskiy <rleshchinskiy@janestreet.com> Co-authored-by: Roman Leshchinskiy <rleshchinskiy@janestreet.com>
When I try to autocomplete, it takes several seconds between the moment I choose a completion and the moment it is inserted. During that time, the minibuffer keeps flashing with messages. Here is what they are:
I'm using the opam installed version of Merlin.
The text was updated successfully, but these errors were encountered: