You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I have recently configured my Doom Emacs to use ccls as my C++ server for LSP. The completion seems to work perfectly. However, in every single cpp file where I make an #include of some of my own hpp files, I got the error "file not found", and I do not know how to setup my .ccls file in my project root, so these files are found.
System Specs
SO: Arch Linux 5.7.10-arch1-1
clangd: 10.0.1
ccls: ccls 0.20190823.6-2
Emacs: GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20) of 2020-05-19
I think that the following files of my project would be enough to reproduce my error. I pick the include/Context.hpp and src/Context.cpp files because the cpp file only include this hpp file from my project:
As you can see a "File not found" error appears. However, there is no error about Context not being defined or something like that. In fact, the autocompletion for the Context instances methods works fine.
I have read in some similar issues for this repo or the ccls repo, that flycheck may have something to do with this problem. But I have tried to disable flycheck, but then other proper errors are not being highlighted...
Many thanks for your time 😄.
The text was updated successfully, but these errors were encountered:
Hi everyone,
I have recently configured my Doom Emacs to use ccls as my C++ server for LSP. The completion seems to work perfectly. However, in every single
cpp
file where I make an#include
of some of my ownhpp
files, I got the error "file not found", and I do not know how to setup my.ccls
file in my project root, so these files are found.System Specs
Project Structure
Files
I think that the following files of my project would be enough to reproduce my error. I pick the
include/Context.hpp
andsrc/Context.cpp
files because thecpp
file only include thishpp
file from my project:.ccls
I have also tried
-std=c++17
flag, but the same error occurs.Error
As you can see a "File not found" error appears. However, there is no error about Context not being defined or something like that. In fact, the autocompletion for the Context instances methods works fine.
I have read in some similar issues for this repo or the ccls repo, that
flycheck
may have something to do with this problem. But I have tried to disableflycheck
, but then other proper errors are not being highlighted...Many thanks for your time 😄.
The text was updated successfully, but these errors were encountered: