clangd / coc-clangd

clangd extension for coc.nvim
Apache License 2.0
759 stars 34 forks source link

stdint.h Library error #610

Closed RickyOwings closed 1 year ago

RickyOwings commented 1 year ago

I had this weird bug with coc-clangd. I was creating a project with SDL3 and it did not like the header. I thought this was weird at first. I then went digging through the header file for SDL3 and found that the error was coming from

image

I then linked the stdint library to my project and I got the same error within my project.

image

The strange thing is that it only did it with stdint.h, not any other library

image

I later then installed clangd with sudo apt install clangd. After running :CocConfig, I set the "clangd.path" to "/usr/bin/clangd" and this seemed to fix the issue.

Originally, when I installed coc-clangd, I used the :CocCommand clangd.install command to get clangd. There might be some issue with the command. I am having a hard time reproducing the error right now for some reason.

Thought I would post my error here just in case it would help you guys! I am not the most knowledgeable when it comes to Neovim, and it very well could have been something to do with my configuration. It would be great if this helps!

fannheyward commented 1 year ago

Looks like the clangd installed by :CocCommand clangd.install is broken. https://github.com/clangd/coc-clangd/issues/577