User forums > Help
Code completion does not parse/move through an entire implentation file
Pecan:
Your svn 13311 also contains it.
It's been a plugin since rev 13027.
You can compile it from the contribs workspace.
nore:
O.K., I have installed LLVM and pointed the parser at the clangd.exe, but I am getting an error window that tells me that files have not yet been parsed. There is also no toolbar to display the current function as there was with code completion.
I restarted code::blocks and let the parser parse through project files, which took a minute or so; but I do not have a code completion toolbar, and I have many LSP messages telling me of warnings and such. Does the plug-in "expand" with use, i.e. grow to more familiarity with the projects used? I see that it is not very colorful, as Code completion was with its red and green and yellow icons, and there is no toolbar; but perhaps that may be customized?
EDIT: What is Smart Sense?
Pecan:
There indeed is a code completion tool bar.
You might be getting incorrect errors from Clangd if you accidently mixed your compiler type and the location you entered for the clangd.exe.
If you are using a Mingw64 compiler, you must use a clangd compiled by Mingw64. If you are using the clang compiler, you must use the clangd.exe that was compile by the clang compiler.
That's why I suggested Msys2/Mingw64. You can ask it to install Clang and/or Mingw64. Each of the separate /bin folders within Mingw64(Msys2) will contain the appropriate clangd.exe.
To display the clangd client toolbar, use MainMenu>View>Toolbars> and click on Clangd client.
--- Quote ---EDIT: What is Smart Sense?
--- End quote ---
It'll take me some time to figure that out.
For Clangd_client, I think it was a mistake to keep that check box. I don't think it's anything related to Clangd.
nore:
Incredible, the plug-in works without issue. The toolbar issue is solved and I can traverse through functions in each file. Thank you for your help, Pecan.
EDIT: The only issue I have noticed is that I am receiving "File not yet parsed" messages periodically--usually this occurs after pressing CTRL + S or Building a project.
Pecan:
Upload those .h files for the example you gave me and let me see if I can reproduce those "not yet parsed" conditions.
For now, when you get those conditions, you can just right click in an empty editor space and choose "Reparse this file". It will place the .h and .cpp file at the head of the queue.
But I suspect, it's related to an included file that's down further in the parse queue. It'd be nice if I could figure out a way to solve this ( if my guess fits reality).
Could also be a speed issue. Please tell me what your cpu is and how many cores/threads it has. You might just be able to tell Clangd client to use more cores. By default it only uses 2; and none during build/rebuild(s).
After I bought my Dell 14 core,24 thread machine, I never saw that message. Guess I'm at a disadvantage. :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version