Include Errors

I get an include error for every include WPILib and CTRE Phoenix I try to make.


My include path is:
“terminal.integrated.env.windows”: {

"JAVA_HOME": "C:\\Users\\Public\\wpilib\\2020\\jdk",

"PATH": "C:\\Users\\Public\\wpilib\\2020\\jdk\\bin:${env:PATH}"

Code is here: GitHub - Cooperdevi/FRC1584-2020
Any reason why this is happening? Thanks in advance

Have you installed the CTRE vendor library JSON (and other vendor JSON libraries) in your project?

NetworkTable.h and NetworkTableEntry.h are not in the frc directory, they are in the networktables directory.

Yes, I installed the CTRE Vendor Library. How do I include the Network Tables then?
Also, I get the same error when I include RobotDrive.h:

Re: NetworkTables, e.g. #include <networktables/NetworkTable.h>

If you can build successfully, these are Intellisense errors only. Sometimes the best way to fix Intellisense errors is to close all the editor windows, close vscode, optionally reboot, then open the project again in vscode.

That fixed everything except one:


DifferentialDrive

It’s #include "frc/drive/DifferentialDrive.h"

Ah, thank you. Sorry, all of my team’s software mentors are gone right now.

My team is also getting these in C++, and if they are stopping your code from building these are the steps we used to resolve them on everyone’s computers:
1: Right click build.gradle
2: Click on Manage Vendor Libraries
3: Click Install new Libraries (offline)
4: Hit the check box for any libraries displayed there, even if you already installed them at an earlier date, and click ok
5: If step 3 returns “no new dependencies available”, click on Check for Updates (offline) instead, and repeat step 4 in that menu
6: If step 5 returns “No updates available”, you may have a different issue than we had. Check your include syntax, or maybe change from <> on the sides to “” or vice versa to see if that’s the issue. I wish you luck!

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