Skip to content

Intellisense squiggles appear even though headers are discovered #3731

Closed
@Georacer

Description

@Georacer

Type: LanguageService

Hello everyone,
I'm having some issues with the Intellisense feature of the C++ extension of VSCode.

Describe the bug

  • OS and Version: Ubuntu 18.04
  • VS Code Version: 1.34.0
  • C/C++ Extension Version: 0.23.1
  • Other extensions you installed (and if the issue persists after disabling them): Anaconda Extension Pack, Docker, Gitlens, Python and others
  • A clear and concise description of what the bug is:
    I have a ROS workspace, whose source folder I have opened in VSC, with path: "/home/george/ros_workspaces/uav_ftc/src/.
    All local files are visible and all included files which are situated in this folder.

Also, I have included the source files from another program (called ACADO for reference), whose path I have added in the includePath variable of c_cpp extension.

All header files and types of the ACADO source are apparently discovered, since hitting F12 will open and point to the corresponding line.

However, squiggles are broken and exist everywhere the ACADO source is referred. Errors include include errors and undefined identifiers.

I do not wish to turn to Tag Parser engine for intellisense, because apparently it also doesn't squiggle obvious errors, such as actually undefined symbols.

To Reproduce
I'm not sure if I should go all the way and provide you with files for two large projects...

Expected behavior
I expected headers and symbols of the external source files to be parsed and recognized by Intellisense correctly

Screenshots
Example: DifferentialState type looks undefined
image
but hitting F12 on it leads to its definition:
image

Additional context
The local c_cpp_properties.json file:

{
    "configurations": [
        {
            "browse": {
                "databaseFilename": "",
                "limitSymbolsToIncludedHeaders": true
            },
            "includePath": [
                "/home/xxx/UserPrograms/ACADOtoolkit/acado/**",
                "/home/xxx/ros_workspaces/uav_ftc/devel/include",
                "/opt/ros/melodic/include",
                "/home/xxx/ros_workspaces/uav_ftc/src/last_letter/last_letter/include",
                "/home/xxx/ros_workspaces/uav_ftc/src/last_letter/mathutils/include",
                "/home/xxx/ros_workspaces/uav_ftc/src/uav_ftc/include",
                "/home/xxx/ros_workspaces/uav_ftc/src/last_letter/uav_utils/include",
                "/usr/include"
            ],
            "name": "Linux",
            "intelliSenseMode": "gcc-x64",
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c11",
            "cppStandard": "c++17"
        }
    ],
    "version": 5
}

Thank you in advance for your time.
Let me know if additional information is needed or if I have posted in the wrong issue tracker.

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