ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thank you for your response!

I have created my workspace from scratch and added your .vscode/c_cpp_properties.json and .vscode/settings.json but nothing has changed on the ros/ros.h error.

Now it looks like this:

{
  "configurations": [
    {
      "browse": {
        "databaseFilename": "${workspaceFolder}/.vscode/browse.vc.db",
        "limitSymbolsToIncludedHeaders": false
      },
      "includePath": [
        "/opt/ros/melodic/include/**",
        "/home/kubra/catkin_ws/src/mus1/include/**",
        "/usr/include/**"
      ],
      "name": "ROS",
      "intelliSenseMode": "gcc-x64",
      "compilerPath": "/usr/bin/gcc",
      "cStandard": "gnu11",
      "cppStandard": "c++14"
    }
  ],
  "version": 4
}

And my settings.json:

{
    "editor.tabSize": 4,
    "ros.distro": "melodic",
    "ros.rosSetupScript": "/opt/ros/noetic/setup.bash",

    "python.autoComplete.extraPaths": [
        "/opt/ros/melodic/lib/python2.7/dist-packages"
    ],
    }

But still he error is showing up. What else can i do to make the error dissappear?