-
Notifications
You must be signed in to change notification settings - Fork 5
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
Incorrect intellisense configuration #6
Comments
Do you see anything like this in the C/C++ extension logs? You might need to increase the logging level (
If so, does the uri and configuration look correct? The configuration you get for main.c is the default intellisense config, which means that the C/C++ extension either isn't receiving the custom configuration, or is ignoring it. |
No, a custom configuration is not received:
For the file which is not part of the project i do receive a custom configuration. |
Just to clarify some things: There is an unlikely case where an error could occur but not be logged, and that seems to be the only possible explanation here. To confirm it, I would need to add some more logging in the next extension update, and then you can check the logs again after the update is released. I'm not sure exactly when that will be, but it should be fairly soon. |
Yes, i get the incorrect configuration for all files in the project and this also occurs for all projects. |
Okay, so i dug a bit more into this. Seems like the C++ extension has a 2 second timeout on providing it the configuration and this extension needs more than this (~2-4s) on my machine / for my project. Any idea how to speed this up? |
Thanks, that explains a lot. In order to generate the configuration for a file, we run the compiler with some special flags that output include paths and defines. This parses the entire file, so if the file is large or the cpu is busy, it's not impossible for this to take a few seconds. I'll see if we can speed it up in any way, but I also want to ask the C/C++ extension developers if they could increase the timeout window; 2 seconds seems like a really short timeout. |
Increasing the timeout has apparently been asked about before: I've fixed the problem by checking if we time out, and asking the C++ extension to resend the reqeust in that case. |
Intellisense is not working correctly because an incorrect intellisense configuration is supplied:
IAR Build log:
IAR Config Generator:
C/C++ extension log:
It does work for files which are not in the current project (although it is the wrong configuration for these files):
IAR Build log:
C/C++ extension log:
Any help would be appreciated!
The text was updated successfully, but these errors were encountered: