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

Intellisense doesn't seem to recognize #include_next directive #906

Closed
theseankelly opened this issue Jul 20, 2017 · 5 comments
Closed

Intellisense doesn't seem to recognize #include_next directive #906

theseankelly opened this issue Jul 20, 2017 · 5 comments
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service

Comments

@theseankelly
Copy link

Using clang intellisense on an ARM project. Project overrides a standard header (stdint) and uses #include_next to selectively include stdint or throw an #error depending on build environment.

Intellisense doesn't seem to know what to do with it -- F12 doesn't open the header, it doesn't seem to register it as an include.

@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Jul 20, 2017

IntelliSense works with #include_next (code items are correctly being found in the file), and so does Go to Definition on code items, but Go to Definition fails to work on the file name. We can probably fix that.

@theseankelly
Copy link
Author

Oh I see. I'm having other issues with Intellisense that I thought I had narrowed down to that include_next directive.. guess I'm wrong! I'll keep looking through my project/environment defines for the issue. Thanks!
Sean

@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Jul 22, 2017
@nathanaelg
Copy link

Did you ever work out what the problem was @theseankelly I'm also having the same issue...

@sean-mcmanus
Copy link
Contributor

@nathanaelg The issue that I fixed was "Go to Definition" on a #include_next.

There are many reasons a #include file may not be getting found. Can you file a new issue with more repro details, i.e. what OS and compiler framework are you using?

You might also want to try our insiders build and setting your compilerPath to your compiler to automatically pick up the correct compiler includes/defines: https://github.com/Microsoft/vscode-cpptools/releases/tag/v0.16.0-insiders .

@nathanaelg
Copy link

@sean-mcmanus I'm not really sure it's a bug, could just be a mis-configuration but I've tried the insider build (didn't seem to make a difference) and raised a new issue #1672 as you suggested.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
None yet
Development

No branches or pull requests

3 participants