all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Steven Allen" <steven@stebalien.com>,
	"Stefan Monnier" <monnier@iro.umontreal.ca>,
	"João Távora" <joaotavora@gmail.com>
Cc: 70927@debbugs.gnu.org
Subject: bug#70927: 30.0.50; track-changes assertion when shutting down eglot
Date: Tue, 14 May 2024 09:14:18 +0300	[thread overview]
Message-ID: <86v83gx6md.fsf@gnu.org> (raw)
In-Reply-To: <871q65xsi6.fsf@stebalien.com> (bug-gnu-emacs@gnu.org)

> Date: Mon, 13 May 2024 15:21:37 -0700
> From:  Steven Allen via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> 
> When `eglot-autoshutdown` is set, killing eglot buffers fails with a
> track-changes assertion because, from what I can tell,
> `eglot--signal-textDocument/didChange` is called when
> `eglot--track-changes` is `nil`.
> 
> Backtrace:
> 
>   cl--assertion-failed((memq id track-changes--trackers))
>   track-changes-fetch(nil #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_136>)
>   eglot--track-changes-fetch(nil)
>   eglot--signal-textDocument/didChange()
>   eglot--request(#<eglot-lsp-server eglot-lsp-server-10d3578e408f> :shutdown nil :timeout 1.5)
>   eglot-shutdown(#<eglot-lsp-server eglot-lsp-server-10d3578e408f>)
>   eglot--managed-mode(-1)
>   eglot--managed-mode-off()
>   kill-current-buffer()
>   funcall-interactively(kill-current-buffer)
>   command-execute(kill-current-buffer)
> 
> Reproduction:
> 
> 1. Start emacs with `emacs -Q`.
> 2. Run `M-: (setopt eglot-autoshutdown t) RET`
> 3. Open any file you have an LSP server for and run `M-x eglot RET`.
> 4. Kill the buffer.

Thanks, I added Stefan and João to the discussion.





  parent reply	other threads:[~2024-05-14  6:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-13 22:21 bug#70927: 30.0.50; track-changes assertion when shutting down eglot Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found] ` <handler.70927.B.17156389167471.ack@debbugs.gnu.org>
2024-05-13 22:25   ` bug#70927: Acknowledgement (30.0.50; track-changes assertion when shutting down eglot) Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-15 18:49     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-15 20:51       ` Steven Allen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-15 22:09         ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-14  6:14 ` Eli Zaretskii [this message]
2024-05-14  9:14   ` bug#70927: 30.0.50; track-changes assertion when shutting down eglot Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-14  9:34     ` João Távora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86v83gx6md.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70927@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=steven@stebalien.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.