microsoft / microsoft/vscode-cpptools

Basic Include files error

Open
#12,171 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature: Configuration investigate: repro Language Service Not Repro - Internal
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Discussed in https://github.com/microsoft/vscode-cpptools/discussions/12153

Originally posted by naman0411 March 28, 2024
Hi, I recently redownloaded c++ 13.1 using msys2 on my computer and know vs code is giving me errors in basic include lines like #include .
I added the appropriate path variables - "C:\msys64\ucrt64\bin" and tried changing the intellisense configurations as mentioned in various places online to no avail.
image

g++ -o demo demo.cpp does not create any file.

g++ -v -o demo demo.cpp has the following output.
image

As seen the g++ is not doing any search for #include files.

What should I do?

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 with the linked discussion and the reported g++ -v -o demo demo.cpp output; the issue mentions demo.cpp, MSYS2, and VS Code IntelliSense configuration but no repository file or test. Determine whether the missing include search is caused by the compiler setup or the extension, and consider the issue resolved only when #include <iostream> is recognized and the g++ -o demo demo.cpp command produces the executable.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.