microsoft / microsoft/vscode-cpptools
#include file "C:\USERS\USERNAME\file.h" includes itself C/C++(3) occurs on Windows
Open
Nobody has claimed this yet.
bug
Language Service
Visual Studio
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
The file path shouldn't be in all caps.
The repro is just to use #include "" with the filename itself.
It's not a regression and repros in 1.18.5 from a year ago too.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue on Windows with a minimal C/C++ file that uses #include "" with its own filename, then trace the include-path handling that produces the C/C++(3) diagnostic. Done means the diagnostic no longer treats the file as self-included because of incorrect path casing, while the reported path uses the expected casing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100