syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.68k stars 4.89k forks source link

SPC-f-e-D freezes Emacs #7366

Closed randre03 closed 4 years ago

randre03 commented 8 years ago

Description :octocat:

SPC-f-e-D freezes Emacs

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: Emacs freezes after indicating ediff has finished parsing difference regions

Expected behaviour: :heart: :smile: Create split screen buffers showing differences between current .spacemacs file and the template.

System Info :computer:

((auto-completion :variables auto-completion-return-key-behavior 'complete auto-completion-tab-key-behavior 'complete auto-completion-complete-with-key-sequence nil auto-completion-enable-sort-by-usage t auto-completion-enable-help-tooltip t auto-completion-enable-snippets-in-popup t)
 better-defaults
 (clojure :variables clojure-enable-fancify-symbols t)
 dash elixir emacs-lisp erlang git github haskell html
 (ibuffer :variables ibuffer-group-buffers-by 'modes)
 ivy java javascript markdown org osx rust scala semantic
 (shell :variables shell-default-shell 'ansi-term shell-default-height 30 shell-default-position 'bottom)
 spell-checking
 (syntax-checking :variables flycheck-scalastylerc
                  (expand-file-name "/Users/randre03/scalastyle_config.xml"))
 version-control vinegar)

Backtrace :paw_prints:

bmag commented 8 years ago

Can you upload your full config (.spacemacs and private layers) somewhere? I think this is going to be hard to debug. Another thing - what version of Emacs is 25.2.50.1?

randre03 commented 8 years ago

I have uploaded my .spacemacs to https://pastebin.com/qcXsQKDQ

Emacs 25.2.50.1 is what is installed after using the "emacs-plus --HEAD" homebrew install script.

-Roger


From: bmag notifications@github.com Sent: Wednesday, October 12, 2016 1:19:42 AM To: syl20bnr/spacemacs Cc: Roger Randall; Author Subject: Re: [syl20bnr/spacemacs] SPC-f-e-D freezes Emacs (#7366)

Can you upload your full config (.spacemacs and private layers) somewhere? I think this is going to be hard to debug. Another thing - what version of Emacs is 25.2.50.1?

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/syl20bnr/spacemacs/issues/7366#issuecomment-253129103, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAl76QuOjdqTDZm-Qw6uVavIa3RAVdDXks5qzHv-gaJpZM4KUO0C.

bmag commented 8 years ago

I copied the dotspacemacs you uploaded, but was not able to reproduce the issue on my setup. I tested in two ways:

  1. M-x ediff, then selecting your dotspacemacs and the template.
  2. Modifying your dotspacemacs a bit so I can start Spacemacs with it (I changed the value of dotspacemacs-install-packages to used-but-keep-unused, and commented out all the lines with "/Users" in them), then SPC f e D.

In both cases ediff worked normally. I could move between hunks and copy hunks from A to B and vice-versa. On the other hand, I'm running Ubuntu and Emacs 25.1, so that might cause a difference. @randre03 does vanilla work ok? Try opening vanilla Emacs (emacs -q) and perform an ediff as I did in scenario 1 above. If it hangs, the problem is in Emacs, if it doesn't hang, then it's either Spacemacs or your config (and perhaps machine-dependant).

System Info :computer:

(helm
 (auto-completion :variables auto-completion-enable-snippets-in-popup nil auto-completion-enable-help-tooltip 'manual company-tooltip-align-annotations t)
 command-log dash evil-cleverparens
 (git :variables git-magit-status-fullscreen t)
 ibuffer imenu-list nlinum org pdf-tools
 (shell :variables shell-default-shell 'shell shell-default-height 30 shell-default-position 'bottom)
 smex syntax-checking version-control yaml c-c++
 (clojure :variables clojure-enable-fancify-symbols nil)
 emacs-lisp
 (latex :variables latex-enable-auto-fill t latex-enable-folding t)
 markdown octave python ruby common-lisp org-tweaks spaceline-tweaks verilog window-purpose window-tweaks themes-megapack
 (theming :variables theming-modifications
          '((spacemacs-dark
             (aw-leading-char-face :foreground "red" :height 3.0))
            (spacemacs-light
             (aw-leading-char-face :foreground "red" :height 3.0))
            (monokai
             (aw-leading-char-face :foreground "red" :height 3.0))
            (flatland
             (aw-leading-char-face :foreground "red" :height 3.0)))))
randre03 commented 8 years ago

Interestingly,

  1. using "vanilla emacs" and manually running the ediff (as you described) works; also
  2. I used emacs 25.1.1 (instead of 25.2.50.1) and that also worked.

From: bmag notifications@github.com Sent: Sunday, October 16, 2016 3:10:28 AM To: syl20bnr/spacemacs Cc: Roger Randall; Mention Subject: Re: [syl20bnr/spacemacs] SPC-f-e-D freezes Emacs (#7366)

I copied the dotspacemacs you uploaded, but was not able to reproduce the issue on my setup. I tested in two ways:

  1. M-x ediff, then selecting your dotspacemacs and the template.
  2. Modifying your dotspacemacs a bit so I can start Spacemacs with it (I changed the value of dotspacemacs-install-packages to used-but-keep-unused, and commented out all the lines with "/Users" in them), then SPC f e D.

In both cases ediff worked normally. I could move between hunks and copy hunks from A to B and vice-versa. On the other hand, I'm running Ubuntu and Emacs 25.1, so that might cause a difference. @randre03https://github.com/randre03 does vanilla work ok? Try opening vanilla Emacs (emacs -q) and perform an ediff as I did in scenario 1 above. If it hangs, the problem is in Emacs, if it doesn't hang, then it's either Spacemacs or your config (and perhaps machine-dependant).

System Info ?

(helm (auto-completion :variables auto-completion-enable-snippets-in-popup nil auto-completion-enable-help-tooltip 'manual company-tooltip-align-annotations t) command-log dash evil-cleverparens (git :variables git-magit-status-fullscreen t) ibuffer imenu-list nlinum org pdf-tools (shell :variables shell-default-shell 'shell shell-default-height 30 shell-default-position 'bottom) smex syntax-checking version-control yaml c-c++ (clojure :variables clojure-enable-fancify-symbols nil) emacs-lisp (latex :variables latex-enable-auto-fill t latex-enable-folding t) markdown octave python ruby common-lisp org-tweaks spaceline-tweaks verilog window-purpose window-tweaks themes-megapack (theming :variables theming-modifications '((spacemacs-dark (aw-leading-char-face :foreground "red" :height 3.0)) (spacemacs-light (aw-leading-char-face :foreground "red" :height 3.0)) (monokai (aw-leading-char-face :foreground "red" :height 3.0)) (flatland (aw-leading-char-face :foreground "red" :height 3.0)))))

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/syl20bnr/spacemacs/issues/7366#issuecomment-254033600, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAl76X1QZIsR8fGZZQyEWEwXb7xoEKZuks5q0dv0gaJpZM4KUO0C.

ebenini-mdsol commented 6 years ago

Same problem for me, my configurations are here if you want to give it a try: https://github.com/benkio/MySpacemacsConf

For now I worked around using vanilla emacs.

sdwolfz commented 6 years ago

The freezes are due to Fira Code integration. I used it for a while a few months ago and could not figure out how to fix it so I changed the font, and removed the related code.

asok commented 5 years ago

For me it was also Fira and the font ligatures.

domparry commented 5 years ago

To get this working with Fira Code, add this to your config:

(add-hook 'ediff-mode-hook
          (lambda () (setq-local auto-composition-mode nil)))
github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!