-
Notifications
You must be signed in to change notification settings - Fork 23
Conversation
If there are people using this package, and don't need additional support / features, does this have any ongoing runtime cost? Also, is it going to show up if this is an indirect dependency of something that I use? |
This adds a deprecation notice that will be printed on `using Formatting`, to inform users that the package has been deprecated and that they should consider using a different package.
f848bb9
to
f1ee9b3
Compare
No, this is only printed during I'm mostly concerned with people using this package assuming that it works, when it evidently has fatal flaws, such as #108, which prints completely wrong results. Whoever is using this package and trusting its output might be in for a rude awakening.
Possibly? If so, we can add a marker that this is specifically for Formatting.jl, since the current message doesn't specify. Good catch, thank you! I'll try it out. |
Ok, with packages of a dependency chain like and this on 1.11+: so unfortunately, The downside is that this has only been supported since 1.9... |
I'm fine with that for something like this that's usability - focused. |
If people are using exceptionally old Julia releases, frankly they should expect that lots of what they use is deprecated/ unmaintained. Ideally, it would work at least with LTS, but even if it's only on the current release, I'd prefer it being in |
JuliaHub says this has 81 direct dependants and 666 indirect dependants, so yeah we need to be kinda careful about not overzealously spamming people. I would suggest putting it in an |
Yeah, unfortunately the precompilation printing is only available with 1.11, it doesn't work with LTS. Even if 1.10 is the next LTS, it won't show up until the next LTS after that for everyone bound to LTS. I could add one-time printing into the constructor of
This package has compats back to 1.0, is there a version of that that goes that far back? Kinda bad that there's no CI set up here :/ |
Seems to work on v1.0: mason:~$ julia +1.0 -q --startup=no
julia> ccall(:jl_generating_output, Cint, ())
0 |
|
Precompilation wipes the slate clean when it comes to global state, so I can't even really cache this properly, right? Seems like this will have to be hacked into some other place, perhaps the constructor here would be a good candidate? This will delay printing the warning until the first time someone formats something, but at least it'll only be to |
the |
That did the trick! This really should be documented & made official. Only shows up on <1.11 when having Formatting.jl as a direct dependency, but oh well. All is good on 1.11 now! |
Yeah I only learned that trick by |
@Seelengrab I can't get to this right now, but please feel free to ping me again if I haven't taken care of it by Monday |
Will do! |
Thanks @kescobo! |
This adds a deprecation notice that will be printed on
using Formatting
, to inform users that the package has been deprecated and that they should consider using a different package.This is intended to be released in conjunction with #111. This will also need a release to General, since it bumps the version.