Skip to content

Commit

Permalink
Fix wpilib preferences and keep going on failure in script
Browse files Browse the repository at this point in the history
  • Loading branch information
daltzctr committed Oct 21, 2024
1 parent 1d18f31 commit c9b7a0f
Show file tree
Hide file tree
Showing 34 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion automation/cpp_template/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/ArcadeDrive/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/CANcoder/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/CommandBasedDrive/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/ControlRequestLimits/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/CurrentLimits/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/FusedCANcoder/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/MotionMagic/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/PhoenixSysId/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/Pigeon2/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/PositionClosedLoop/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/Simulation/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/VelocityClosedLoop/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
2 changes: 1 addition & 1 deletion cpp/WaitForAll/.wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "2025Alpha",
"projectYear": "2025beta",
"teamNumber": 7762
}
Binary file not shown.
Binary file removed python/ArcadeDrive/__pycache__/robot.cpython-312.pyc
Binary file not shown.
Binary file removed python/CANcoder/__pycache__/physics.cpython-312.pyc
Binary file not shown.
Binary file removed python/CANcoder/__pycache__/robot.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file removed python/MotionMagic/__pycache__/robot.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed python/TalonFX/__pycache__/physics.cpython-312.pyc
Binary file not shown.
Binary file removed python/TalonFX/__pycache__/robot.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 4 additions & 1 deletion update_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def update_templates(template_dirs, del_exclusions):

if not to_keep:
print("Removing", full_path)
os.remove(full_path)
try:
os.remove(full_path)
except:
print("WARNING: Failed to remove", full_path)

for dir in dirs:
full_dir_path = os.path.join(root, dir)
Expand Down

0 comments on commit c9b7a0f

Please sign in to comment.