-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
company-mode is eating keystrokes when showing preview for a single candidate (using company-ghc) #226
Comments
What's your OS, Emacs and Company versions? I've never seen the behavior you're describing. Can you reproduce it with, say, |
OSX 10.9.5, Emacs 24.4 (9.0), company-20141107.552, company-ghc-20141030.704 In readConfig prefix dir = do
files <- getDirectoryContents dir
readfle
readile
readfile
readfile
readfile I would guess there is extra work happening, trying to guess types and what not, and somehow it's affecting the echoing behavior. UPD: this stops when |
A trace, the "i" is being lost:
Same with trace enabled on
|
This "9.0" bit looks suspicious. Is it "Emacs for MacOS X", or some such? I haven't tried company-ghc personally, and the closest bug to this description I've seen mentioned is this: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18684 Can you reproduce this with a "bare" configuration, starting with
The trace tells me that indeed it seems some keystrokes go missing, but not why, sorry. |
Ah, that's how OSX reported the version. Emacs itself says it's 24.4.1. Same behavior in 24.3.50.1. Same behavior in "bare" configuration. It seems to happen only with both |
What about |
|
Also, scrolling through candidates with arrow keys, those seem to be getting dropped too. |
Well then, let's see what @iquiw says. |
OK, thanks for jumping on this so quickly. I have found a fix of sorts, and perhaps narrowed it down: the problem seems to go away after removing |
Hmm, if so, you should be able to reproduce this with another backend that defines And here a self-contained attempt to reproduce this without company-mode: (defun cool-post-command ()
(when (sit-for .01)
(message "cool cool cool")))
(add-hook 'post-command-hook 'cool-post-command) (Try it in a separate Emacs session). |
company-ghc's meta command communicates with external process |
@iquiw So, can you reproduce this? I looked at the wrong function ( |
I have not noticed the originally reported one. company-ghc's meta command calls |
I found the cause is So it is neither company-mode's nor Emacs's issue. @dgutov, I am not sure how it can be solved, so would very much appreciate it if you could give me any advice. |
Obtaining process output synchronously is usually performed with |
I reported the issue in ghc-mod. @dgutov @unthingable Thank you! |
@dgutov, sorry, I haven't had the time to try different backends as per your suggestion. If that's still needed, let me know. |
@unthingable Nope, thank you. |
This is more or less resolved. |
When typing moderately fast, around the time preview is shown, a character often doesn't make it.
Example: slowly typing
readf
triggers a previewile
. When typing fast enough, I usually end up withreadfle
.Using company-ghc backend, if that makes any difference.
The text was updated successfully, but these errors were encountered: