Author Topic: clangd code completion  (Read 725 times)

Offline juxin5

  • Single posting newcomer
  • *
  • Posts: 3
clangd code completion
« on: Yesterday at 07:38:40 am »
hello, first time here.
I followed the wiki page to enable the Clangd plugin, but the code completion is not working.
Is there something I am missing?
I'm using build 13539 on windows.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7670
    • My Best Post
Re: clangd code completion
« Reply #1 on: Yesterday at 03:03:16 pm »
These directions? https://wiki.codeblocks.org/index.php/CB_Clangd_Client

Which compiler toolchain did you install/use?
Which clangd did you install/use?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline juxin5

  • Single posting newcomer
  • *
  • Posts: 3
Re: clangd code completion
« Reply #2 on: Yesterday at 07:22:59 pm »
thx for the reply.
yes, I use the LLVM win64.exe one.
I'm not sure what compiler toolchain you mentioned means, but if it's compiler used in cb, it's gnu gcc compiler.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7670
    • My Best Post
Re: clangd code completion
« Reply #3 on: Yesterday at 10:22:24 pm »
thx for the reply.
yes, I use the LLVM win64.exe one.
I'm not sure what compiler toolchain you mentioned means, but if it's compiler used in cb, it's gnu gcc compiler.

Without knowing the compiler toolchain you are using I cannot help you.
And, I feel too bad today to explain where to find the info.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2804
Re: clangd code completion
« Reply #4 on: Today at 03:24:16 am »
hello, first time here.
I followed the wiki page to enable the Clangd plugin, but the code completion is not working.
Is there something I am missing?
I'm using build 13539 on windows.

I'll try to help here. But first, let me come up with some questions that will put us on the same page to determine what you mean by "is not working". We need some clues.
I'll reply tomorrow.

Thanks for your patients.
« Last Edit: Today at 06:35:19 am by Pecan »

Offline juxin5

  • Single posting newcomer
  • *
  • Posts: 3
Re: clangd code completion
« Reply #5 on: Today at 12:30:47 pm »
thx for the reply.

When I type 3 letters, the classic code completion will list the possible candidates. By "not working", I mean that the list will not show.

Online Михаил Агарков

  • Single posting newcomer
  • *
  • Posts: 1
  • Highly sensitive programmer. ☮☯
    • Personal website
Re: clangd code completion
« Reply #6 on: Today at 01:35:54 pm »
thx for the reply.
yes, I use the LLVM win64.exe one.
I'm not sure what compiler toolchain you mentioned means, but if it's compiler used in cb, it's gnu gcc compiler.

Run these commands:
Code
clangd --version
Code
gcc --version
to get the versions.