Weird warning

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)

There’s a fairly standard meaning of “deprecated” in software-land:

https://www.baeldung.com/cs/deprecated-vs-obsolete

  1. A not-backward-compatible change is coming
  2. The deprecated thing is no longer being developed and improved
  3. The functionality should still be present and tested, for now
  4. 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)

1 Like

Ok thanks it just has to work for the next 5 days :+1:

1 Like

“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).

1 Like