swift-emacs / swift-mode

Emacs support for Apple's Swift programming language.
GNU General Public License v3.0
370 stars 47 forks source link

Mode periodically loses characters as I type #158

Closed cubranic closed 5 years ago

cubranic commented 5 years ago

I'm using swift-mode with Spacemacs on Emacs 26.1 (just a straight package-install, not as a layer). As I type, there is something that the mode does that causes it to swallow characters. I can tell that some kind of background operation is in progress when that happens because whenever a character is dropped I also see "Quit" appear in the minibuffer.

I tried to dig a little deeper by setting the "Enter debugger on Quit" and "Enter debugger on error", but it was never entered. I understand that this may be hard to reproduce on another machine, so if you give me any instructions on how to debug this further, I'd be happy to try it.

taku0 commented 5 years ago

I have started Spacemacs 26.1 with Docker in Linux, and used it for a few minutes, but it was not reproduced.

If you use Linux, try a quick test.

  1. Open a Spacemacs
  2. Visit a new file
  3. Run the script

Try it a few times with different filenames, then compare the results with diff.

cubranic commented 5 years ago

(I should have clarified that I'm on a Mac.)

I started my Spacemacs with no .spacemacs and started with a clean config. I don't see the bug any more, so I'm next going to identify the differences with my own .spacemacs and report back here.

cubranic commented 5 years ago

It looks like an existing package in my .emacs.d/elpa/ was causing this. When I started with the same config and clean package directory, the bug doesn't show. (I suspect company, but it's not worth checking at this point.)