-
Notifications
You must be signed in to change notification settings - Fork 97
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
Resolving 'Unknown Compiler' Error in clangd Plugin: Troubleshooting and Solutions #624
Comments
Please share clangd logs |
This question might be related to the fact that I'm using cross-compilation. Here's my clangd configuration: |
That's not a log, that's a screenshot of something (the hover shown on the diagnostic I guess). Please take another look at the instructions I linked to for getting logs. They are found in the "Output" view. Please share the full log in text form.
I think when you provide multiple If you want to specify multiple patterns, you can do that by separating them with a comma, e.g.
|
here is my clangd logs, I hope this may help you to find the problem. Thanks a lot for your help! |
The logs show that the "unknown compiler" error is coming from an |
It looks like this file expects that you're using one of a specific set of compilers, and clang doesn't seem to be one of them. So, it's possible that this project does not support clang as a compiler, which might mean not supporting clang-based tools like clangd either. That said, I notice that one of the preprocessor branches checks for What compiler are you actually building your code with? Are you able to build it with clang? |
This project is an ARM project and is compiled through cross-compilation. However, the compiler used is probably the one included with Keil, named armcc.exe, and this might have caused some issues. By the way, can clang support cross-compilation? I haven't tried this feature before, but it's always a hassle to build files like Makefile or Cmake from scratch. |
The clangd plugin is reporting an error: "In included file: Unknown compiler." However, my compilation and other functionalities work fine. How can I get rid of this error?
The text was updated successfully, but these errors were encountered: