Our code builds and deploys fine except I receive a message on the Rio log saying
********** Robot program starting **********
NT: could not open persistent file ‘/home/lvuser/networktables.json’: No such file or directory
NT: Listening on NT3 port 1735, NT4 port 5810
NT: Got a NT3 connection from 10.37.21.165 port 61360
NT: CONNECTED NT3 client ‘NT3@10.37.21.165:61360’ (from 10.37.21.165:61360)
[phoenix] Library initialization is complete.
[phoenix-diagnostics] Server 2023.0.1 (Jan 12 2023, 21:30:23) running on port: 1250
Killing previously running FRC program…
FRC pid 5470 did not die within 500 ms. Force killing with kill -9
Does this just repeat with no additional information? It sounds like the code is crashing. I would recommend you try running your code in simulation and/or a debugger to see where it’s crashing; C++ doesn’t give nearly as good of information as Java does on crashes without a debugger.
Also, it looks like you’re running an older version of WPILib, make sure you’ve upgraded to 2023.4.2.
You just download the file from GitHub and install that. I agree with what was written above about it being an issue with the code crashing. However, I’d also double check that the team number in the driver station matches the team number on the RIO.
Using the WPILib installer is recommended (same way you originally installed). After you install it, vscode should prompt you to upgrade your robot project when you open it (if it doesn’t, you can edit the version in build.gradle).