Closed sarna closed 2 years ago
That sounds bad!
If I understand correctly, this happens when you make some edit that causes the completion mechanism to kick in?
As a couple wild guess experiments, what if you try disabling each of these minor modes:
company-box-mode
?eldoc-mode
?(enabled-minor-modes (+popup-mode) (all-the-icons-completion-mode) (auto-composition-mode) (auto-compression-mode) (auto-encryption-mode) (auto-fill-mode) (auto-save-mode) (better-jumper-local-mode) (better-jumper-mode) (column-number-mode) (company-box-mode) (company-mode) (display-line-numbers-mode) (display-time-mode) (doom-modeline-mode) (dtrt-indent-mode) (electric-indent-mode) (emojify-mode) (evil-escape-mode) (evil-goggles-mode) (evil-local-mode) (evil-mode) (evil-snipe-local-mode) (evil-snipe-mode) (evil-snipe-override-local-mode) (evil-snipe-override-mode) (evil-surround-mode) (file-name-shadow-mode) (flycheck-mode) (flycheck-popup-tip-mode) (font-lock-mode) (format-all-mode) (gcmh-mode) (general-override-mode) (global-company-mode) (global-eldoc-mode) (global-emojify-mode) (global-evil-surround-mode) (global-flycheck-mode) (global-font-lock-mode) (global-git-commit-mode) (global-hl-line-mode) (global-so-long-mode) (global-subword-mode) (global-undo-fu-session-mode) (highlight-numbers-mode) (highlight-quoted-mode) (hl-line-mode) (hl-todo-mode) (hs-minor-mode) (line-number-mode) (marginalia-mode) (mouse-wheel-mode) (ns-auto-titlebar-mode) (override-global-mode) (persp-mode) (projectile-mode) (racket-smart-open-bracket-mode) (racket-xp-mode) (rainbow-delimiters-mode) (recentf-mode) (save-place-mode) (savehist-mode) (semantic-minor-modes-format) (shell-dirtrack-mode) (show-paren-mode) (size-indication-mode) (smartparens-global-mode) (smartparens-mode) (solaire-global-mode) (subword-mode) (transient-mark-mode) (undo-fu-mode) (undo-fu-session-mode) (vertico-mode) (vi-tilde-fringe-mode) (which-key-mode) (whitespace-mode) (window-divider-mode) (winner-mode) (ws-butler-global-mode) (ws-butler-mode) (xclip-mode) (xterm-mouse-mode) (yas-global-mode) (yas-minor-mode))
straight.el
; can you please let me know what commit from the main branch for Racket mode?Thanks!
p.s. The messages about Invalid face reference: parenthesis
suggest something for me to fix. However I think that's orthogonal to any freeze/crash. It does however tell me that documentation is being requested -- maybe by company-box-mode
?? -- and that is successful at least up to that point where this warning might appear... which is possibly useful to know.
(define (foo) |)
(|
is cursor) when I type an opening paren (to make it (define (foo) ())
). But there's no rule, and triggering completion a couple times seems to make it trigger faster/more frequently. Like, after triggering after writing half a page of code it'll trigger in the first function I try to write.
Right now I managed it to hang like this:
(defin)
(define)
company-box-mode
. When I do M-x eldoc-mode
it says.. wow I managed it to hang by doing this and then by opening ibuffer to switch to *Messages*
buffer. In fact, trying to open ibuffer hangs consistently. I'm starting to suspect something else than racket-mode
. Anyway, the message is "There is no ElDoc support in this buffer" - so I think it's disabled already?I did some more testing and it 100% looks like something with my config, out of the box racket-mode
works great, even better with company-box-mode
. No hangs. I'll keep digging and update when I find the culprit.
Seems like I'm having the same issue as people here: https://github.com/mickeynp/ligature.el/issues/10
It's not coming from racket-mode, sorry for not checking thoroughly before. Thank you very much for your assistance :)
No worries! At least it made me aware of #610, which I merged.
Your mention of ligatures jogged my memory; it sounds like this is related to #523. IIUC it should be OK using Emacs 28+.
Yes, exactly: I had a composition-function-table
in my config as well! I'll wait for a new release with adding it again. Thanks a ton :)
Hi!
I really appreciate you working on this package, in most cases it works really well and it's made programming in Racket very pleasant for me :)
I have no idea what's wrong, but my Emacs started hanging with
xp-mode
enabled even on the simplest code (hello world). Emacs will stop responding to anything, includingC-g
and SIGUSR2. The only way to get it back is to kill it and start again. I tried enabling debug mode, there were no messages before the hang. Once I managed to catch this:I installed
paren-face
package and enabled its global mode, didn't help at all.To reproduce:
xp-mode
is enabled