JuliaGeometry / GeometryBasics.jl

Basic Geometry Types
MIT License
164 stars 54 forks source link

Turning off deprecation warnings #154

Closed jonalm closed 2 years ago

jonalm commented 2 years ago

Is it possible to turn off deprecation warnings when running tests? When I use using GeometryBasics in a package, my test log gets polluted by lines like

WARNING: GeometryBasics.Mat2f0 is deprecated, use Mat2f instead.
  likely near none:1
WARNING: GeometryBasics.Mat3f0 is deprecated, use Mat3f instead.
  likely near none:1
  ...

Even though I don’t use any of the deprecated methods. The list fills the whole screen.

https://github.com/JuliaGeometry/GeometryBasics.jl/blob/master/src/deprecated.jl

knuesel commented 2 years ago

I guess one of the dependencies uses deprecated methods? Can you "fix" it by calling Julia with --depwarn=no ?

Is this a public package so we can reproduce the problem?

jonalm commented 2 years ago

I made a MWE here https://github.com/jonalm/MyTestPackage.jl

I only managed to reproduce the error in the MWE when using ReTest.jl, so the issue might be there.

--depwarn=no does not help.

jonalm commented 2 years ago

I think this issue belongs at ReTest.jl, as I do not manage to reproduce the issue with the stdlib Test package.