Closed m-fleury closed 4 years ago
@m-fleury
I hope this is not another weirdo spacemacs-related bug… That’s look like post-self-insert-hook is not fired in that case and this definitely one of the things evil-mode changes.
I will need the output of (in an Isabelle buffer):
M-: (message “%s” post-command-hook)
M-: (message “%s” post-self-insert-hook)
If you can reproduce it consistently, evaluate:
(add-hook 'post-self-insert-hook (lambda () (message “I am here”))
and see if the message is printed after failed M-/ completion.
If the theory is right, this could solve it, but I am not certain:
(add-hook 'yas-after-exit-snippet-hook #'lsp--on-self-insert nil t)
@gh-salt
M-: (message “%s” post-command-hook)
"(evil-normal-post-command lsp-isar-update-caret lsp--highlight eldoc-schedule-timer yas--post-command-handler company-post-command flycheck-hide-error-buffer flycheck-display-error-at-point-soon flycheck-error-list-highlight-errors flycheck-error-list-update-source flycheck-perform-deferred-syntax-check lsp-ui-doc--make-request lsp-ui-sideline t)"
M-: (message “%s” post-self-insert-hook)
"(sp--post-self-insert-hook-handler helm-find-files--reset-level-tree electric-indent-post-self-insert-function blink-paren-post-self-insert-function)" I reproduced the bug after having evaluated (add-hook 'post-self-insert-hook (lambda () (message “I am here”)) but “I am here” was never printed in the Message buffer (I tried several “successful” and really failed completions).
@m-fleury
I reproduced the bug after having evaluated (add-hook 'post-self-insert-hook (lambda () (message “I am here”)) but “I am here” was never printed in the Message buffer (I tried several “successful” and really failed completions). The message never stays long enough in the minibuffer to be visible, but you can see it in the Message buffer. (Sorry, I should have checked if it works).
@gh-salt Indeed, I was talking about the Message buffer all along.
@m-fleury Okay post-self-insert-hook is already strange (it is clearly missing one lsp-function).
How about
M-: (message "%s"after-change-function)
?
@gh-salt This is the output for
M-: (message ”%s” after-change-function)
Symbol’s value as variable is void: after-change-function
I believe this is another instance of #6.