Open Cycatz opened 1 year ago
I guess adding "--header-insertion-decorators=0" as well will make the issue go away?
cc @kiennq
We're following the discussion in the company-mode's repo now
I think the ball is in your court now.
Hi @dgutov I failed to reproduce the issue following your original instructions with my Emacs 29.4. Does it still reproduce on your side?
Yep, seems fixed! Not sure what change did it, but I can't reproduce anymore.
It wasn't my instructions, though - the reporter is somebody else.
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
Describe the issue
With
(setq lsp-clients-clangd-args '("-j=8" "-background-index" "-log=error"))
, when editing a C++ source file and typing the first three charactersret
of the keywordreturn
in a function body, the company window doesn't show the completion and the following error occurs:But if I remove the line
(setq lsp-clients-clangd-args '("-j=8" "-background-index" "-log=error"))
in the config, there will be no error.Screenshot:![image](https://user-images.githubusercontent.com/24320926/194750359-ed9b77f6-ceb0-437f-9d06-8c9fd6c54271.png)
Here is the video: https://i.imgur.com/CgPw7cb.mp4
Steps to reproduce
Here is the minimal broken config (with lsp and company installed with
straight.el
):And the minimal broken c++ source
reproduce.hpp
:Invoke Emacs with
emacs -Q -l config.el
and start typing in theauto operator"" _S()
function. Apart fromret
, typing other three-character combinations like__b
(for__builtin_popcount
) orcon
(forconst
) also result in the same error.Expected behavior
The error should not happen and the company window should pop up correctly.
Which Language Server did you use?
lsp-clangd
OS
Linux
Error callstack
Anything else?
https://github.com/company-mode/company-mode/issues/1346