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

Language server does not recognise user header files #11

Open
hamer0 opened this issue Jul 24, 2023 · 1 comment
Open

Language server does not recognise user header files #11

hamer0 opened this issue Jul 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@hamer0
Copy link
Collaborator

hamer0 commented Jul 24, 2023

Language server reports a file not found error when including user header files. Functions included are also reported to not exist. Compilation ignores this and compiles successfully.

image

The language server should receive a didOpen message when header files are created. Clangd therefore likely looks for include paths on the filesystem. If so it may be unable to find them as files are only stored during compilation and are cleaned afterwards. This process might need restructuring.

@hamer0 hamer0 added the bug Something isn't working label Jul 24, 2023
@hamer0
Copy link
Collaborator Author

hamer0 commented Sep 13, 2023

Even after testing cleaning the files before compilation and leaving them on the filesystem, clangd still fails to locate user headers. Clangd is unable to find them on the filesystem either because it doesn't know where to look or they're not there.

The flags supplied to clangd may be a good place to look at first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant