-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Stopping use of depwarn intended to inform to "end users" #419
Comments
This is off-topic but I don't understand CI failures on nightly build. Parse: Log Test Failed at /home/travis/build/JuliaGraphics/Colors.jl/test/parse.jl:17
Expression: parse(Colorant, "sea GREEN")
Log Pattern: (:warn, r"Use \"SeaGreen\" or \"seagreen\"")
Captured Logs:
Edit: |
This is becoming too nitpicking and seems like an antipattern wrt JuliaLang/julia#35362 End-users don't read warnings. They don't even read error messages. Since the old API works fine, he could choose to not update his API accordingly, why must he see these warnings even if he set Compat correctly wrt semver? The new practice after JuliaLang/julia#35362, IIUC, is to switch on the depwarn option when you try to add a new breaking version in compat and then fix all depwarns in one PR. |
Indeed. Similarly, package developers do not read the commit logs or release notes. 😛 |
I'm thinking of removing the depwarn in |
Gotcha! I think we were not on the same wavelength because of my poor English, @johnnychen94. |
Let's discuss the depwarns in separate PRs. |
In Julia v1.5 series (or nightly build),
cf. JuliaLang/julia#35362
Therefore, depwarns will be for package developers, not for end users. (We use depwarn instead of normal warn just because it's annoying.:sweat:)
There are 4 depwarns used in this package.
Base.hex
Colors.jl/src/utilities.jl
Lines 103 to 106 in a447509
Perhaps the end users won't explicitly specify
Base
, so we can leave this. (We can also remove this.)hex
Colors.jl/src/utilities.jl
Lines 109 to 116 in a447509
This is a problem as the new behavior will not involve any API changes. Also,
hex
is a function used directly by the end users. However, I don't think we need to show this depwarn to the end user when Julia v1.5 is released. So, we can leave this.ColorTypes.color
Colors.jl/src/parse.jl
Lines 225 to 228 in f1047da
This is a proper use case of depwarn, but I don't think it's necessary anymore. Moreover,
color
is defined in ColorTypes and exported (and re-exported).parse
Colors.jl/src/parse.jl
Lines 143 to 147 in f1047da
This has been a problem since the beginning. (cf. #390)
This is mainly for end users, so it doesn't make sense if it disappears. At least this is what should be displayed as a normal warn.
The text was updated successfully, but these errors were encountered: