-
-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"replace-match-maybe-edit: Match data clobbered by buffer modification hooks" with lsp-clangd #2241
Comments
can you provide callstack? |
How can I produce one? The |
In the |
|
Is any info still missing? I don't think so, but I can't remove the |
The issue is still there with the latest lsp-mode-20201027.850. Is there anything else I can do to help debugging this? A broken query-replace is quite annoying in day-to-day work. 😢 Everything else is very usable, so this is a pity... |
I am unable to reproduce with the provided info. Also, I do not see lsp-mode in the error callstack. Are you able to reproduce with lsp-start-plain.el? |
Neither do I, but nevertheless I am relatively sure that lsp-mode is the culprit: My current workaround is to switch to any non-lsp-mode (e.g. fundamental), do the query-replace, and switch back to c/c++-mode. I am using Spacemacs (development branch, updating almost daily) with Emacs 27.1. The relevant snippet from my
How can I do that? I'm happy to try, but I've never heard of lsp-start-plain.el... It really looks like another |
The instructions are in the bug template.
I have no clue.
Try lsp-disconnect
I am using spacemacs as well. The issue might be from a different layer/setting. |
I am quite sure by now that the culprit is the "info box" (don't know what it is called in lsp-mode) popping up in the upper right, showing information like the signature/comments/... of the C++ entity below the cursor:
All of this seems to imply that the "info box" incorrectly modifies various global state which should better be left untouched. To see all those bugs you need a working C++ project where the "info box" actually pops up all the time when the cursor is over a C++ entity. This means that you need a One final thing: I update my Spacemacs packages almost every day, so the problem should be reproducible in lsp-mode's HEAD, I guess. Currently my Spacemacs uses |
Still an issue for me on |
It seems to be due to the "info box" that svenpanne mentioned.
Hope it's useful to someone. p.s. lsp-mode is amazing, don't know how I lived without it. Thanks for all your hard work on it. |
Just to bring more evidence to the problem, I'm having this exact same problem using I tried this last snippet from @wkenyon but didn't work to me, the only workaround that was working is to change the major mode to something else, do a |
Still an issue to me on |
Hey folks, just to give you some feedback, my problem wasn't related to |
Any updates on this issue? I'm still seeing errors despite disabling lsp-mode (clangd) and highlight-symbol-mode (similar to auto highlight symbol). |
This is basically the same issue as #1293 and #2081, this time when using query-replace in a C++ buffer with the lsp-clangd backend enabled. To reproduce: Use
(c-c++ :variables c-c++-backend 'lsp-clangd)
in Spacemacs'dotspacemacs-configuration-layers
and do a query-replace. (lsp-mode-20201008.1601)Probably yet another missing
save-match-data
, but I've got no clue where to add this...The text was updated successfully, but these errors were encountered: