Skip to content

Multiple include errors generated when use cmake-tools as a configuration provider for cpptoolsΒ #4350

@esynr3z

Description

@esynr3z

Trying to use CMT (cmake-tools) with a CMake simple "hello-world" project.
Project can be configured, built and debugged - no problems here. But it's quite annoying that all includes of standart headers underlined with red squiggly lines:

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit

cannot open source file "stddef.h" (dependency of "stdio.h")

This happens only if I choose to use cmake-tools as a configuration provider for cpptools. If "none" option is chosen - squiggly lines disappear.

Is it an expected behaviour? I am afraid that if I will chose "none" as a configuration provider, Intellisense will not find all my defines, includes and etc. placed in my CMakeLists.txt. Am I right?

Also I am not sure what is the rigth place for this issue - cpptols repo or cmake-tolls, but decided to start here.

Operating System: Linux Fedora 28
CMake Version: 3.14.4
VSCode Version: 1.38.1
CMake Tools Extension Version: 1.1.3
Cpptools: 0.25.1
Compiler/Toolchain: gcc version 8.3.1 20190223 (Red Hat 8.3.1-2) (GCC)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions