Skip to content

Intellisense not working  #5963

@dbersan

Description

@dbersan

Specs: Ubuntu 18.04, VSCode 1.47.3, C/C++ extension 0.30.0-insiders2 (also tried the non-insiders)

It's truly remarkable C++ has been around for at least 40 years and we still don't have a proper intellisense.

It is underlying in red the include header:
image

Even though I can still Ctrl+click it and go to the source file:
image

Of course I wouldn't be posting this issue if this were the only problem.

I also don't get auto-complete:

image

As a matter of fact, it gives me wrong auto-completion suggestions:

image

Yes, .vscode/c_cpp_properties.json exists, at the root of the folder, and contains the following:

{
    "configurations": [
        {
            "browse": {
                "databaseFilename": "",
                "limitSymbolsToIncludedHeaders": true
            },
            "includePath": [
                "/home/user/catkin_ws/devel/include/**",
                "/opt/ros/melodic/include/**",
                "/usr/include/**",
                "include/"
            ],
            "name": "ROS",
            "intelliSenseMode": "gcc-x64",
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "gnu11",
            "cppStandard": "gnu++14",
            "compileCommands": "${workspaceFolder}/build/compile_commands.json"
        }
    ],
    "version": 4
}

/opt/ros/melodic/include/contains the ros folder with the header.

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions