Build Error - com.pathplanner.lib:PathplannerLib-cpp:2023.4.4

I tried to do everything to fix this error.

Reinstall of PathPlanner library
Reinstall of Visual Studio Code (Manual & with WPILib installer)
Code Re-install
Complete removal and reinstall of WPILib libraries/tools/apps
Update of WPILib libraries/tools/apps

The error indicates that I don’t have a specific library called PathPlannerLib in the folders where it’s trying to find it. The problem arises when I check the libraries in VS Code; it shows that it’s installed. However, even after reinstalling this library using the PathPlanner documentation, it still reports that the file cannot be found.

I didn’t touch FRC coding since May, and it worked back then, maybe something has changed?

Make sure you’re connected to the internet on your first build to download needed dependencies. After that, you can connect to the robot and deploy.

@mjansen4857, looks like an error in the repo to me. CPP files have “-java” in the name.

@ch1kim0n1, try 2023.4.3 instead

Oops. Surprised this wasn’t found til now. Should be fixed when the deployment finishes. (~10m)

1 Like

Fixed it!

Seems like c++ is not supported in 4.4 yet, therefore I now use 4.3. There is a file called PathplannerLib.json in vendordeps folder and changed version from 4.4 to 4.3.

Also whole pathplanner folder was absent in my local WPILib folder, therefore I downloaded and imported it manually. I don’t know if this will cause more problems, but for now its a temporary fix.

Import pathplanner folder → restart of VSCode → computer restart → build code

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