Visual Studio C++ issue with Intellisense

Hi

Visual Studio keeps “forgetting” where the robot libraries are. I followed the steps that the WPI site instructs us to do. But I have had no luck. The steps are listed below. Has this worked for any body else?

C++ Intellisense - Files Open on Launch Don’t Work Properly

Issue: In C++, files open when VS Code launches will have issues with Intellisense showing suggestions from all options from a compilation unit and not just the appropriate ones or not finding header files. This is a bug in VS Code.

Workaround:

  1. Close all files in VS Code, but leave VS Code open
  2. Delete c_cpp_properties.json file in the .vscode folder, if it exists
  3. Run the “Refresh C++ Intellisense” command in vscode.
  4. In the bottom right you should see something that looks like a platform (linuxathena or windowsx86-64 etc). If it’s not linuxathena click it and set it to linuxathena (release)
  5. Wait ~1 min
  6. Open the main cpp file (not a header file). Intellisense should now be working
1 Like

I’ve had mixed success with the method, often working sometimes or doing nothing at all (as you’ve mentioned). One redundant (but I found works) solution when is to create a new robot project and copy over your robot code, as it regenerates new, fresh configuration files.

Hi,
Just an update: We found the issue was with the security setting on a school district laptop. Issue was resolved using a laptop with a clean Windows installation.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.