GNU logs - #73496, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#73496: 30.0.91; Eglot (and clangd) out of sync after switching git branches in magit
Resent-From: Mikael Springer <mikael.springer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Sep 2024 09:46:02 +0000
Resent-Message-ID: <handler.73496.B.17273439536229 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 73496
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 73496 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17273439536229
          (code B ref -1); Thu, 26 Sep 2024 09:46:02 +0000
Received: (at submit) by debbugs.gnu.org; 26 Sep 2024 09:45:53 +0000
Received: from localhost ([127.0.0.1]:54351 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1stl4B-0001cA-2v
	for submit <at> debbugs.gnu.org; Thu, 26 Sep 2024 05:45:53 -0400
Received: from lists.gnu.org ([209.51.188.17]:57432)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mikael.springer@HIDDEN>) id 1stjkl-0004lr-HN
 for submit <at> debbugs.gnu.org; Thu, 26 Sep 2024 04:21:37 -0400
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 <mikael.springer@HIDDEN>)
 id 1stjkJ-0007Oi-U9
 for bug-gnu-emacs@HIDDEN; Thu, 26 Sep 2024 04:21:08 -0400
Received: from mail-40131.protonmail.ch ([185.70.40.131])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mikael.springer@HIDDEN>)
 id 1stjkG-0002M0-9v
 for bug-gnu-emacs@HIDDEN; Thu, 26 Sep 2024 04:21:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1727338854; x=1727598054;
 bh=V7wPI9eMt1oRsysQb0CWg9YqLst3ilM/PnfBomc2vTg=;
 h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date:
 Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector;
 b=B4G7AXDjs53Ty1Y+O4+5ETG7RDcH3E/7/+XEd/KdidQM70EQRDVPl7IIcZj5C9mX4
 00bVC236qzD9RoICjfRToZrI5CilQcm11e49lCjoXLl4knX3Fvhpb3G3bYwVK5kx5V
 jh1OwMSHYvDfV6BHsE3dIAi3g3t476S09rvsg6pMpUPrKCPSMtpEiqE+DqFagMoiO8
 /z87RzT6xcrZGjTdSS3b/SSDL9kjxWKPul+xN3y3iCD2SJSfrKDj7t9slgJb9iC993
 SIkQ0QN6+5AZG4BuqptyLE6BugDDOJfnpKZ6SkYT0gHaFntzlHobb3ctZQXIGXn0fU
 Rd7APzWjHk6kg==
Date: Thu, 26 Sep 2024 08:20:52 +0000
From: Mikael Springer <mikael.springer@HIDDEN>
Message-ID: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
Feedback-ID: 14037015:user:proton
X-Pm-Message-ID: 52f97aa1675da34de84e04361fb153630c6b37ec
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=185.70.40.131;
 envelope-from=mikael.springer@HIDDEN; helo=mail-40131.protonmail.ch
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Mailman-Approved-At: Thu, 26 Sep 2024 05:45:41 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


1. Visit buffer with C++ code -> Eglot starts.
2. Listing references for a variable in Eglot works.
3. Switch Git branch in magit.
4. Go back to C++ buffer. Listing references for a variable using Eglot
does not work, error message in echo buffer; "jsonrpc-request:
jsonrpc-error: "request id=3D44 failed:", (jsonrpc-error-code . -32602),
(jsonrpc-error-message . "trying to get AST for non-added document"),
(jsonrpc-error-data)"
5. Closing the buffer and opening it again fixes the problem, or doing
eglot-reconnect also fixes the problem, listing references is working
again.
6. This is true for all open C++ buffers handled by Eglot before the
branch switch.



In GNU Emacs 30.0.91 (build 1, aarch64-apple-darwin23.6.0, NS
appkit-2487.70 Version 14.6.1 (Build 23G93)) of 2024-09-16 built on
phobos.local
Windowing system distributor 'Apple', version 10.3.2566
System Description: macOS 15.0

Configured using:
'configure --disable-dependency-tracking --disable-silent-rules
--enable-locallisppath=3D/opt/homebrew/share/emacs/site-lisp
--infodir=3D/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/info/emacs
--prefix=3D/opt/homebrew/Cellar/emacs-plus@30/30.0.91 --with-xml2
--with-gnutls --with-native-compilation=3Daot --without-compress-install
--without-dbus --with-imagemagick --with-modules --with-rsvg
--with-webp --with-ns --disable-ns-self-contained 'CFLAGS=3D-O2
-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT
-I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include'
'LDFLAGS=3D-L/opt/homebrew/lib/gcc/14 -I/opt/homebrew/opt/gcc/include
-I/opt/homebrew/opt/libgccjit/include''

Configured features:
ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG LCMS2 LIBXML2 MODULES
NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB

Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix

Major mode: C++//

Minor modes in effect:
eldoc-box-hover-mode: t
company-box-mode: t
display-line-numbers-mode: t
smartparens-mode: t
rainbow-delimiters-mode: t
yas-minor-mode: t
breadcrumb-mode: t
breadcrumb-local-mode: t
copilot-mode: t
hexl-follow-ascii: t
delete-selection-mode: t
s3ed-mode: t
eglot--managed-mode: t
flymake-mode: t
global-treesit-auto-mode: t
recentf-mode: t
pdf-occur-global-minor-mode: t
google-this-mode: t
which-key-mode: t
treemacs-filewatch-mode: t
treemacs-follow-mode: t
treemacs-git-mode: t
treemacs-fringe-indicator-mode: t
eshell-syntax-highlighting-global-mode: t
git-gutter-mode: t
bug-reference-prog-mode: t
global-git-commit-mode: t
magit-auto-revert-mode: t
server-mode: t
csv-field-index-mode: t
pyvenv-tracking-mode: t
pyvenv-mode: t
pulsar-global-mode: t
pulsar-mode: t
dimmer-mode: t
desktop-save-mode: t
ns-auto-titlebar-mode: t
windmove-mode: t
global-auto-revert-mode: t
save-place-mode: t
global-emojify-mode: t
emojify-mode: t
display-battery-mode: t
doom-modeline-mode: t
company-quickhelp-mode: t
company-quickhelp-local-mode: t
company-mode: t
activities-mode: t
projectile-mode: t
helm-mode: t
helm-minibuffer-history-mode: t
helm-autoresize-mode: t
async-bytecomp-package-mode: t
override-global-mode: t
hl-line-mode: t
tooltip-mode: t
global-eldoc-mode: t
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:
/Users/mikael/.emacs.d/elpa/cmake-mode-20240814.1725/cmake-mode hides=20
/opt/homebrew/share/emacs/site-lisp/cmake/cmake-mode
/Users/mikael/.emacs.d/elpa/transient-20240918.1138/transient hides=20
/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/transie=
nt=20

/Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig hides=20
/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorc=
onfig
/Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-conf-mod=
e=20
hides=20
/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorc=
onfig-conf-mode
/Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-core=20
hides=20
/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorc=
onfig-core
/Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-tools=20
hides=20
/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorc=
onfig-tools
/Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-core-han=
dle=20
hides=20
/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorc=
onfig-core-handle
/Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-fnmatch=
=20
hides=20
/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorc=
onfig-fnmatch

Features:
(shadow mail-extr emacsbug vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs
vc-rcs log-view magit-extras emacsql-sqlite-builtin sqlite help-fns
radix-tree cl-print transpose-frame winner tramp-archive tramp-gvfs
helm-command helm-elisp helm-eval edebug helm-info heaven-and-hell
noxml-fold rng-cmpct xml-format reformatter rng-nxml rng-valid nxml-mode
nxml-outln nxml-rap sgml-mode elfeed-show elfeed-search elfeed-csv
elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib xml-query sql view
json-mode json-snatcher plantuml-mode vc eldoc-box checkdoc
aggressive-indent company-box company-box-doc frame-local
company-box-icons company-oddmuse company-keywords company-etags
company-gtags company-dabbrev-code company-dabbrev company-files
company-clang company-capf company-cmake company-semantic
company-template company-bbdb display-line-numbers smartparens loadhist
rainbow-delimiters yasnippet-snippets yasnippet breadcrumb copilot
copilot-balancer c++-ts-mode c-ts-mode dape hexl gdb-mi gud repeat
toc-org org-bullets org-appear flyspell ispell org-indent oc-basic
ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu
mml2015 mm-view mml-smime smime dig ol-docview doc-view ol-bibtex bibtex
ol-bbdb ol-w3m ol-doi org-link-doi time delsel ms-remote dired-rsync
rsync-mode spinner ms-ai ms-music spotify ms-devops terraform-doc
terraform-mode hcl-mode ms-aws s3ed s3ed-mode s3ed-io s3ed-util
ms-spelling ms-privacy pinentry ms-math gnuplot info-look ms-eglot
xcscope eglot-hierarchy hierarchy eglot external-completion jsonrpc
flymake ert debug backtrace ms-treesitter treesit-auto ms-draw ms-utils
restclient pandoc-mode pandoc-mode-utils dashboard dashboard-widgets
ffap recentf tree-widget restart-emacs ms-read-write pdf-occur tablist
tablist-filter semantic/wisent/comp semantic/wisent
semantic/wisent/wisent semantic/util-modes semantic/util semantic
semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch
pdf-misc pdf-tools cus-edit cus-load pdf-view jka-compr pdf-cache
pdf-info tq pdf-util pdf-macs writeroom-mode visual-fill-column darkroom
ms-browse-and-search ddg-search ddg-mode ddg google-translate
google-translate-default-ui google-translate-core-ui facemenu popup ido
google-translate-core google-translate-backend google-this ms-notebooks
ms-help-docs devdocs-browser eww url-queue mm-url devdocs info-colors
free-keys which-key ms-debug logview datetime extmap ms-news reddigg
promise promise-rejection-tracking promise-finally promise-done
promise-es6-extensions promise-core ms-org ox-confluence ox-jira ox-odt
rng-loc rng-uri rng-parse rng-match rng-pttrn nxml-parse nxml-ns
nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii
ox-publish ox org-attach org-sidebar org-ql-search org-ql-view ov
org-super-agenda org-ql peg ts org-habit org-agenda org-duration
org-element org-persist org-id org-refile org-element-ast avl-tree
org-kanban re-builder org-journal org-crypt cal-iso org-jira
org-jira-sdk jiralib soap-client rng-xsd rng-dt rng-util xsd-regexp
org-clock helm-org-rifle ob-ein ein-cell ein-shared-output
ein-output-area ein-kernel ein-ipdb ein-query ein-events ein-websocket
websocket bindat ein-node ewoc ein-log ein-classes ein-core request ein
ein-utils anaphora deferred ob-octave ob-dot ob-sqlite ob-sql
ob-makefile ob-C ob-python python ob-plantuml ob-shell ms-file-browse
all-the-icons-dired ranger dired+ image-file image-converter
dired-subtree dired-hacks-utils dired-aux ls-lisp dirvish treemacs-magit
treemacs-projectile treemacs-all-the-icons treemacs treemacs-header-line
treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-tags
treemacs-interface treemacs-persistence treemacs-filewatch-mode
treemacs-follow-mode treemacs-rendering treemacs-annotations
treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals
treemacs-fringe-indicator treemacs-macros ms-snippets ms-shell mistty
mistty-undo mistty-queue mistty-log mistty-term mistty-changeset
mistty-util multi-vterm vterm vterm-module term/xterm xterm multi-term
eshell-syntax-highlighting em-prompt em-alias eshell-toggle esh-mode
esh-var eshell-git-prompt eat term disp-table ehelp ms-vc vdiff-magit
magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help
ediff-init ediff-util vdiff diffview git-gutter-fringe fringe-helper
git-gutter git-timemachine vc-git vc-dispatcher git-modes gitignore-mode
gitconfig-mode conf-mode gitattributes-mode forge-repos forge-tablist
forge-topics forge-commands forge-semi forge-bitbucket buck forge-gogs
gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy
gsexp ghub let-alist forge-notify forge-revnote forge-pullreq
forge-issue forge-topic yaml eieio-custom bug-reference forge-post
markdown-mode forge-repo forge forge-core forge-db magit-lfs
magit-bookmark 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 magit-repos magit-apply magit-wip magit-log which-func magit-diff
smerge-mode diff diff-mode track-changes git-commit log-edit pcvs-util
add-log magit-core magit-autorevert magit-margin magit-transient
magit-process with-editor server magit-mode transient benchmark
magit-git magit-base magit-section cursor-sensor crm ms-mode csv-mode
sort ninja-mode cmake-mode rst rtf-mode generic groovy-mode ms-web-env
typescript-mode skewer-mode cache-table js2-mode etags fileloop js
c-ts-common cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs imenu simple-httpd ms-python-env
pylint blacken pydoc goto-addr pyvenv eshell esh-cmd esh-ext esh-opt
esh-proc esh-io esh-arg esh-module esh-module-loaddefs esh-util
ms-flymake ms-dumb-jump ms-editor hydra lv prettier editorconfig
editorconfig-core editorconfig-core-handle editorconfig-fnmatch nvm
iter2 generator bookmark+ bookmark+-key dired-x bookmark+-1 gnus-sum shr
pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start
gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec
gnus-int gnus-range gnus-win gnus nnheader range bookmark+-bmu helm-org
org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src
sh-script smie treesit executable ob-comint org-pcomplete org-list
org-footnote org-faces org-entities noutline outline org-version
ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold
org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs
org-compat org-macs bookmark+-lit bookmark+-mac pulsar pulse
auto-highlight-symbol dimmer face-remap color ms-frame desktop frameset
ns-auto-titlebar ms-window golden-ratio windmove ms-buffer autorevert
saveplace vlf-setup vlf vlf-base vlf-tune ms-icons ms-faces emojify
advice apropos tar-mode arc-mode archive-mode ms-themes
doom-themes-ext-treemacs doom-themes-ext-org doom-nord-aurora-theme
doom-themes doom-themes-base ms-modeline diminish battery dbus xml
doom-modeline doom-modeline-segments doom-modeline-env
doom-modeline-core shrink-path ms-company company-quickhelp pos-tip
company ms-projects activities persist bookmark pp helm-rg
ibuffer-projectile helm-projectile tramp-cache time-stamp projectile
lisp-mnt grep compile ibuf-ext ibuffer ibuffer-loaddefs thingatpt
ms-helm helm-xref xref project helm-icons nerd-icons nerd-icons-faces
nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon
nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon
nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline
nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon
treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils
treemacs-logging treemacs-customization pfuture inline ht treemacs-faces
f s dash helm-mode helm-misc helm-files image-dired image-dired-tags
image-dired-external image-dired-util image-mode exif filenotify
helm-buffers all-the-icons all-the-icons-faces data-material
data-weathericons data-octicons data-fileicons data-faicons
data-alltheicons helm-occur helm-tags helm-locate helm-grep helm-regexp
helm-utils helm-help helm-types ms-env helm-osx-app cl list-processes+
list-environment exec-path-from-shell ms-variables ms-package epkg-elpa
epkg-utils epkg-list epkg-desc wid-edit find-func epkg closql
emacsql-sqlite-common emacsql emacsql-compiler eieio-base llama comp
comp-cstr warnings comp-run comp-common compat helm-system-packages helm
helm-global-bindings edmacro kmacro helm-core async-bytecomp helm-source
helm-multi-match helm-lib async tramp-sh tramp trampver
tramp-integration files-x tramp-message tramp-compat xdg shell pcomplete
comint ansi-osc ring parse-time iso8601 format-spec ansi-color
tramp-loaddefs use-package-ensure-system-package system-packages
use-package use-package-delight use-package-diminish
use-package-bind-key bind-key cl-extra help-mode use-package-ensure
use-package-core finder-inf mm-archive message sendmail yank-media dired
dired-loaddefs rfc822 mml mml-sec epa derived gnus-util
text-property-search time-date mailabbrev gmm-utils mailheader mm-decode
mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-http
url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
mail-prsvr url-gw nsm puny epg rfc6068 epg-config a-autoloads
activities-autoloads aggressive-indent-autoloads
all-the-icons-dired-autoloads all-the-icons-ibuffer-autoloads
ansible-autoloads ansible-doc-autoloads apples-mode-autoloads
auto-highlight-symbol-autoloads axe-autoloads blacken-autoloads
breadcrumb-autoloads buffer-move-autoloads bui-autoloads
calibredb-autoloads chatgpt-shell-autoloads cmake-mode-autoloads
company-box-autoloads company-quickhelp-autoloads company-autoloads
copilot-autoloads copilot-chat-autoloads crux-autoloads
csv-mode-autoloads dape-autoloads darkroom-autoloads
dash-at-point-autoloads dashboard-autoloads deadgrep-autoloads
demap-autoloads easy-mmode demap demap-modes hl-line demap-minimap
demap-tools devdocs-autoloads devdocs-browser-autoloads
diffview-autoloads diminish-autoloads dimmer-autoloads
dired-git-info-autoloads dired-narrow-autoloads dired-rsync-autoloads
dired-subtree-autoloads dired-hacks-utils-autoloads dirvish-autoloads
doom-modeline-autoloads doom-themes-autoloads dumb-jump-autoloads
eat-autoloads ein-autoloads deferred-autoloads anaphora-autoloads
eldoc-box-autoloads elfeed-webkit-autoloads elfeed-autoloads
emms-autoloads emojify-autoloads epkg-autoloads
eshell-git-prompt-autoloads eshell-syntax-highlighting-autoloads
eshell-toggle-autoloads exec-path-from-shell-autoloads
expand-region-autoloads faust-mode-autoloads flycheck-plantuml-autoloads
flycheck-autoloads flyspell-correct-helm-autoloads
flyspell-correct-autoloads forge-autoloads closql-autoloads
emacsql-autoloads frame-local-autoloads free-keys-autoloads
ghub-autoloads git-gutter-fringe-autoloads fringe-helper-autoloads
git-gutter-autoloads git-modes-autoloads git-timemachine-autoloads
gnuplot-autoloads golden-ratio-autoloads google-this-autoloads
google-translate-autoloads goto-chg-autoloads gptel-autoloads
groovy-mode-autoloads heaven-and-hell-autoloads
helm-c-yasnippet-autoloads helm-descbinds-autoloads helm-icons-autoloads
helm-make-autoloads helm-org-autoloads helm-easymenu
helm-org-rifle-autoloads helm-osx-app-autoloads
helm-projectile-autoloads helm-rg-autoloads
helm-system-packages-autoloads helm-xref-autoloads helm-autoloads
helm-core-autoloads async-autoloads helpful-autoloads
elisp-refs-autoloads hmac-autoloads ibuffer-projectile-autoloads
info-colors-autoloads ini-mode-autoloads json-mode-autoloads rx
json-snatcher-autoloads list-environment-autoloads llama-autoloads
logview-autoloads datetime-autoloads extmap-autoloads lua-mode-autoloads
magit-lfs-autoloads markdown-mode-autoloads mimetypes-autoloads
minions-autoloads mistty-autoloads multi-term-autoloads
multi-vterm-autoloads nerd-icons-autoloads nov-autoloads esxml-autoloads
kv-autoloads noxml-fold-autoloads ns-auto-titlebar-autoloads
org-appear-autoloads org-bullets-autoloads org-jira-autoloads
org-journal-autoloads org-kanban-autoloads org-sidebar-autoloads
org-ql-autoloads org-super-agenda-autoloads origami-autoloads
ov-autoloads ox-jira-autoloads pandoc-mode-autoloads pdf-tools-autoloads
persist-autoloads pinentry-autoloads plantuml-mode-autoloads
polymode-autoloads popup-autoloads pos-tip-autoloads prettier-autoloads
editorconfig-autoloads nvm-autoloads iter2-autoloads pulsar-autoloads
pydoc-autoloads pylint-autoloads pyvenv-autoloads
rainbow-delimiters-autoloads ranger-autoloads realgud-ipdb-autoloads
realgud-lldb-autoloads realgud-autoloads realgud-recursive-autoloads
loc-changes-autoloads load-relative-autoloads reddigg-autoloads
restart-emacs-autoloads restclient-autoloads rsync-mode-autoloads
rust-mode-autoloads s3ed-autoloads shell-maker-autoloads
shrink-path-autoloads f-autoloads skewer-mode-autoloads
js2-mode-autoloads simple-httpd-autoloads smartparens-autoloads
spinner-autoloads spotify-autoloads string-inflection-autoloads
sublimity-autoloads system-packages-autoloads tablist-autoloads
terraform-doc-autoloads promise-autoloads request-autoloads
terraform-mode-autoloads hcl-mode-autoloads test-simple-autoloads
toc-org-autoloads transpose-frame-autoloads
treemacs-all-the-icons-autoloads all-the-icons-autoloads
treemacs-magit-autoloads treemacs-projectile-autoloads
treemacs-autoloads cfrs-autoloads posframe-autoloads ht-autoloads
pfuture-autoloads ace-window-autoloads avy-autoloads
projectile-autoloads treepy-autoloads treesit-auto-autoloads
ts-autoloads s-autoloads typescript-mode-autoloads uuidgen-autoloads
vdiff-magit-autoloads magit-autoloads pcase transient-autoloads
magit-section-autoloads dash-autoloads vdiff-autoloads hydra-autoloads
lv-autoloads vlf-autoloads vterm-autoloads web-mode-autoloads
websocket-autoloads wfnames-autoloads with-editor-autoloads info
writeroom-mode-autoloads visual-fill-column-autoloads xcscope-autoloads
xml-format-autoloads reformatter-autoloads xmlgen-autoloads
yaml-autoloads yaml-mode-autoloads yapfify-autoloads
yasnippet-snippets-autoloads yasnippet-autoloads package browse-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win 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 kqueue cocoa ns lcms2
multi-tty make-network-process native-compile emacs)

Memory information:
((conses 16 3816539 895611) (symbols 48 101299 35)
(strings 32 1940307 58790) (string-bytes 1 156393461)
(vectors 16 219328) (vector-slots 8 3204831 423739)
(floats 8 11561 13488) (intervals 56 61264 8007) (buffers 992 74))






Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Mikael Springer <mikael.springer@HIDDEN>
Subject: bug#73496: Acknowledgement (30.0.91; Eglot (and clangd) out of
 sync after switching git branches in magit)
Message-ID: <handler.73496.B.17273439536229.ack <at> debbugs.gnu.org>
References: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
X-Gnu-PR-Message: ack 73496
X-Gnu-PR-Package: emacs
Reply-To: 73496 <at> debbugs.gnu.org
Date: Thu, 26 Sep 2024 09:46:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 73496 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
73496: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73496
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#73496: 30.0.91; Eglot (and clangd) out of sync after switching git branches in magit
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Sep 2024 10:10:02 +0000
Resent-Message-ID: <handler.73496.B73496.172734535812359 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 73496
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Mikael Springer <mikael.springer@HIDDEN>, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Cc: 73496 <at> debbugs.gnu.org
Received: via spool by 73496-submit <at> debbugs.gnu.org id=B73496.172734535812359
          (code B ref 73496); Thu, 26 Sep 2024 10:10:02 +0000
Received: (at 73496) by debbugs.gnu.org; 26 Sep 2024 10:09:18 +0000
Received: from localhost ([127.0.0.1]:55423 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1stlQy-0003DE-NO
	for submit <at> debbugs.gnu.org; Thu, 26 Sep 2024 06:09:18 -0400
Received: from eggs.gnu.org ([209.51.188.92]:36468)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1stlQv-0003Cu-JM
 for 73496 <at> debbugs.gnu.org; Thu, 26 Sep 2024 06:09:15 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1stlQO-00071R-Iv; Thu, 26 Sep 2024 06:08:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=ErUI+f9Y6Lx8IrueQQtGeQ4pAHvtL1oUrNseyKRrn44=; b=GQ1HK4/lFN+M2WkVgjhB
 LXQmkNXFK6pQ3CTqKTcJ5aQ7KMD3uRlmpGLzZOufFdcL3ygxN2wcFGLlB7JHDJSHcdRoTuwC9CC4U
 KIKY6sFj3Ss4NX1LQffVfHlAMfgWZU7RhmQ3sW808NJUjHKm2s4kML9ZjLnC14guLbax/o9gsTegl
 Oa7lWYbSZGFfa/Df2uqe3jFhK3OXP/KsfOJwNoTD6z5agwosXc+UvHcrB11NA12NyzwWHt64GV+0a
 Gx4raizJxQpj7AxM6UWOu05ADn1iqcfJtsqDD3M2KRaDKDcZiQOZjCFfYmGWQBg2LdIB+CBvHEujW
 LbGrjYxFqnSMmw==;
Date: Thu, 26 Sep 2024 13:08:37 +0300
Message-Id: <864j62buca.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
References: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 26 Sep 2024 08:20:52 +0000
> From:  Mikael Springer via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> 
> 1. Visit buffer with C++ code -> Eglot starts.
> 2. Listing references for a variable in Eglot works.
> 3. Switch Git branch in magit.
> 4. Go back to C++ buffer. Listing references for a variable using Eglot
> does not work, error message in echo buffer; "jsonrpc-request:
> jsonrpc-error: "request id=44 failed:", (jsonrpc-error-code . -32602),
> (jsonrpc-error-message . "trying to get AST for non-added document"),
> (jsonrpc-error-data)"
> 5. Closing the buffer and opening it again fixes the problem, or doing
> eglot-reconnect also fixes the problem, listing references is working
> again.
> 6. This is true for all open C++ buffers handled by Eglot before the
> branch switch.

CC'ing João.

Mikael, FTR, do you have auto-revert enabled for the Git repository in
question?

> In GNU Emacs 30.0.91 (build 1, aarch64-apple-darwin23.6.0, NS
> appkit-2487.70 Version 14.6.1 (Build 23G93)) of 2024-09-16 built on
> phobos.local
> Windowing system distributor 'Apple', version 10.3.2566
> System Description: macOS 15.0
> 
> Configured using:
> 'configure --disable-dependency-tracking --disable-silent-rules
> --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp
> --infodir=/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/info/emacs
> --prefix=/opt/homebrew/Cellar/emacs-plus@30/30.0.91 --with-xml2
> --with-gnutls --with-native-compilation=aot --without-compress-install
> --without-dbus --with-imagemagick --with-modules --with-rsvg
> --with-webp --with-ns --disable-ns-self-contained 'CFLAGS=-O2
> -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT
> -I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include'
> 'LDFLAGS=-L/opt/homebrew/lib/gcc/14 -I/opt/homebrew/opt/gcc/include
> -I/opt/homebrew/opt/libgccjit/include''
> 
> Configured features:
> ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG LCMS2 LIBXML2 MODULES
> NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB
> 
> Important settings:
> value of $LC_ALL: en_US.UTF-8
> value of $LANG: en_US.UTF-8
> locale-coding-system: utf-8-unix
> 
> Major mode: C++//
> 
> Minor modes in effect:
> eldoc-box-hover-mode: t
> company-box-mode: t
> display-line-numbers-mode: t
> smartparens-mode: t
> rainbow-delimiters-mode: t
> yas-minor-mode: t
> breadcrumb-mode: t
> breadcrumb-local-mode: t
> copilot-mode: t
> hexl-follow-ascii: t
> delete-selection-mode: t
> s3ed-mode: t
> eglot--managed-mode: t
> flymake-mode: t
> global-treesit-auto-mode: t
> recentf-mode: t
> pdf-occur-global-minor-mode: t
> google-this-mode: t
> which-key-mode: t
> treemacs-filewatch-mode: t
> treemacs-follow-mode: t
> treemacs-git-mode: t
> treemacs-fringe-indicator-mode: t
> eshell-syntax-highlighting-global-mode: t
> git-gutter-mode: t
> bug-reference-prog-mode: t
> global-git-commit-mode: t
> magit-auto-revert-mode: t
> server-mode: t
> csv-field-index-mode: t
> pyvenv-tracking-mode: t
> pyvenv-mode: t
> pulsar-global-mode: t
> pulsar-mode: t
> dimmer-mode: t
> desktop-save-mode: t
> ns-auto-titlebar-mode: t
> windmove-mode: t
> global-auto-revert-mode: t
> save-place-mode: t
> global-emojify-mode: t
> emojify-mode: t
> display-battery-mode: t
> doom-modeline-mode: t
> company-quickhelp-mode: t
> company-quickhelp-local-mode: t
> company-mode: t
> activities-mode: t
> projectile-mode: t
> helm-mode: t
> helm-minibuffer-history-mode: t
> helm-autoresize-mode: t
> async-bytecomp-package-mode: t
> override-global-mode: t
> hl-line-mode: t
> tooltip-mode: t
> global-eldoc-mode: t
> 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:
> /Users/mikael/.emacs.d/elpa/cmake-mode-20240814.1725/cmake-mode hides 
> /opt/homebrew/share/emacs/site-lisp/cmake/cmake-mode
> /Users/mikael/.emacs.d/elpa/transient-20240918.1138/transient hides 
> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/transient 
> 
> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig hides 
> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorconfig
> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-conf-mode 
> hides 
> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorconfig-conf-mode
> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-core 
> hides 
> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorconfig-core
> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-tools 
> hides 
> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorconfig-tools
> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-core-handle 
> hides 
> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorconfig-core-handle
> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-fnmatch 
> hides 
> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/editorconfig-fnmatch
> 
> Features:
> (shadow mail-extr emacsbug vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs
> vc-rcs log-view magit-extras emacsql-sqlite-builtin sqlite help-fns
> radix-tree cl-print transpose-frame winner tramp-archive tramp-gvfs
> helm-command helm-elisp helm-eval edebug helm-info heaven-and-hell
> noxml-fold rng-cmpct xml-format reformatter rng-nxml rng-valid nxml-mode
> nxml-outln nxml-rap sgml-mode elfeed-show elfeed-search elfeed-csv
> elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib xml-query sql view
> json-mode json-snatcher plantuml-mode vc eldoc-box checkdoc
> aggressive-indent company-box company-box-doc frame-local
> company-box-icons company-oddmuse company-keywords company-etags
> company-gtags company-dabbrev-code company-dabbrev company-files
> company-clang company-capf company-cmake company-semantic
> company-template company-bbdb display-line-numbers smartparens loadhist
> rainbow-delimiters yasnippet-snippets yasnippet breadcrumb copilot
> copilot-balancer c++-ts-mode c-ts-mode dape hexl gdb-mi gud repeat
> toc-org org-bullets org-appear flyspell ispell org-indent oc-basic
> ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu
> mml2015 mm-view mml-smime smime dig ol-docview doc-view ol-bibtex bibtex
> ol-bbdb ol-w3m ol-doi org-link-doi time delsel ms-remote dired-rsync
> rsync-mode spinner ms-ai ms-music spotify ms-devops terraform-doc
> terraform-mode hcl-mode ms-aws s3ed s3ed-mode s3ed-io s3ed-util
> ms-spelling ms-privacy pinentry ms-math gnuplot info-look ms-eglot
> xcscope eglot-hierarchy hierarchy eglot external-completion jsonrpc
> flymake ert debug backtrace ms-treesitter treesit-auto ms-draw ms-utils
> restclient pandoc-mode pandoc-mode-utils dashboard dashboard-widgets
> ffap recentf tree-widget restart-emacs ms-read-write pdf-occur tablist
> tablist-filter semantic/wisent/comp semantic/wisent
> semantic/wisent/wisent semantic/util-modes semantic/util semantic
> semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch
> pdf-misc pdf-tools cus-edit cus-load pdf-view jka-compr pdf-cache
> pdf-info tq pdf-util pdf-macs writeroom-mode visual-fill-column darkroom
> ms-browse-and-search ddg-search ddg-mode ddg google-translate
> google-translate-default-ui google-translate-core-ui facemenu popup ido
> google-translate-core google-translate-backend google-this ms-notebooks
> ms-help-docs devdocs-browser eww url-queue mm-url devdocs info-colors
> free-keys which-key ms-debug logview datetime extmap ms-news reddigg
> promise promise-rejection-tracking promise-finally promise-done
> promise-es6-extensions promise-core ms-org ox-confluence ox-jira ox-odt
> rng-loc rng-uri rng-parse rng-match rng-pttrn nxml-parse nxml-ns
> nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii
> ox-publish ox org-attach org-sidebar org-ql-search org-ql-view ov
> org-super-agenda org-ql peg ts org-habit org-agenda org-duration
> org-element org-persist org-id org-refile org-element-ast avl-tree
> org-kanban re-builder org-journal org-crypt cal-iso org-jira
> org-jira-sdk jiralib soap-client rng-xsd rng-dt rng-util xsd-regexp
> org-clock helm-org-rifle ob-ein ein-cell ein-shared-output
> ein-output-area ein-kernel ein-ipdb ein-query ein-events ein-websocket
> websocket bindat ein-node ewoc ein-log ein-classes ein-core request ein
> ein-utils anaphora deferred ob-octave ob-dot ob-sqlite ob-sql
> ob-makefile ob-C ob-python python ob-plantuml ob-shell ms-file-browse
> all-the-icons-dired ranger dired+ image-file image-converter
> dired-subtree dired-hacks-utils dired-aux ls-lisp dirvish treemacs-magit
> treemacs-projectile treemacs-all-the-icons treemacs treemacs-header-line
> treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-tags
> treemacs-interface treemacs-persistence treemacs-filewatch-mode
> treemacs-follow-mode treemacs-rendering treemacs-annotations
> treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals
> treemacs-fringe-indicator treemacs-macros ms-snippets ms-shell mistty
> mistty-undo mistty-queue mistty-log mistty-term mistty-changeset
> mistty-util multi-vterm vterm vterm-module term/xterm xterm multi-term
> eshell-syntax-highlighting em-prompt em-alias eshell-toggle esh-mode
> esh-var eshell-git-prompt eat term disp-table ehelp ms-vc vdiff-magit
> magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help
> ediff-init ediff-util vdiff diffview git-gutter-fringe fringe-helper
> git-gutter git-timemachine vc-git vc-dispatcher git-modes gitignore-mode
> gitconfig-mode conf-mode gitattributes-mode forge-repos forge-tablist
> forge-topics forge-commands forge-semi forge-bitbucket buck forge-gogs
> gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy
> gsexp ghub let-alist forge-notify forge-revnote forge-pullreq
> forge-issue forge-topic yaml eieio-custom bug-reference forge-post
> markdown-mode forge-repo forge forge-core forge-db magit-lfs
> magit-bookmark 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 magit-repos magit-apply magit-wip magit-log which-func magit-diff
> smerge-mode diff diff-mode track-changes git-commit log-edit pcvs-util
> add-log magit-core magit-autorevert magit-margin magit-transient
> magit-process with-editor server magit-mode transient benchmark
> magit-git magit-base magit-section cursor-sensor crm ms-mode csv-mode
> sort ninja-mode cmake-mode rst rtf-mode generic groovy-mode ms-web-env
> typescript-mode skewer-mode cache-table js2-mode etags fileloop js
> c-ts-common cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
> cc-align cc-engine cc-vars cc-defs imenu simple-httpd ms-python-env
> pylint blacken pydoc goto-addr pyvenv eshell esh-cmd esh-ext esh-opt
> esh-proc esh-io esh-arg esh-module esh-module-loaddefs esh-util
> ms-flymake ms-dumb-jump ms-editor hydra lv prettier editorconfig
> editorconfig-core editorconfig-core-handle editorconfig-fnmatch nvm
> iter2 generator bookmark+ bookmark+-key dired-x bookmark+-1 gnus-sum shr
> pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start
> gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec
> gnus-int gnus-range gnus-win gnus nnheader range bookmark+-bmu helm-org
> org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src
> sh-script smie treesit executable ob-comint org-pcomplete org-list
> org-footnote org-faces org-entities noutline outline org-version
> ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold
> org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs
> org-compat org-macs bookmark+-lit bookmark+-mac pulsar pulse
> auto-highlight-symbol dimmer face-remap color ms-frame desktop frameset
> ns-auto-titlebar ms-window golden-ratio windmove ms-buffer autorevert
> saveplace vlf-setup vlf vlf-base vlf-tune ms-icons ms-faces emojify
> advice apropos tar-mode arc-mode archive-mode ms-themes
> doom-themes-ext-treemacs doom-themes-ext-org doom-nord-aurora-theme
> doom-themes doom-themes-base ms-modeline diminish battery dbus xml
> doom-modeline doom-modeline-segments doom-modeline-env
> doom-modeline-core shrink-path ms-company company-quickhelp pos-tip
> company ms-projects activities persist bookmark pp helm-rg
> ibuffer-projectile helm-projectile tramp-cache time-stamp projectile
> lisp-mnt grep compile ibuf-ext ibuffer ibuffer-loaddefs thingatpt
> ms-helm helm-xref xref project helm-icons nerd-icons nerd-icons-faces
> nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon
> nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon
> nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline
> nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon
> treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils
> treemacs-logging treemacs-customization pfuture inline ht treemacs-faces
> f s dash helm-mode helm-misc helm-files image-dired image-dired-tags
> image-dired-external image-dired-util image-mode exif filenotify
> helm-buffers all-the-icons all-the-icons-faces data-material
> data-weathericons data-octicons data-fileicons data-faicons
> data-alltheicons helm-occur helm-tags helm-locate helm-grep helm-regexp
> helm-utils helm-help helm-types ms-env helm-osx-app cl list-processes+
> list-environment exec-path-from-shell ms-variables ms-package epkg-elpa
> epkg-utils epkg-list epkg-desc wid-edit find-func epkg closql
> emacsql-sqlite-common emacsql emacsql-compiler eieio-base llama comp
> comp-cstr warnings comp-run comp-common compat helm-system-packages helm
> helm-global-bindings edmacro kmacro helm-core async-bytecomp helm-source
> helm-multi-match helm-lib async tramp-sh tramp trampver
> tramp-integration files-x tramp-message tramp-compat xdg shell pcomplete
> comint ansi-osc ring parse-time iso8601 format-spec ansi-color
> tramp-loaddefs use-package-ensure-system-package system-packages
> use-package use-package-delight use-package-diminish
> use-package-bind-key bind-key cl-extra help-mode use-package-ensure
> use-package-core finder-inf mm-archive message sendmail yank-media dired
> dired-loaddefs rfc822 mml mml-sec epa derived gnus-util
> text-property-search time-date mailabbrev gmm-utils mailheader mm-decode
> mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-http
> url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
> mail-prsvr url-gw nsm puny epg rfc6068 epg-config a-autoloads
> activities-autoloads aggressive-indent-autoloads
> all-the-icons-dired-autoloads all-the-icons-ibuffer-autoloads
> ansible-autoloads ansible-doc-autoloads apples-mode-autoloads
> auto-highlight-symbol-autoloads axe-autoloads blacken-autoloads
> breadcrumb-autoloads buffer-move-autoloads bui-autoloads
> calibredb-autoloads chatgpt-shell-autoloads cmake-mode-autoloads
> company-box-autoloads company-quickhelp-autoloads company-autoloads
> copilot-autoloads copilot-chat-autoloads crux-autoloads
> csv-mode-autoloads dape-autoloads darkroom-autoloads
> dash-at-point-autoloads dashboard-autoloads deadgrep-autoloads
> demap-autoloads easy-mmode demap demap-modes hl-line demap-minimap
> demap-tools devdocs-autoloads devdocs-browser-autoloads
> diffview-autoloads diminish-autoloads dimmer-autoloads
> dired-git-info-autoloads dired-narrow-autoloads dired-rsync-autoloads
> dired-subtree-autoloads dired-hacks-utils-autoloads dirvish-autoloads
> doom-modeline-autoloads doom-themes-autoloads dumb-jump-autoloads
> eat-autoloads ein-autoloads deferred-autoloads anaphora-autoloads
> eldoc-box-autoloads elfeed-webkit-autoloads elfeed-autoloads
> emms-autoloads emojify-autoloads epkg-autoloads
> eshell-git-prompt-autoloads eshell-syntax-highlighting-autoloads
> eshell-toggle-autoloads exec-path-from-shell-autoloads
> expand-region-autoloads faust-mode-autoloads flycheck-plantuml-autoloads
> flycheck-autoloads flyspell-correct-helm-autoloads
> flyspell-correct-autoloads forge-autoloads closql-autoloads
> emacsql-autoloads frame-local-autoloads free-keys-autoloads
> ghub-autoloads git-gutter-fringe-autoloads fringe-helper-autoloads
> git-gutter-autoloads git-modes-autoloads git-timemachine-autoloads
> gnuplot-autoloads golden-ratio-autoloads google-this-autoloads
> google-translate-autoloads goto-chg-autoloads gptel-autoloads
> groovy-mode-autoloads heaven-and-hell-autoloads
> helm-c-yasnippet-autoloads helm-descbinds-autoloads helm-icons-autoloads
> helm-make-autoloads helm-org-autoloads helm-easymenu
> helm-org-rifle-autoloads helm-osx-app-autoloads
> helm-projectile-autoloads helm-rg-autoloads
> helm-system-packages-autoloads helm-xref-autoloads helm-autoloads
> helm-core-autoloads async-autoloads helpful-autoloads
> elisp-refs-autoloads hmac-autoloads ibuffer-projectile-autoloads
> info-colors-autoloads ini-mode-autoloads json-mode-autoloads rx
> json-snatcher-autoloads list-environment-autoloads llama-autoloads
> logview-autoloads datetime-autoloads extmap-autoloads lua-mode-autoloads
> magit-lfs-autoloads markdown-mode-autoloads mimetypes-autoloads
> minions-autoloads mistty-autoloads multi-term-autoloads
> multi-vterm-autoloads nerd-icons-autoloads nov-autoloads esxml-autoloads
> kv-autoloads noxml-fold-autoloads ns-auto-titlebar-autoloads
> org-appear-autoloads org-bullets-autoloads org-jira-autoloads
> org-journal-autoloads org-kanban-autoloads org-sidebar-autoloads
> org-ql-autoloads org-super-agenda-autoloads origami-autoloads
> ov-autoloads ox-jira-autoloads pandoc-mode-autoloads pdf-tools-autoloads
> persist-autoloads pinentry-autoloads plantuml-mode-autoloads
> polymode-autoloads popup-autoloads pos-tip-autoloads prettier-autoloads
> editorconfig-autoloads nvm-autoloads iter2-autoloads pulsar-autoloads
> pydoc-autoloads pylint-autoloads pyvenv-autoloads
> rainbow-delimiters-autoloads ranger-autoloads realgud-ipdb-autoloads
> realgud-lldb-autoloads realgud-autoloads realgud-recursive-autoloads
> loc-changes-autoloads load-relative-autoloads reddigg-autoloads
> restart-emacs-autoloads restclient-autoloads rsync-mode-autoloads
> rust-mode-autoloads s3ed-autoloads shell-maker-autoloads
> shrink-path-autoloads f-autoloads skewer-mode-autoloads
> js2-mode-autoloads simple-httpd-autoloads smartparens-autoloads
> spinner-autoloads spotify-autoloads string-inflection-autoloads
> sublimity-autoloads system-packages-autoloads tablist-autoloads
> terraform-doc-autoloads promise-autoloads request-autoloads
> terraform-mode-autoloads hcl-mode-autoloads test-simple-autoloads
> toc-org-autoloads transpose-frame-autoloads
> treemacs-all-the-icons-autoloads all-the-icons-autoloads
> treemacs-magit-autoloads treemacs-projectile-autoloads
> treemacs-autoloads cfrs-autoloads posframe-autoloads ht-autoloads
> pfuture-autoloads ace-window-autoloads avy-autoloads
> projectile-autoloads treepy-autoloads treesit-auto-autoloads
> ts-autoloads s-autoloads typescript-mode-autoloads uuidgen-autoloads
> vdiff-magit-autoloads magit-autoloads pcase transient-autoloads
> magit-section-autoloads dash-autoloads vdiff-autoloads hydra-autoloads
> lv-autoloads vlf-autoloads vterm-autoloads web-mode-autoloads
> websocket-autoloads wfnames-autoloads with-editor-autoloads info
> writeroom-mode-autoloads visual-fill-column-autoloads xcscope-autoloads
> xml-format-autoloads reformatter-autoloads xmlgen-autoloads
> yaml-autoloads yaml-mode-autoloads yapfify-autoloads
> yasnippet-snippets-autoloads yasnippet-autoloads package browse-url url
> url-proxy url-privacy url-expand url-methods url-history url-cookie
> generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
> auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
> subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
> rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
> vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
> ucs-normalize mule-util term/common-win 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 kqueue cocoa ns lcms2
> multi-tty make-network-process native-compile emacs)
> 
> Memory information:
> ((conses 16 3816539 895611) (symbols 48 101299 35)
> (strings 32 1940307 58790) (string-bytes 1 156393461)
> (vectors 16 219328) (vector-slots 8 3204831 423739)
> (floats 8 11561 13488) (intervals 56 61264 8007) (buffers 992 74))
> 
> 
> 
> 
> 
> 




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#73496: 30.0.91; Eglot (and clangd) out of sync after switching git branches in magit
Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Sep 2024 10:27:01 +0000
Resent-Message-ID: <handler.73496.B73496.172734641116607 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 73496
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 73496 <at> debbugs.gnu.org, Mikael Springer <mikael.springer@HIDDEN>
Received: via spool by 73496-submit <at> debbugs.gnu.org id=B73496.172734641116607
          (code B ref 73496); Thu, 26 Sep 2024 10:27:01 +0000
Received: (at 73496) by debbugs.gnu.org; 26 Sep 2024 10:26:51 +0000
Received: from localhost ([127.0.0.1]:55604 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1stlhy-0004Jn-J2
	for submit <at> debbugs.gnu.org; Thu, 26 Sep 2024 06:26:50 -0400
Received: from mail-oa1-f44.google.com ([209.85.160.44]:53364)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <joaotavora@HIDDEN>) id 1stlhw-0004JT-TJ
 for 73496 <at> debbugs.gnu.org; Thu, 26 Sep 2024 06:26:49 -0400
Received: by mail-oa1-f44.google.com with SMTP id
 586e51a60fabf-277dd761926so508544fac.2
 for <73496 <at> debbugs.gnu.org>; Thu, 26 Sep 2024 03:26:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1727346316; x=1727951116; 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=880Uyfrrxfoc4usBN8PI9qazdMBH207SalhpM8UkuGo=;
 b=YOw/+ttAT6WUU/jlUZv7Ts+Mb3YtChLbvJjU3hoZyJ5hv6l0P0knGwGp3Sp/CUD+V4
 uN0TkzRcJAei+GJcpxoTshhNTPp9o1/DJcsfe09Y3gDNQLaCEEaGYr/oICiYiGW8dEFX
 pDQ/2jzdvG6iO1JMDg40VnD0wdu+wDI0hLoI04GX7EKOqZRCcmb6r7tfnuNb3Nl+qmj8
 yJkZOII4zejIZ//mv1Lduuf/1CyjolhIXH4kQdw/pJWDGlXZNqhyLA9KIfqEBy6W5QSh
 AwzCqOKSQY8V3wncz6Lf0vBpbA26vqq29e5+q8vICEV8O0JyNavkK0H+F/H9gk/SOk55
 7uRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1727346316; x=1727951116;
 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=880Uyfrrxfoc4usBN8PI9qazdMBH207SalhpM8UkuGo=;
 b=umEHHBLHyheUsxcGzMkF5dOPFoVTLJbtSpnOIMAWYz7fpbYBX88L/M4Tr3VKAmm1vM
 S47aOpOd1+UV1xZ93I8icgyITcDQtX25prZFluVSfQQAJpSR5wKYi1v941Kc++mvmEGz
 yhHMBPXc/LOlByzqebzF6mMKxst/hd99Sqta2938xuJ/vYgA1yIjfxztXQeMtd4SlSWT
 cawQq//21EIZWFpz8jsKw7oTw/jK5+aXin1twgcdHTmhurgxtvaZlgh11wf+iHAS1uQt
 nFVr118uInsegyFFuZNNSUgE6WPCVCMiyOi+t9aYx9VkihrFsPyWBMovrBaCKkWCY6i1
 HK2g==
X-Forwarded-Encrypted: i=1;
 AJvYcCVnmSUyRIhod8gTeqBvBBZD0CZB0PpHWagtKDd7nh2Ga5s0l/YIEWYii8hjTM2JpmffO+AYAQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yw7Iy2N0IoChPEoe7bcTIA5VW/4he7HvtJpWRQFsjYbMYZVk/Ay
 mzsH7iVNeyppUprlV/A+VVljYUs/NXllFC/SNNVtDN6sFZmIcWOyz+dtnbzp3wZf5bIMQXj6vBg
 dHuAEXJZGxkodETilFuHiVhA3334=
X-Google-Smtp-Source: AGHT+IHCL/BCMLE0RuQTl+ni5VeyncFf4Iy15PK5PQpTiXpPV2eel554T3DmbVgwVD7f6KzwBAz9BhRNQSNs7ez65ik=
X-Received: by 2002:a05:6870:d147:b0:25e:24a0:4c96 with SMTP id
 586e51a60fabf-286e13a1d29mr4416935fac.11.1727346315920; Thu, 26 Sep 2024
 03:25:15 -0700 (PDT)
MIME-Version: 1.0
References: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
 <864j62buca.fsf@HIDDEN>
In-Reply-To: <864j62buca.fsf@HIDDEN>
From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Date: Thu, 26 Sep 2024 11:25:04 +0100
Message-ID: <CALDnm50PwZamVJ+X1w1K3ikdWFjq1VvQDwz8Ph1dP9LOn0oCkA@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Thu, Sep 26, 2024 at 11:08=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote=
:
>
> > Date: Thu, 26 Sep 2024 08:20:52 +0000
> > From:  Mikael Springer via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> >
> >
> > 1. Visit buffer with C++ code -> Eglot starts.
> > 2. Listing references for a variable in Eglot works.
> > 3. Switch Git branch in magit.
> > 4. Go back to C++ buffer. Listing references for a variable using Eglot
> > does not work, error message in echo buffer; "jsonrpc-request:
> > jsonrpc-error: "request id=3D44 failed:", (jsonrpc-error-code . -32602)=
,
> > (jsonrpc-error-message . "trying to get AST for non-added document"),
> > (jsonrpc-error-data)"
> > 5. Closing the buffer and opening it again fixes the problem, or doing
> > eglot-reconnect also fixes the problem, listing references is working
> > again.
> > 6. This is true for all open C++ buffers handled by Eglot before the
> > branch switch.
>
> CC'ing Jo=C3=A3o.

It would be great if Mikael could make this into a Emacs -Q recipe
to ease investigation and rule out interference from configuration etc.

For example this isn't  true

  Visit buffer with C++ code -> Eglot starts.

unless you use eglot-ensure in your config.  And possibly Magit isn't
needed to trigger this, a simple Git branch change on the side will do (or
maybe it won't in which case Magit has to be investigated, too).

A concrete example toy repo with, say, a single file would also
be useful.

Jo=C3=A3o.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#73496: 30.0.91; Eglot (and clangd) out of sync after switching git branches in magit
Resent-From: Mikael Springer <mikael.springer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Sep 2024 12:26:02 +0000
Resent-Message-ID: <handler.73496.B73496.172735352512591 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 73496
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>
Cc: 73496 <at> debbugs.gnu.org
Received: via spool by 73496-submit <at> debbugs.gnu.org id=B73496.172735352512591
          (code B ref 73496); Thu, 26 Sep 2024 12:26:02 +0000
Received: (at 73496) by debbugs.gnu.org; 26 Sep 2024 12:25:25 +0000
Received: from localhost ([127.0.0.1]:58645 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1stnYg-0003Gq-9Z
	for submit <at> debbugs.gnu.org; Thu, 26 Sep 2024 08:25:25 -0400
Received: from mail-4322.protonmail.ch ([185.70.43.22]:38217)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mikael.springer@HIDDEN>) id 1stmI8-0006T6-P8
 for 73496 <at> debbugs.gnu.org; Thu, 26 Sep 2024 07:04:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1727348618; x=1727607818;
 bh=zz9jabGZ+vkeM+8Z7atWwKnUV5BG3avb2Ics4sEQG74=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector;
 b=Ndj0MAOzGrC6AKTLkp91cGziy6T5B5sLzHup/rQjbCIPRtTe3hztQiiDAjG+4IfdP
 vEWCIBTPu0cYCBqsj91xP61H7OT6NIqsLtQa/TRUJw4Sp9AQyceDT6pbytRPv//KXP
 1WZjwbeVIf3BPd+0H9J1U24Bblox4dtkNXNCheo8xd2yCDrIwOxVT2aA991WhzATzj
 W+7U1sJmMa/dvmNkSYCNjaJON8lvzhJwnpl+/rO8wWX7WEdmn3woVZ6t7wVhBWtyOX
 kNST+x2PAAbBJpChoO6BFL3oFXDMtZPP5aAFp9Y1gOBRVM9BDXtZsRPCtKMjDsGgsw
 7jZhvPN0J31tQ==
Date: Thu, 26 Sep 2024 11:03:34 +0000
From: Mikael Springer <mikael.springer@HIDDEN>
Message-ID: <43038363-5af5-419a-947e-f78d1c8a9fe0@HIDDEN>
In-Reply-To: <864j62buca.fsf@HIDDEN>
References: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
 <864j62buca.fsf@HIDDEN>
Feedback-ID: 14037015:user:proton
X-Pm-Message-ID: 5f359fd268b529be6cf4132ff3dd05b0ae8e44fb
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Mailman-Approved-At: Thu, 26 Sep 2024 08:23:55 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

I have global-auto-revert-mode enabled when this happens.

/Micke.


On 2024-09-26 12:08, Eli Zaretskii wrote:
>> Date: Thu, 26 Sep 2024 08:20:52 +0000
>> From:  Mikael Springer via "Bug reports for GNU Emacs,
>>   the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>>
>>
>> 1. Visit buffer with C++ code -> Eglot starts.
>> 2. Listing references for a variable in Eglot works.
>> 3. Switch Git branch in magit.
>> 4. Go back to C++ buffer. Listing references for a variable using Eglot
>> does not work, error message in echo buffer; "jsonrpc-request:
>> jsonrpc-error: "request id=3D44 failed:", (jsonrpc-error-code . -32602),
>> (jsonrpc-error-message . "trying to get AST for non-added document"),
>> (jsonrpc-error-data)"
>> 5. Closing the buffer and opening it again fixes the problem, or doing
>> eglot-reconnect also fixes the problem, listing references is working
>> again.
>> 6. This is true for all open C++ buffers handled by Eglot before the
>> branch switch.
> CC'ing Jo=C3=A3o.
>
> Mikael, FTR, do you have auto-revert enabled for the Git repository in
> question?
>
>> In GNU Emacs 30.0.91 (build 1, aarch64-apple-darwin23.6.0, NS
>> appkit-2487.70 Version 14.6.1 (Build 23G93)) of 2024-09-16 built on
>> phobos.local
>> Windowing system distributor 'Apple', version 10.3.2566
>> System Description: macOS 15.0
>>
>> Configured using:
>> 'configure --disable-dependency-tracking --disable-silent-rules
>> --enable-locallisppath=3D/opt/homebrew/share/emacs/site-lisp
>> --infodir=3D/opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/info/emacs
>> --prefix=3D/opt/homebrew/Cellar/emacs-plus@30/30.0.91 --with-xml2
>> --with-gnutls --with-native-compilation=3Daot --without-compress-install
>> --without-dbus --with-imagemagick --with-modules --with-rsvg
>> --with-webp --with-ns --disable-ns-self-contained 'CFLAGS=3D-O2
>> -DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT
>> -I/opt/homebrew/opt/gcc/include -I/opt/homebrew/opt/libgccjit/include'
>> 'LDFLAGS=3D-L/opt/homebrew/lib/gcc/14 -I/opt/homebrew/opt/gcc/include
>> -I/opt/homebrew/opt/libgccjit/include''
>>
>> Configured features:
>> ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG LCMS2 LIBXML2 MODULES
>> NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
>> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB
>>
>> Important settings:
>> value of $LC_ALL: en_US.UTF-8
>> value of $LANG: en_US.UTF-8
>> locale-coding-system: utf-8-unix
>>
>> Major mode: C++//
>>
>> Minor modes in effect:
>> eldoc-box-hover-mode: t
>> company-box-mode: t
>> display-line-numbers-mode: t
>> smartparens-mode: t
>> rainbow-delimiters-mode: t
>> yas-minor-mode: t
>> breadcrumb-mode: t
>> breadcrumb-local-mode: t
>> copilot-mode: t
>> hexl-follow-ascii: t
>> delete-selection-mode: t
>> s3ed-mode: t
>> eglot--managed-mode: t
>> flymake-mode: t
>> global-treesit-auto-mode: t
>> recentf-mode: t
>> pdf-occur-global-minor-mode: t
>> google-this-mode: t
>> which-key-mode: t
>> treemacs-filewatch-mode: t
>> treemacs-follow-mode: t
>> treemacs-git-mode: t
>> treemacs-fringe-indicator-mode: t
>> eshell-syntax-highlighting-global-mode: t
>> git-gutter-mode: t
>> bug-reference-prog-mode: t
>> global-git-commit-mode: t
>> magit-auto-revert-mode: t
>> server-mode: t
>> csv-field-index-mode: t
>> pyvenv-tracking-mode: t
>> pyvenv-mode: t
>> pulsar-global-mode: t
>> pulsar-mode: t
>> dimmer-mode: t
>> desktop-save-mode: t
>> ns-auto-titlebar-mode: t
>> windmove-mode: t
>> global-auto-revert-mode: t
>> save-place-mode: t
>> global-emojify-mode: t
>> emojify-mode: t
>> display-battery-mode: t
>> doom-modeline-mode: t
>> company-quickhelp-mode: t
>> company-quickhelp-local-mode: t
>> company-mode: t
>> activities-mode: t
>> projectile-mode: t
>> helm-mode: t
>> helm-minibuffer-history-mode: t
>> helm-autoresize-mode: t
>> async-bytecomp-package-mode: t
>> override-global-mode: t
>> hl-line-mode: t
>> tooltip-mode: t
>> global-eldoc-mode: t
>> 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:
>> /Users/mikael/.emacs.d/elpa/cmake-mode-20240814.1725/cmake-mode hides
>> /opt/homebrew/share/emacs/site-lisp/cmake/cmake-mode
>> /Users/mikael/.emacs.d/elpa/transient-20240918.1138/transient hides
>> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/tran=
sient
>>
>> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig hides
>> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/edit=
orconfig
>> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-conf-=
mode
>> hides
>> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/edit=
orconfig-conf-mode
>> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-core
>> hides
>> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/edit=
orconfig-core
>> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-tools
>> hides
>> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/edit=
orconfig-tools
>> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-core-=
handle
>> hides
>> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/edit=
orconfig-core-handle
>> /Users/mikael/.emacs.d/elpa/editorconfig-20240813.801/editorconfig-fnmat=
ch
>> hides
>> /opt/homebrew/Cellar/emacs-plus@30/30.0.91/share/emacs/30.0.91/lisp/edit=
orconfig-fnmatch
>>
>> Features:
>> (shadow mail-extr emacsbug vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs
>> vc-rcs log-view magit-extras emacsql-sqlite-builtin sqlite help-fns
>> radix-tree cl-print transpose-frame winner tramp-archive tramp-gvfs
>> helm-command helm-elisp helm-eval edebug helm-info heaven-and-hell
>> noxml-fold rng-cmpct xml-format reformatter rng-nxml rng-valid nxml-mode
>> nxml-outln nxml-rap sgml-mode elfeed-show elfeed-search elfeed-csv
>> elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib xml-query sql view
>> json-mode json-snatcher plantuml-mode vc eldoc-box checkdoc
>> aggressive-indent company-box company-box-doc frame-local
>> company-box-icons company-oddmuse company-keywords company-etags
>> company-gtags company-dabbrev-code company-dabbrev company-files
>> company-clang company-capf company-cmake company-semantic
>> company-template company-bbdb display-line-numbers smartparens loadhist
>> rainbow-delimiters yasnippet-snippets yasnippet breadcrumb copilot
>> copilot-balancer c++-ts-mode c-ts-mode dape hexl gdb-mi gud repeat
>> toc-org org-bullets org-appear flyspell ispell org-indent oc-basic
>> ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu
>> mml2015 mm-view mml-smime smime dig ol-docview doc-view ol-bibtex bibtex
>> ol-bbdb ol-w3m ol-doi org-link-doi time delsel ms-remote dired-rsync
>> rsync-mode spinner ms-ai ms-music spotify ms-devops terraform-doc
>> terraform-mode hcl-mode ms-aws s3ed s3ed-mode s3ed-io s3ed-util
>> ms-spelling ms-privacy pinentry ms-math gnuplot info-look ms-eglot
>> xcscope eglot-hierarchy hierarchy eglot external-completion jsonrpc
>> flymake ert debug backtrace ms-treesitter treesit-auto ms-draw ms-utils
>> restclient pandoc-mode pandoc-mode-utils dashboard dashboard-widgets
>> ffap recentf tree-widget restart-emacs ms-read-write pdf-occur tablist
>> tablist-filter semantic/wisent/comp semantic/wisent
>> semantic/wisent/wisent semantic/util-modes semantic/util semantic
>> semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch
>> pdf-misc pdf-tools cus-edit cus-load pdf-view jka-compr pdf-cache
>> pdf-info tq pdf-util pdf-macs writeroom-mode visual-fill-column darkroom
>> ms-browse-and-search ddg-search ddg-mode ddg google-translate
>> google-translate-default-ui google-translate-core-ui facemenu popup ido
>> google-translate-core google-translate-backend google-this ms-notebooks
>> ms-help-docs devdocs-browser eww url-queue mm-url devdocs info-colors
>> free-keys which-key ms-debug logview datetime extmap ms-news reddigg
>> promise promise-rejection-tracking promise-finally promise-done
>> promise-es6-extensions promise-core ms-org ox-confluence ox-jira ox-odt
>> rng-loc rng-uri rng-parse rng-match rng-pttrn nxml-parse nxml-ns
>> nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii
>> ox-publish ox org-attach org-sidebar org-ql-search org-ql-view ov
>> org-super-agenda org-ql peg ts org-habit org-agenda org-duration
>> org-element org-persist org-id org-refile org-element-ast avl-tree
>> org-kanban re-builder org-journal org-crypt cal-iso org-jira
>> org-jira-sdk jiralib soap-client rng-xsd rng-dt rng-util xsd-regexp
>> org-clock helm-org-rifle ob-ein ein-cell ein-shared-output
>> ein-output-area ein-kernel ein-ipdb ein-query ein-events ein-websocket
>> websocket bindat ein-node ewoc ein-log ein-classes ein-core request ein
>> ein-utils anaphora deferred ob-octave ob-dot ob-sqlite ob-sql
>> ob-makefile ob-C ob-python python ob-plantuml ob-shell ms-file-browse
>> all-the-icons-dired ranger dired+ image-file image-converter
>> dired-subtree dired-hacks-utils dired-aux ls-lisp dirvish treemacs-magit
>> treemacs-projectile treemacs-all-the-icons treemacs treemacs-header-line
>> treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-tags
>> treemacs-interface treemacs-persistence treemacs-filewatch-mode
>> treemacs-follow-mode treemacs-rendering treemacs-annotations
>> treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals
>> treemacs-fringe-indicator treemacs-macros ms-snippets ms-shell mistty
>> mistty-undo mistty-queue mistty-log mistty-term mistty-changeset
>> mistty-util multi-vterm vterm vterm-module term/xterm xterm multi-term
>> eshell-syntax-highlighting em-prompt em-alias eshell-toggle esh-mode
>> esh-var eshell-git-prompt eat term disp-table ehelp ms-vc vdiff-magit
>> magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help
>> ediff-init ediff-util vdiff diffview git-gutter-fringe fringe-helper
>> git-gutter git-timemachine vc-git vc-dispatcher git-modes gitignore-mode
>> gitconfig-mode conf-mode gitattributes-mode forge-repos forge-tablist
>> forge-topics forge-commands forge-semi forge-bitbucket buck forge-gogs
>> gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy
>> gsexp ghub let-alist forge-notify forge-revnote forge-pullreq
>> forge-issue forge-topic yaml eieio-custom bug-reference forge-post
>> markdown-mode forge-repo forge forge-core forge-db magit-lfs
>> magit-bookmark 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 magit-repos magit-apply magit-wip magit-log which-func magit-diff
>> smerge-mode diff diff-mode track-changes git-commit log-edit pcvs-util
>> add-log magit-core magit-autorevert magit-margin magit-transient
>> magit-process with-editor server magit-mode transient benchmark
>> magit-git magit-base magit-section cursor-sensor crm ms-mode csv-mode
>> sort ninja-mode cmake-mode rst rtf-mode generic groovy-mode ms-web-env
>> typescript-mode skewer-mode cache-table js2-mode etags fileloop js
>> c-ts-common cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
>> cc-align cc-engine cc-vars cc-defs imenu simple-httpd ms-python-env
>> pylint blacken pydoc goto-addr pyvenv eshell esh-cmd esh-ext esh-opt
>> esh-proc esh-io esh-arg esh-module esh-module-loaddefs esh-util
>> ms-flymake ms-dumb-jump ms-editor hydra lv prettier editorconfig
>> editorconfig-core editorconfig-core-handle editorconfig-fnmatch nvm
>> iter2 generator bookmark+ bookmark+-key dired-x bookmark+-1 gnus-sum shr
>> pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start
>> gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec
>> gnus-int gnus-range gnus-win gnus nnheader range bookmark+-bmu helm-org
>> org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src
>> sh-script smie treesit executable ob-comint org-pcomplete org-list
>> org-footnote org-faces org-entities noutline outline org-version
>> ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold
>> org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs
>> org-compat org-macs bookmark+-lit bookmark+-mac pulsar pulse
>> auto-highlight-symbol dimmer face-remap color ms-frame desktop frameset
>> ns-auto-titlebar ms-window golden-ratio windmove ms-buffer autorevert
>> saveplace vlf-setup vlf vlf-base vlf-tune ms-icons ms-faces emojify
>> advice apropos tar-mode arc-mode archive-mode ms-themes
>> doom-themes-ext-treemacs doom-themes-ext-org doom-nord-aurora-theme
>> doom-themes doom-themes-base ms-modeline diminish battery dbus xml
>> doom-modeline doom-modeline-segments doom-modeline-env
>> doom-modeline-core shrink-path ms-company company-quickhelp pos-tip
>> company ms-projects activities persist bookmark pp helm-rg
>> ibuffer-projectile helm-projectile tramp-cache time-stamp projectile
>> lisp-mnt grep compile ibuf-ext ibuffer ibuffer-loaddefs thingatpt
>> ms-helm helm-xref xref project helm-icons nerd-icons nerd-icons-faces
>> nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon
>> nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon
>> nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline
>> nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon
>> treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils
>> treemacs-logging treemacs-customization pfuture inline ht treemacs-faces
>> f s dash helm-mode helm-misc helm-files image-dired image-dired-tags
>> image-dired-external image-dired-util image-mode exif filenotify
>> helm-buffers all-the-icons all-the-icons-faces data-material
>> data-weathericons data-octicons data-fileicons data-faicons
>> data-alltheicons helm-occur helm-tags helm-locate helm-grep helm-regexp
>> helm-utils helm-help helm-types ms-env helm-osx-app cl list-processes+
>> list-environment exec-path-from-shell ms-variables ms-package epkg-elpa
>> epkg-utils epkg-list epkg-desc wid-edit find-func epkg closql
>> emacsql-sqlite-common emacsql emacsql-compiler eieio-base llama comp
>> comp-cstr warnings comp-run comp-common compat helm-system-packages helm
>> helm-global-bindings edmacro kmacro helm-core async-bytecomp helm-source
>> helm-multi-match helm-lib async tramp-sh tramp trampver
>> tramp-integration files-x tramp-message tramp-compat xdg shell pcomplete
>> comint ansi-osc ring parse-time iso8601 format-spec ansi-color
>> tramp-loaddefs use-package-ensure-system-package system-packages
>> use-package use-package-delight use-package-diminish
>> use-package-bind-key bind-key cl-extra help-mode use-package-ensure
>> use-package-core finder-inf mm-archive message sendmail yank-media dired
>> dired-loaddefs rfc822 mml mml-sec epa derived gnus-util
>> text-property-search time-date mailabbrev gmm-utils mailheader mm-decode
>> mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-http
>> url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums
>> mail-prsvr url-gw nsm puny epg rfc6068 epg-config a-autoloads
>> activities-autoloads aggressive-indent-autoloads
>> all-the-icons-dired-autoloads all-the-icons-ibuffer-autoloads
>> ansible-autoloads ansible-doc-autoloads apples-mode-autoloads
>> auto-highlight-symbol-autoloads axe-autoloads blacken-autoloads
>> breadcrumb-autoloads buffer-move-autoloads bui-autoloads
>> calibredb-autoloads chatgpt-shell-autoloads cmake-mode-autoloads
>> company-box-autoloads company-quickhelp-autoloads company-autoloads
>> copilot-autoloads copilot-chat-autoloads crux-autoloads
>> csv-mode-autoloads dape-autoloads darkroom-autoloads
>> dash-at-point-autoloads dashboard-autoloads deadgrep-autoloads
>> demap-autoloads easy-mmode demap demap-modes hl-line demap-minimap
>> demap-tools devdocs-autoloads devdocs-browser-autoloads
>> diffview-autoloads diminish-autoloads dimmer-autoloads
>> dired-git-info-autoloads dired-narrow-autoloads dired-rsync-autoloads
>> dired-subtree-autoloads dired-hacks-utils-autoloads dirvish-autoloads
>> doom-modeline-autoloads doom-themes-autoloads dumb-jump-autoloads
>> eat-autoloads ein-autoloads deferred-autoloads anaphora-autoloads
>> eldoc-box-autoloads elfeed-webkit-autoloads elfeed-autoloads
>> emms-autoloads emojify-autoloads epkg-autoloads
>> eshell-git-prompt-autoloads eshell-syntax-highlighting-autoloads
>> eshell-toggle-autoloads exec-path-from-shell-autoloads
>> expand-region-autoloads faust-mode-autoloads flycheck-plantuml-autoloads
>> flycheck-autoloads flyspell-correct-helm-autoloads
>> flyspell-correct-autoloads forge-autoloads closql-autoloads
>> emacsql-autoloads frame-local-autoloads free-keys-autoloads
>> ghub-autoloads git-gutter-fringe-autoloads fringe-helper-autoloads
>> git-gutter-autoloads git-modes-autoloads git-timemachine-autoloads
>> gnuplot-autoloads golden-ratio-autoloads google-this-autoloads
>> google-translate-autoloads goto-chg-autoloads gptel-autoloads
>> groovy-mode-autoloads heaven-and-hell-autoloads
>> helm-c-yasnippet-autoloads helm-descbinds-autoloads helm-icons-autoloads
>> helm-make-autoloads helm-org-autoloads helm-easymenu
>> helm-org-rifle-autoloads helm-osx-app-autoloads
>> helm-projectile-autoloads helm-rg-autoloads
>> helm-system-packages-autoloads helm-xref-autoloads helm-autoloads
>> helm-core-autoloads async-autoloads helpful-autoloads
>> elisp-refs-autoloads hmac-autoloads ibuffer-projectile-autoloads
>> info-colors-autoloads ini-mode-autoloads json-mode-autoloads rx
>> json-snatcher-autoloads list-environment-autoloads llama-autoloads
>> logview-autoloads datetime-autoloads extmap-autoloads lua-mode-autoloads
>> magit-lfs-autoloads markdown-mode-autoloads mimetypes-autoloads
>> minions-autoloads mistty-autoloads multi-term-autoloads
>> multi-vterm-autoloads nerd-icons-autoloads nov-autoloads esxml-autoloads
>> kv-autoloads noxml-fold-autoloads ns-auto-titlebar-autoloads
>> org-appear-autoloads org-bullets-autoloads org-jira-autoloads
>> org-journal-autoloads org-kanban-autoloads org-sidebar-autoloads
>> org-ql-autoloads org-super-agenda-autoloads origami-autoloads
>> ov-autoloads ox-jira-autoloads pandoc-mode-autoloads pdf-tools-autoloads
>> persist-autoloads pinentry-autoloads plantuml-mode-autoloads
>> polymode-autoloads popup-autoloads pos-tip-autoloads prettier-autoloads
>> editorconfig-autoloads nvm-autoloads iter2-autoloads pulsar-autoloads
>> pydoc-autoloads pylint-autoloads pyvenv-autoloads
>> rainbow-delimiters-autoloads ranger-autoloads realgud-ipdb-autoloads
>> realgud-lldb-autoloads realgud-autoloads realgud-recursive-autoloads
>> loc-changes-autoloads load-relative-autoloads reddigg-autoloads
>> restart-emacs-autoloads restclient-autoloads rsync-mode-autoloads
>> rust-mode-autoloads s3ed-autoloads shell-maker-autoloads
>> shrink-path-autoloads f-autoloads skewer-mode-autoloads
>> js2-mode-autoloads simple-httpd-autoloads smartparens-autoloads
>> spinner-autoloads spotify-autoloads string-inflection-autoloads
>> sublimity-autoloads system-packages-autoloads tablist-autoloads
>> terraform-doc-autoloads promise-autoloads request-autoloads
>> terraform-mode-autoloads hcl-mode-autoloads test-simple-autoloads
>> toc-org-autoloads transpose-frame-autoloads
>> treemacs-all-the-icons-autoloads all-the-icons-autoloads
>> treemacs-magit-autoloads treemacs-projectile-autoloads
>> treemacs-autoloads cfrs-autoloads posframe-autoloads ht-autoloads
>> pfuture-autoloads ace-window-autoloads avy-autoloads
>> projectile-autoloads treepy-autoloads treesit-auto-autoloads
>> ts-autoloads s-autoloads typescript-mode-autoloads uuidgen-autoloads
>> vdiff-magit-autoloads magit-autoloads pcase transient-autoloads
>> magit-section-autoloads dash-autoloads vdiff-autoloads hydra-autoloads
>> lv-autoloads vlf-autoloads vterm-autoloads web-mode-autoloads
>> websocket-autoloads wfnames-autoloads with-editor-autoloads info
>> writeroom-mode-autoloads visual-fill-column-autoloads xcscope-autoloads
>> xml-format-autoloads reformatter-autoloads xmlgen-autoloads
>> yaml-autoloads yaml-mode-autoloads yapfify-autoloads
>> yasnippet-snippets-autoloads yasnippet-autoloads package browse-url url
>> url-proxy url-privacy url-expand url-methods url-history url-cookie
>> generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
>> auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
>> subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
>> rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
>> vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
>> ucs-normalize mule-util term/common-win 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 kqueue cocoa ns lcms2
>> multi-tty make-network-process native-compile emacs)
>>
>> Memory information:
>> ((conses 16 3816539 895611) (symbols 48 101299 35)
>> (strings 32 1940307 58790) (string-bytes 1 156393461)
>> (vectors 16 219328) (vector-slots 8 3204831 423739)
>> (floats 8 11561 13488) (intervals 56 61264 8007) (buffers 992 74))
>>
>>
>>
>>
>>
>>





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#73496: 30.0.91; Eglot (and clangd) out of sync after switching git branches in magit
Resent-From: Mikael Springer <mikael.springer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 26 Sep 2024 12:26:03 +0000
Resent-Message-ID: <handler.73496.B73496.172735352612599 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 73496
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= <joaotavora@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Cc: 73496 <at> debbugs.gnu.org
Received: via spool by 73496-submit <at> debbugs.gnu.org id=B73496.172735352612599
          (code B ref 73496); Thu, 26 Sep 2024 12:26:03 +0000
Received: (at 73496) by debbugs.gnu.org; 26 Sep 2024 12:25:26 +0000
Received: from localhost ([127.0.0.1]:58652 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1stnYj-0003H2-Es
	for submit <at> debbugs.gnu.org; Thu, 26 Sep 2024 08:25:26 -0400
Received: from mail-40134.protonmail.ch ([185.70.40.134]:43867)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mikael.springer@HIDDEN>) id 1stmM9-0006on-G0
 for 73496 <at> debbugs.gnu.org; Thu, 26 Sep 2024 07:08:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1727348868; x=1727608068;
 bh=c7uFrUNz+rvl9Zop0vJue2uAjKT4xaasJcmZZ46mjzg=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector;
 b=RzCfplJJ8M1EVORcm/0+sU5PEfAD4xUmtpRzP6UF1IXtduEnrJaV2VwXtsYhcmW1t
 mlGJcJKmFukAcmf8lFJ5ju5gxN03LwfPWwsepkFGdwQIRWm7oPUmf3QVd7Wro25tDH
 6+ZdeN++LnI/JkxPU0FLm6tKv/jvau4pGyXKqGTFlFngnUbYpx8wwkVmyt0T2kwVX0
 3z9wf+wiUyoq+G2Yk+XP0yq/d3/whwx5dhRvNUru3pukQLhp0Vkt/0PHupS1wsm244
 ABfEqLPstSbOUHmgQPmgNfHW219PDVh53mUnzSMrzksFCilsiHZK50ooSPAMdZOYkr
 lIPAjQNc0eCAg==
Date: Thu, 26 Sep 2024 11:07:43 +0000
From: Mikael Springer <mikael.springer@HIDDEN>
Message-ID: <e0f90582-407d-45e5-a8a8-36dd7df57f02@HIDDEN>
In-Reply-To: <CALDnm50PwZamVJ+X1w1K3ikdWFjq1VvQDwz8Ph1dP9LOn0oCkA@HIDDEN>
References: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
 <864j62buca.fsf@HIDDEN>
 <CALDnm50PwZamVJ+X1w1K3ikdWFjq1VvQDwz8Ph1dP9LOn0oCkA@HIDDEN>
Feedback-ID: 14037015:user:proton
X-Pm-Message-ID: 1ca5e8cb33127df365260651cd8ee724b6ab2803
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Mailman-Approved-At: Thu, 26 Sep 2024 08:23:55 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

You are right, I have eglot-ensure enabled for c++ts-mode.

I'll try to create an emacs -Q recipe for this as soon as I can. I also=20
agree and suspect that any outside file operation will work as a trigger.

/Micke.


On 2024-09-26 12:25, Jo=C3=A3o T=C3=A1vora wrote:
> On Thu, Sep 26, 2024 at 11:08=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wro=
te:
>>> Date: Thu, 26 Sep 2024 08:20:52 +0000
>>> From:  Mikael Springer via "Bug reports for GNU Emacs,
>>>   the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>>>
>>>
>>> 1. Visit buffer with C++ code -> Eglot starts.
>>> 2. Listing references for a variable in Eglot works.
>>> 3. Switch Git branch in magit.
>>> 4. Go back to C++ buffer. Listing references for a variable using Eglot
>>> does not work, error message in echo buffer; "jsonrpc-request:
>>> jsonrpc-error: "request id=3D44 failed:", (jsonrpc-error-code . -32602)=
,
>>> (jsonrpc-error-message . "trying to get AST for non-added document"),
>>> (jsonrpc-error-data)"
>>> 5. Closing the buffer and opening it again fixes the problem, or doing
>>> eglot-reconnect also fixes the problem, listing references is working
>>> again.
>>> 6. This is true for all open C++ buffers handled by Eglot before the
>>> branch switch.
>> CC'ing Jo=C3=A3o.
> It would be great if Mikael could make this into a Emacs -Q recipe
> to ease investigation and rule out interference from configuration etc.
>
> For example this isn't  true
>
>    Visit buffer with C++ code -> Eglot starts.
>
> unless you use eglot-ensure in your config.  And possibly Magit isn't
> needed to trigger this, a simple Git branch change on the side will do (o=
r
> maybe it won't in which case Magit has to be investigated, too).
>
> A concrete example toy repo with, say, a single file would also
> be useful.
>
> Jo=C3=A3o.





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#73496: 30.0.91; Eglot (and clangd) out of sync after switching git branches in magit
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 19 Oct 2024 06:59:01 +0000
Resent-Message-ID: <handler.73496.B73496.172932112225918 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 73496
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Mikael Springer <mikael.springer@HIDDEN>
Cc: 73496 <at> debbugs.gnu.org, joaotavora@HIDDEN
Received: via spool by 73496-submit <at> debbugs.gnu.org id=B73496.172932112225918
          (code B ref 73496); Sat, 19 Oct 2024 06:59:01 +0000
Received: (at 73496) by debbugs.gnu.org; 19 Oct 2024 06:58:42 +0000
Received: from localhost ([127.0.0.1]:41055 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t23Q9-0006jx-K7
	for submit <at> debbugs.gnu.org; Sat, 19 Oct 2024 02:58:41 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53200)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1t23Q5-0006jd-9Q
 for 73496 <at> debbugs.gnu.org; Sat, 19 Oct 2024 02:58:39 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1t23Pc-0000ZB-4g; Sat, 19 Oct 2024 02:58:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=MvKOPXqot0IwqLkwAa9AO9qAFlEg5smeDV5RufqY/wU=; b=C8FsD75erkbCsiycdXsW
 o+xwibqZE9UjhZyGX+qP09wuFmv+90tSOZ3dU/1iMA92rgS6a4jwoLoVqMw3WjPulVQn1gSUj7TGi
 cZSiglpSRbauSk61l7h9hcs9FZPUWzDwQWJtQo4Ibr7bbo2EAqD06HSOvBfRj/rrepJmEMlVk1C5W
 vluzYNZkXR77mZRvizrzXoR2tBW40hAGoZzKn6XPDkeZ7Xc2hQrPx+wV+q4XO5AOPFIdlE5QCdLBV
 fJfT2SDliyAfFkvAoI6OowMUJWgHJO53ho9yALoNCXlg0BpU3W4ayURdDz7v/TTKhIYmoU0Kb+nmg
 CmrBOFylghbvIQ==;
Date: Sat, 19 Oct 2024 09:58:04 +0300
Message-Id: <86bjzgmver.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <e0f90582-407d-45e5-a8a8-36dd7df57f02@HIDDEN> (message
 from Mikael Springer on Thu, 26 Sep 2024 11:07:43 +0000)
References: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
 <864j62buca.fsf@HIDDEN>
 <CALDnm50PwZamVJ+X1w1K3ikdWFjq1VvQDwz8Ph1dP9LOn0oCkA@HIDDEN>
 <e0f90582-407d-45e5-a8a8-36dd7df57f02@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 26 Sep 2024 11:07:43 +0000
> From: Mikael Springer <mikael.springer@HIDDEN>
> Cc: 73496 <at> debbugs.gnu.org
> 
> You are right, I have eglot-ensure enabled for c++ts-mode.
> 
> I'll try to create an emacs -Q recipe for this as soon as I can. I also 
> agree and suspect that any outside file operation will work as a trigger.

Ping!  Any success in creating such a recipe?

> On 2024-09-26 12:25, João Távora wrote:
> > On Thu, Sep 26, 2024 at 11:08 AM Eli Zaretskii <eliz@HIDDEN> wrote:
> >>> Date: Thu, 26 Sep 2024 08:20:52 +0000
> >>> From:  Mikael Springer via "Bug reports for GNU Emacs,
> >>>   the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> >>>
> >>>
> >>> 1. Visit buffer with C++ code -> Eglot starts.
> >>> 2. Listing references for a variable in Eglot works.
> >>> 3. Switch Git branch in magit.
> >>> 4. Go back to C++ buffer. Listing references for a variable using Eglot
> >>> does not work, error message in echo buffer; "jsonrpc-request:
> >>> jsonrpc-error: "request id=44 failed:", (jsonrpc-error-code . -32602),
> >>> (jsonrpc-error-message . "trying to get AST for non-added document"),
> >>> (jsonrpc-error-data)"
> >>> 5. Closing the buffer and opening it again fixes the problem, or doing
> >>> eglot-reconnect also fixes the problem, listing references is working
> >>> again.
> >>> 6. This is true for all open C++ buffers handled by Eglot before the
> >>> branch switch.
> >> CC'ing João.
> > It would be great if Mikael could make this into a Emacs -Q recipe
> > to ease investigation and rule out interference from configuration etc.
> >
> > For example this isn't  true
> >
> >    Visit buffer with C++ code -> Eglot starts.
> >
> > unless you use eglot-ensure in your config.  And possibly Magit isn't
> > needed to trigger this, a simple Git branch change on the side will do (or
> > maybe it won't in which case Magit has to be investigated, too).
> >
> > A concrete example toy repo with, say, a single file would also
> > be useful.
> >
> > João.
> 
> 




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#73496: 30.0.91; Eglot (and clangd) out of sync after switching git branches in magit
Resent-From: Mikael Springer <mikael.springer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 24 Oct 2024 09:20:01 +0000
Resent-Message-ID: <handler.73496.B73496.1729761547561 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 73496
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 73496 <at> debbugs.gnu.org, joaotavora@HIDDEN
Received: via spool by 73496-submit <at> debbugs.gnu.org id=B73496.1729761547561
          (code B ref 73496); Thu, 24 Oct 2024 09:20:01 +0000
Received: (at 73496) by debbugs.gnu.org; 24 Oct 2024 09:19:07 +0000
Received: from localhost ([127.0.0.1]:33648 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t3tzl-00008w-TD
	for submit <at> debbugs.gnu.org; Thu, 24 Oct 2024 05:19:07 -0400
Received: from mail-40131.protonmail.ch ([185.70.40.131]:53039)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mikael.springer@HIDDEN>) id 1t3tNu-0006lA-Sx
 for 73496 <at> debbugs.gnu.org; Thu, 24 Oct 2024 04:40:00 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
 s=protonmail3; t=1729759162; x=1730018362;
 bh=k5o8uW8lKjSkw4OHa20NkPosTDPTh9jy75oTLaLyxoM=;
 h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
 Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
 Message-ID:BIMI-Selector;
 b=xOpElaUCfp1wieOE3671LQ/TqNh/jdNuVqZd9Z9LjiovRLHzlPUVHy8CpxRsn1xZB
 nRe9vHrHh22OJDn2DcAQCtsaMyGZIO7wUbuPYtURzurgWu1Fnk1deN7XkvpOqQ/axl
 zWFOKCBKI2Ce7kiVCuXYeVC4b6W0swkQ6yN3afsfprie4pJtUisp+y4I16ppwf5iCd
 K5rkKN+MZ8Ib5fnNcxdBqHW4U+05KhjLKj+DjLxtD4l6gZLlj0QYTGR2sQX6E27Nc0
 dKeGoiZvo1YhhgKzYa1HbhCFKzmBCCf0BV/e1RGC79qWssro4gHHVEVfHSrArgO4z7
 K10CioYxrvnOQ==
Date: Thu, 24 Oct 2024 08:39:16 +0000
From: Mikael Springer <mikael.springer@HIDDEN>
Message-ID: <7543c7a7-f3fa-4db8-8947-614a62443b02@HIDDEN>
In-Reply-To: <86bjzgmver.fsf@HIDDEN>
References: <d57568f2-3eb8-45d8-820c-cb5bf2656fbd@HIDDEN>
 <864j62buca.fsf@HIDDEN>
 <CALDnm50PwZamVJ+X1w1K3ikdWFjq1VvQDwz8Ph1dP9LOn0oCkA@HIDDEN>
 <e0f90582-407d-45e5-a8a8-36dd7df57f02@HIDDEN>
 <86bjzgmver.fsf@HIDDEN>
Feedback-ID: 14037015:user:proton
X-Pm-Message-ID: 8599d18e8d3425a5650285cc4340415fb398c774
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Mailman-Approved-At: Thu, 24 Oct 2024 05:19:04 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

No, I'm sorry but I have not been able to spend time on this. I'm in the=20
middle of moving so I will probably not have an opportunity to do this=20
for quite some time. But I will get back to it as soon as I can.

Regards, Micke.


On 2024-10-19 08:58, Eli Zaretskii wrote:
>> Date: Thu, 26 Sep 2024 11:07:43 +0000
>> From: Mikael Springer <mikael.springer@HIDDEN>
>> Cc: 73496 <at> debbugs.gnu.org
>>
>> You are right, I have eglot-ensure enabled for c++ts-mode.
>>
>> I'll try to create an emacs -Q recipe for this as soon as I can. I also
>> agree and suspect that any outside file operation will work as a trigger=
.
> Ping!  Any success in creating such a recipe?
>
>> On 2024-09-26 12:25, Jo=C3=A3o T=C3=A1vora wrote:
>>> On Thu, Sep 26, 2024 at 11:08=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> w=
rote:
>>>>> Date: Thu, 26 Sep 2024 08:20:52 +0000
>>>>> From:  Mikael Springer via "Bug reports for GNU Emacs,
>>>>>    the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>>>>>
>>>>>
>>>>> 1. Visit buffer with C++ code -> Eglot starts.
>>>>> 2. Listing references for a variable in Eglot works.
>>>>> 3. Switch Git branch in magit.
>>>>> 4. Go back to C++ buffer. Listing references for a variable using Egl=
ot
>>>>> does not work, error message in echo buffer; "jsonrpc-request:
>>>>> jsonrpc-error: "request id=3D44 failed:", (jsonrpc-error-code . -3260=
2),
>>>>> (jsonrpc-error-message . "trying to get AST for non-added document"),
>>>>> (jsonrpc-error-data)"
>>>>> 5. Closing the buffer and opening it again fixes the problem, or doin=
g
>>>>> eglot-reconnect also fixes the problem, listing references is working
>>>>> again.
>>>>> 6. This is true for all open C++ buffers handled by Eglot before the
>>>>> branch switch.
>>>> CC'ing Jo=C3=A3o.
>>> It would be great if Mikael could make this into a Emacs -Q recipe
>>> to ease investigation and rule out interference from configuration etc.
>>>
>>> For example this isn't  true
>>>
>>>     Visit buffer with C++ code -> Eglot starts.
>>>
>>> unless you use eglot-ensure in your config.  And possibly Magit isn't
>>> needed to trigger this, a simple Git branch change on the side will do =
(or
>>> maybe it won't in which case Magit has to be investigated, too).
>>>
>>> A concrete example toy repo with, say, a single file would also
>>> be useful.
>>>
>>> Jo=C3=A3o.
>>






Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.