I just imported 2023 code into 2024 and added the new libraries and for some of the old imports its not showing errors but its giveing me the warning “The type CANCoder has been deprecated since version 2024 and marked for removal”. now the qustion is if I were to build it to the robot would it work?
edit- (I do not have access to any working robot rn so I cant test it myself)
The deprecated thing is no longer being developed and improved
The functionality should still be present and tested, for now
The functionality will disappear soon. This will be not-backward-compatible.
So exactly what it says on the tin in the warning message. Go ahead and use it for now, but if you need the code to keep working into the future, make plans to stop using the deprecated thing (and use whatever its replacement is)
“soon” means “in an upcoming update”, so if you don’t upgrade anything once you have your code building, your code should continue to build pretty much indefinitely (well, until something else requires you to upgrade, but it will almost certainly last you 5 days).