-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
System include paths should always be after recursive include paths #11485
Comments
Using IntelliSense, |
When I was viewing adc.c it was complaining about missing types (located in adc.h next to it), After a reboot everything worked fine, weird. This is the debug output now that it's working:
|
Hey @sean-mcmanus, this issue might need further attention. @mrx23dot, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
This issue has been closed because it needs more information and has not had recent activity. |
Please don't close this. I don't know what else can be more important than locating the correct include files. |
I think I know what's going on here. It's because we prioritize exact paths over recursive includes. When we add the compiler include paths at the end they are being prioritized ahead of the workspace include paths, but compiler paths should always be last. I thought this worked in the past, but it's been a while since I worked on this part of the code. We need to investigate what's going on here and make sure the compiler includes are at the end. EDIT: for reference
|
@mrx23dot This should be fixed/changed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.22.0 |
Works great in 1.73, thank you! |
@mrx23dot -- if you were using 1.22.1, you may have hit a random deadlock that got fixed with 1.22.2. |
Type: Bug
#include "adc.h"
includes adc.h from minGW first (at least for browsing), instead of local folder,
if I wanted that then I would use
#include <adc.h>
Extension version: 1.17.5
VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
The text was updated successfully, but these errors were encountered: