microsoft / microsoft/vscode-cpptools

#include file "C:\USERS\USERNAME\file.h" includes itself C/C++(3) occurs on Windows

Open
#13,030 1 comment 0 reactions 0 assignees View on GitHub

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.

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.