From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#66938: 30.0.50; Commit 6c47931a1ad4de ("Make EIEIO ':accessor' behave like ':reader' when reading (bug#66938)") breaks Eglot Date: Wed, 29 Nov 2023 15:01:37 +0000 Message-ID: References: <86plztnwmi.fsf@aarsen.me> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19666"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66938@debbugs.gnu.org To: Arsen =?UTF-8?Q?Arsenovi=C4=87?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 29 16:03:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r8M5u-0004qQ-RE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Nov 2023 16:03:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8M5c-0001n3-Hg; Wed, 29 Nov 2023 10:03:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8M5X-0001ib-Ft for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 10:02:55 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8M5X-0000dU-7p for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 10:02:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r8M5e-0003w0-I2 for bug-gnu-emacs@gnu.org; Wed, 29 Nov 2023 10:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Nov 2023 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66938 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66938-submit@debbugs.gnu.org id=B66938.170127014715077 (code B ref 66938); Wed, 29 Nov 2023 15:03:02 +0000 Original-Received: (at 66938) by debbugs.gnu.org; 29 Nov 2023 15:02:27 +0000 Original-Received: from localhost ([127.0.0.1]:50713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8M54-0003v6-MG for submit@debbugs.gnu.org; Wed, 29 Nov 2023 10:02:27 -0500 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:52681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8M51-0003un-8r for 66938@debbugs.gnu.org; Wed, 29 Nov 2023 10:02:24 -0500 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40b552deba0so4415155e9.1 for <66938@debbugs.gnu.org>; Wed, 29 Nov 2023 07:02:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701270130; x=1701874930; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=jbZbbPATTKqQoMBKeQcsRmbpvzJoj6dn/oRWZfdGbGY=; b=BDLvBvJnas/kK74ju4Ac6ShCLmuC39qm2GjEIr4YRWigp4s0EuZQMonvpJ+JZA+klV l7Quf0fk+qTPrxw0cdhbyWyoF3wAYctoGglCoxtO04z9OVv0TfVGysj4NUhQXdzsZ3ih AvbBl/THVblP1jL8N/XNEJvQfzH8n2NGprYKndPCT1k0f/f6bRkdpZTQzpVpY/4gKpQd ZHvEc4EwDZv9UsHcEoNmkXjKwPpDU2Rvn6tWgPnfT78LLpLuDR3OWFXuwd8xXTNWI0Db 9blo07KijEjsvNTvbolsdpph5/yDY7MoZeUpbNGO3ycF0OpXB9SD7HNnK5nrsGs01e/r 3vjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701270130; x=1701874930; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jbZbbPATTKqQoMBKeQcsRmbpvzJoj6dn/oRWZfdGbGY=; b=wg3BYyVBL0gDhKm8N8eIMJ0uUGVEg8K8bZHHJ23wSt50VxfitPEWIJuGm/LNgsq7O+ heOkOBYryWA+ypnBinkWXJMxVBR/XgpBg1znyUco7OfmBIsyi8U3DrF2FNxvkBCNtemJ er+smAKPbGV6AAwt4N852LVWXLWS/iMwGm8/BZsHmKQFs4hbZsefJkcvWFvQmN6mc7yH l7a/jp4J3RD8qb9D4tppbXHK7PCrXt0VhHSFhjZMrgeS+ipQqqDgls7T7+Yv7cvVZPbV q/gQrlaS24LVx1gPGWPsvmi8PNrRHnhzus19jnrpue+XZCBeehEvR+u+rUWJNQ+tN3rE WM8g== X-Gm-Message-State: AOJu0Yxn+Ku3GGxOMnEGOYYVDq6EFVF17YV88+7QaKHiAXeV1Atgdg1i 5efGm7OXUTFZXqx4mF7ALCHQSl8RUIiJpOxT0DGm593XIxc= X-Google-Smtp-Source: AGHT+IGo/mPh2iAQrmiHxxr/Mvn66a8xoJq5HvM9DFRqxGwruAsC9O/V1ETy4gH7NpgpVSAl8bPciN8gjiGHWgWKhE8= X-Received: by 2002:a05:6512:39cc:b0:50b:a697:c2f with SMTP id k12-20020a05651239cc00b0050ba6970c2fmr10136347lfu.52.1701270108761; Wed, 29 Nov 2023 07:01:48 -0800 (PST) In-Reply-To: <86plztnwmi.fsf@aarsen.me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275239 Archived-At: merge 66938 67480 thanks Please see bug#67480. This has been fixed in master already, I think. Jo=C3=A3o On Wed, Nov 29, 2023 at 2:05=E2=80=AFAM Arsen Arsenovi=C4=87 via Bug report= s for GNU Emacs, the Swiss army knife of text editors wrote: > > Hi, > > The commit referenced above seems to break Eglot. It generates the > following stack trace: > > Debugger entered--Lisp error: (unbound-slot eglot-lsp-server "#" -events-buffer oref) > signal(unbound-slot (eglot-lsp-server "#" -events-buffer oref)) > ... ; Removing extremely long frames > eieio-barf-if-slot-unbound(eieio--unbound # -events-buffer oref) > slot-value(# -events-bu= ffer) > #f(compiled-function (this) "Retrieve the slot `-events-buffer' from an= object of class\n`jsonrpc-connection'." #)(#= ) > apply(#f(compiled-function (this) "Retrieve the slot `-events-buffer' f= rom an object of class\n`jsonrpc-connection'." #) # nil) > jsonrpc--events-buffer(#) > jsonrpc-events-buffer(#= ) > jsonrpc--log-event(# (:= message "Running language server: /usr/lib/llvm/17/bin/clangd")) > jsonrpc--debug(# "Runni= ng language server: %s" "/usr/lib/llvm/17/bin/clangd") > eglot--connect((c-mode c-ts-mode c++-mode c++-ts-mode objc-mode) (trans= ient . "/tmp/") eglot-lsp-server ("/usr/lib/llvm/17/bin/clangd") ("c" "c" "= c++" "c++" "objc")) > eglot((c-mode c-ts-mode c++-mode c++-ts-mode objc-mode) (transient . "/= tmp/") eglot-lsp-server ("/usr/lib/llvm/17/bin/clangd") ("c" "c" "c++" "c++= " "objc") t) > funcall-interactively(eglot (c-mode c-ts-mode c++-mode c++-ts-mode objc= -mode) (transient . "/tmp/") eglot-lsp-server ("/usr/lib/llvm/17/bin/clangd= ") ("c" "c" "c++" "c++" "objc") t) > command-execute(eglot record) > execute-extended-command(nil "eglot" "eglot") > funcall-interactively(execute-extended-command nil "eglot" "eglot") > command-execute(execute-extended-command) > > Reproduction steps: > > - emacs -q > - C-x C-f foo.c RET > - M-x eglot RET > > Apologies for my brevity and lack of analysis and/or a patch - it is > getting late. > > Have a lovely night. > > (note that the info below does not come from the emacs -q session I was > testing this in, but I can also reproduce this issue in this session) > > In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.38, cairo version 1.18.0) of 2023-11-28 built on localhost > Repository revision: 7a5c91a2831602c3cd961158cf0b6a876852d7ac > Repository branch: master > System Description: Gentoo Linux > > Configured using: > 'configure --prefix=3D/usr --build=3Dx86_64-pc-linux-gnu > --host=3Dx86_64-pc-linux-gnu --mandir=3D/usr/share/man > --infodir=3D/usr/share/info --datadir=3D/usr/share --sysconfdir=3D/etc > --localstatedir=3D/var/lib --datarootdir=3D/usr/share > --disable-silent-rules --docdir=3D/usr/share/doc/emacs-30.0.9999 > --htmldir=3D/usr/share/doc/emacs-30.0.9999/html --libdir=3D/usr/lib64 > --program-suffix=3D-emacs-30-vcs --includedir=3D/usr/include/emacs-30-vc= s > --infodir=3D/usr/share/info/emacs-30-vcs --localstatedir=3D/var > --enable-locallisppath=3D/etc/emacs:/usr/share/emacs/site-lisp > --without-compress-install --without-hesiod --without-pop > --with-file-notification=3Dinotify --with-pdumper --enable-acl > --enable-xattr --with-dbus --with-modules --with-gameuser=3D:gamestat > --with-libgmp --with-gpm --with-native-compilation=3Daot --with-json > --without-kerberos --without-kerberos5 --with-lcms2 --with-xml2 > --with-mailutils --without-selinux --without-small-ja-dic > --with-sqlite3 --with-gnutls --with-libsystemd --with-threads > --with-tree-sitter --without-wide-int --with-sound=3Dalsa --with-zlib > --with-pgtk --without-x --without-ns --with-toolkit-scroll-bars > --without-gconf --without-gsettings --with-harfbuzz --with-libotf > --with-m17n-flt --with-xwidgets --with-gif --with-jpeg --with-png > --with-rsvg --with-tiff --with-webp --without-imagemagick > --with-dumping=3Dpdumper 'CFLAGS=3D-freport-bug -O3 -ggdb3 -pipe > -fdiagnostics-color=3Dalways -march=3Dx86-64-v2 -flto' 'LDFLAGS=3D-Wl,-O= 1 > -Wl,--as-needed -O3 -Wl,-O3 -pipe -fdiagnostics-color=3Dalways > -Wl,--defsym=3D__gentoo_check_ldflags__=3D0 -Wl,-z,pack-relative-relocs > -Wl,--build-id -flto'' > > Configured features: > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 > LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER > PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS > TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB > > Important settings: > value of $LC_TIME: en_GB.UTF-8 > value of $LANG: en_US.utf8 > locale-coding-system: utf-8-unix > > Major mode: Fundamental > > Minor modes in effect: > global-git-commit-mode: t > magit-auto-revert-mode: t > TeX-PDF-mode: t > diff-hl-flydiff-mode: t > global-jinx-mode: t > savehist-mode: t > save-place-mode: t > desktop-save-mode: t > global-hl-line-mode: t > mu4e-modeline-mode: t > corfu-popupinfo-mode: t > global-corfu-mode: t > corfu-mode: t > marginalia-mode: t > vertico-mouse-mode: t > vertico-mode: t > which-key-mode: t > global-display-fill-column-indicator-mode: t > display-fill-column-indicator-mode: t > which-function-mode: t > electric-pair-mode: t > global-whitespace-mode: t > override-global-mode: t > tooltip-mode: t > global-eldoc-mode: t > show-paren-mode: t > electric-indent-mode: t > mouse-wheel-mode: t > tab-bar-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > blink-cursor-mode: t > minibuffer-regexp-mode: t > column-number-mode: t > line-number-mode: t > indent-tabs-mode: t > transient-mark-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > > Load-path shadows: > /usr/share/emacs/site-lisp/cmake-mode hides /usr/share/emacs/site-lisp/cm= ake/cmake-mode > /usr/share/emacs/site-lisp/desktop-entry-mode hides /usr/share/emacs/site= -lisp/desktop-file-utils/desktop-entry-mode > /usr/share/emacs/site-lisp/ninja/ninja-mode hides /usr/share/emacs/site-l= isp/ninja-kitware/ninja-mode > /usr/share/emacs/site-lisp/transient/transient hides /usr/share/emacs/30.= 0.50/lisp/transient > > Features: > (shadow emacsbug view woman man org-clock dabbrev cape completion > image-file image-converter sort smiley gnus-cite mm-archive mail-extr qp > textsec uni-scripts idna-mapping ucs-normalize uni-confusable > textsec-check magit-bookmark git-rebase magit-extras > magit-sparse-checkout magit-gitignore magit-ediff ediff ediff-merg > ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util > magit-subtree magit-patch magit-submodule magit-blame magit-stash > magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone > magit-remote magit-commit magit-sequence magit-notes magit-worktree > magit-tag magit-merge magit-branch magit-reset magit-files magit-refs > magit-status magit package url-handlers magit-repos magit-apply > magit-wip magit-log magit-diff smerge-mode git-commit log-edit > magit-core magit-autorevert magit-margin magit-transient magit-process > with-editor comp comp-cstr server magit-mode transient magit-git > magit-base magit-section cursor-sensor face-remap shortdoc pulse > consult-xref disass misearch multi-isearch help-fns radix-tree cl-print > cus-start eglot external-completion jsonrpc xref ert debug backtrace > tramp-cache time-stamp consult pcmpl-unix em-unix em-term term ehelp > em-script em-prompt em-pred em-ls em-hist em-glob em-extpipe em-cmpl > em-dirs em-basic em-banner em-alias esh-mode esh-var eshell esh-cmd > esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util > vertico-directory add-log tar-mode arc-mode archive-mode font-latex > preview latex latex-flymake tex-ispell tex-style tex-mode tex-info tex > crm texmathp texinfo texinfo-loaddefs typescript-mode mhtml-mode > css-mode js c-ts-common conf-mode flycheck-pkgcheck meson-mode tcl > ruby-mode cperl-mode rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid > rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn > nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode facemenu nxml-util > nxml-enc xmltok flymake-cc flymake compile warnings yaml-mode > autoconf-mode python project pcase dired-aux make-mode ld-script m4-mode > info cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align > cc-engine cc-vars cc-defs autorevert vc-git diff-hl-flydiff diff diff-hl > log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode jinx > ebuild-mode skeleton sh-script smie treesit executable > display-line-numbers oc-basic org-element org-persist org-id org-refile > avl-tree generator ol-eww eww url-queue mm-url ol-rmail ol-mhe ol-irc > ol-info ol-gnus nnselect ol-docview doc-view filenotify jka-compr > image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi > savehist saveplace tramp-sh tramp trampver tramp-integration files-x > tramp-message tramp-compat xdg shell tramp-loaddefs desktop frameset > cus-load mu4e mu4e-org mu4e-notification notifications mu4e-main > mu4e-view thingatpt gnus-art mm-uu mml2015 mm-view mml-smime smime > gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus > comp-run comp-common gnus-cloud nnimap nnmail mail-source utf7 nnoo > parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus nnheader > range wid-edit mu4e-headers mu4e-compose mu4e-draft mu4e-actions > smtpmail mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message > shr pixel-fill kinsoku url-file browse-url url url-proxy url-privacy > url-expand url-methods url-history url-cookie generate-lisp-file > url-domsuf url-util flow-fill mule-util hl-line mu4e-contacts > mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-server > mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window bookmark pp > ido message sendmail mailcap yank-media puny dired dired-loaddefs rfc822 > mml mml-sec epa derived epg rfc6068 epg-config gnus-util > text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 > rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils > gmm-utils mailheader mu4e-obsolete auth-source-pass url-parse url-vars > auth-source eieio eieio-core password-cache modus-vivendi-tinted-theme > modus-themes kind-icon svg-lib color svg dom xml corfu-popupinfo corfu > orderless marginalia vertico-mouse vertico compat flycheck json map dash > org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src > ob-comint org-pcomplete pcomplete comint ansi-osc ansi-color org-list > org-footnote org-faces org-entities time-date noutline outline > ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx org-fold > org-fold-core org-keys oc org-loaddefs find-func cal-menu calendar > cal-loaddefs org-version org-compat org-macs format-spec which-key > ace-window subr-x avy ring edmacro kmacro byte-opt > display-fill-column-indicator disp-table which-func imenu elec-pair > icons whitespace cl-macs gv cl-extra help-mode cl-seq use-package > use-package-ensure use-package-delight use-package-diminish > use-package-bind-key bind-key easy-mmode use-package-core cl-loaddefs > cl-lib bytecomp byte-compile site-gentoo preview-latex ess-autoloads > ess-generics tex-site rmc iso-transl tooltip cconv eldoc paren electric > uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel > term/pgtk-win pgtk-win term/common-win pgtk-dnd touch-screen tool-bar > dnd fontset image regexp-opt fringe tabulated-list replace newcomment > text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow > isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax > font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic > indonesian philippine cham georgian utf-8-lang misc-lang vietnamese > tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek > romanian slovak czech european ethiopic indian cyrillic chinese > composite emoji-zwj charscript charprop case-table epa-hook > jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs > theme-loaddefs faces cus-face macroexp files window text-properties > overlay sha1 md5 base64 format env code-pages mule custom widget keymap > hashtable-print-readable backquote threads xwidget-internal dbusbind > inotify dynamic-setting font-render-setting cairo gtk pgtk lcms2 > multi-tty move-toolbar make-network-process native-compile emacs) > > Memory information: > ((conses 16 1820713 3119067) (symbols 48 62485 159) (strings 32 319528 93= 051) > (string-bytes 1 11499903) (vectors 16 193722) (vector-slots 8 3684047 27= 41445) > (floats 8 936 13963) (intervals 56 100361 18396) (buffers 992 330)) > -- > Arsen Arsenovi=C4=87 -- Jo=C3=A3o T=C3=A1vora