Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
code completion breaks after changing header file
Hyena:
When I change a structure declaration in one of the header files, then afterwards in the C source files the code will no longer be able to complete anything. A note appears saying that parser is still parsing the files, but it never completes. The only way to fix it is by restarting codeblocks. This happens even if the change to the header file does not functionally change anything (just by adding a space to the end of an empty line and saving the header file will break code completion). The problem is with both the 20.03 and the SVN versions of codeblocks.
Miguel Gimenez:
Are you using the legacy code completion plugin (default) or the new Clangd_client plugin?
Hyena:
I haven't changed that, so probably this is the legacy one indeed.
Hyena:
I disabled the legacy and enabled the clang one but the clang didn't work at all. Also another thing I noticed was that anonymous structs seem to be confusing the code completion. In the added screenshots only one "capacity" should appear, but instead I get multiple because other sub structures have the same variable.
Pecan:
@Hyena
This usually happens when the wrong clangd.exe is being used.
Please look at MainMenu/settings/editor/clangd_client/tab C/C++ parser and telll us the path of the clangd that you are using.
Navigation
[0] Message Index
[#] Next page
Go to full version