I'm trying to get ccls working on a toy project in MacOS Catalina. I'm using the latest stable ccls and clang++ from homebrew.
The screenshot attached shows the structure of the project and the current errors.
It says that <iostream> and "lib.h" cannot be found - however if I use lsp-find-definition it goes to the relevant header file in both cases. I ordered the imports in main.cpp to illustrate the error with lib.h as ccls only reports the first failed import. The definition of the "<<" operator seems not to have been imported either.
I'm using Doom Emacs, the only potentially relevant line in my config is (setq lsp-diagnostic-package :flycheck).
I'm trying to get ccls working on a toy project in MacOS Catalina. I'm using the latest stable ccls and clang++ from homebrew.
The screenshot attached shows the structure of the project and the current errors.
It says that
<iostream>
and"lib.h"
cannot be found - however if I uselsp-find-definition
it goes to the relevant header file in both cases. I ordered the imports inmain.cpp
to illustrate the error withlib.h
as ccls only reports the first failed import. The definition of the "<<" operator seems not to have been imported either.I'm using Doom Emacs, the only potentially relevant line in my config is
(setq lsp-diagnostic-package :flycheck)
.