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

wxWidgets is not recognized, no matter how much I edit the c_cpp_properties.json file #652

Open
koechg2022 opened this issue Jul 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@koechg2022
Copy link

Note: we mostly implement features in the clangd language server, and rely on Microsoft's LSP client framework to expose these in VSCode. Features requiring a lot of VSCode-specific work are unlikely to be implemented.

I am trying to use wxwidgets in my program, and in a header file, I'm trying to include wx/wx.h, which is installed on my machine, and the code is able to compile and run when I compile and run the code from the command line. But this keeps appearing as an error. Could you get clangd to recognize wxwidgets please?

Here's a picture of the error as it appears:

In the Problems tab:

[{
"resource": "/Users/geoffreykoech/Desktop/Personal Projects/Tic Tac Toe/headers/headers.h",
"owner": "generated_diagnostic_collection_name#4",
"code": "pp_file_not_found",
"severity": 8,
"message": "'wx/wx.h' file not found",
"source": "clang",
"startLineNumber": 2,
"startColumn": 10,
"endLineNumber": 2,
"endColumn": 19
}]

And an image of the error:

image
@koechg2022 koechg2022 added the enhancement New feature or request label Jul 8, 2024
@HighCommander4
Copy link
Contributor

Please read through and follow the steps in https://clangd.llvm.org/installation#project-setup.

Please note also that c_cpp_properties.json is a configuration file specific to Microsoft's C/C++ extension. It's not used by clangd.

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

No branches or pull requests

2 participants