New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in header file with using clangd #495
Comments
I think this has to do with the fact that cmake only exports information for cpp files, not for headers, into An example of the files I use to set up projects can be found here (disclaimer: I'm not sure if it is best practice as I am not exactly an expert on CMake): https://github.com/MartenBE/gevorderde-algoritmen/tree/master/generic-project-files:
More examples can be found in the repo. |
Thanks! It worked! |
Summary
Hi all!
Firstly i apologize my poor English and please laugh at me!
I use this plugin to develop my c++ app.
I develop it with the libraries, vtk and integrate with
cmake
and I use this plugin withclangd
for c/c++ language server.I have the serious problem...
When i include the library header file, in my header file it becomes error while in my source file success to include.
It's strange isn't it?
I show you my strange problem pictures.
The left file is my header file, and the right one is my source file.
In addition, in header file, libraries functions aren't be complemented while in source file they are complemented.
In header file,
In source file,
My
LanguageClient-neovim
configuration is here:Is this problem a
Language-Client
bug or is my configuration wrong?I think CMake's settings(CMakeLists.txt) is not wrong because in source file correctly completion work.
Please help me!
Reproduction
nvim --version
orvim --version
): nvim v0.3.0git rev-parse --short HEAD
): 6c94b3ebin/languageclient --version
):0.1.93 6c94b3ereproduce the issue. Refer to an example [[here][min-init.vim]):]: My Minimal init.vim
mkdir -p build && cd build && cmake ..
nvim src/UI/Window.hpp
Current Behavior
In header file, error has occurred and libraries function completion doesn't work.
Expected Behavior
In header file, error doesn't occur like source file above, and completion work.
The text was updated successfully, but these errors were encountered: