Skip to content

undefined var error un-detected while wrong .h included #7027

@Shaka0723

Description

@Shaka0723

-- env version:
vscode ver: 1.53.2
cpptools ver: 1.2.2
bug found on above version of cpptools-----however, bug occurs in all version of cpptools & vscode I have installed in my computer

-- bug description:
A) if I include a wrong header file, cpptools seems to not report any other errors, undefined var used, e.g. pls see below picture.
B) and sometimes, eventhough all #include is right, this bug occurs.

  • I am very sure that error squiggles/intelli sense were enabled.
    project .vscode setting json file are all the same for bug A) / B)

is this a real bug?
or do I not get the right config for cpptools?

pic prjA bug
vscode cpptools bug-1

pic prjB bug
image

image
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: ConfigurationAn issue related to configuring the extension or IntelliSenseLanguage Servicemore info neededThe issue report is not actionable in its current state

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions