Skip to content
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

Flycheck says iostream and local lib cannot be imported but LSP commands works as expected #88

Closed
jaza-syed opened this issue Jun 10, 2020 · 1 comment

Comments

@jaza-syed
Copy link

jaza-syed commented Jun 10, 2020

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).

Screenshot 2020-06-10 at 17 00 28

@jaza-syed
Copy link
Author

After looking through the ccls issues I found that this is just an instance of MaskRay/ccls#622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant