-
Notifications
You must be signed in to change notification settings - Fork 5
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
DocumenterCitations 1.3.0 is a breaking change? #59
Comments
No, that’s fixing a bug. The intent was always for it to be consistent. |
Although I agree that this update is about as breaking as one might still get away with. I don't think anything that breaking will be in any future 1.x release. I'm also open to second opinions, and if there's a strong consensus that this is too breaking, I can revert the release and release it as 2.0. Incidentally, for |
Could fall back to the old behavior perhaps? |
Not easily. At least, I'd also have to remove the support for |
Of course this could be considered a bug, if you say that the intended behaviour was to do the same as Documenter does – then I just maybe missed an entry in the changelog about that. It is also not hard to fix for sure :) |
Hm, there seem also quite some (probably only breaking in the same way above) breaking changes for the bib file. I get
and I am a bit lost on
|
The "intended" behavior wasn't documented, which makes this a tricky case. But the old behavior definitely wasn't intentional. I was on the fence on releasing this as 2.0 anyway, even more so because the "internals" broke so significantly, and we're only getting away with that because we've been defining the "SemVer-surface" of this package to be extremely small. This is also why I collected a large bunch of semi-breaking PRs into this 1.3 release. To be honest, I feel like tagging a 1.0 release when the project moved to the JuliaDocs was a bit pre-mature since I wasn't quite sure that everything was fully worked out yet. We're getting to that point, though: The 1.3 release fixes all major issues, in my mind. I'd consider it a "release candidate" for declaring all of the documented "internal" functions "stable", which probably would have been a better 1.0. Alas. So the choice is more or less between accepting that 1.3 is somewhat breaking (non-breaking only with some mental gymnastics), with an understanding that things are on a path to stabilizing. Or, we tag is as 2.0, and embrace the "Breaking releases aren't a big deal" idea that some SemVer proponents have advocated for. It might be for the best: I'd expect to stay on 2.x for a good long while even in that case, but if something "breaking" ever comes up again in the future, the mental barrier for going to 3.x would be much smaller. |
And that is also fine with me then - I just still have to fix my library now 🧐 |
Yes, I think so… the same escaping rules as in LaTeX. In the previous version, an unescaped The details of how exactly the strings in the
I have never seen In general, I've only added support for a tiny subset of tex commands outside of math mode (really just So, let me know if you want support for
Is that in the same run as the If so, that's the problem. If I agree it's not great that Documenter shows a Stacktrace when it fails in strict mode. It makes it look like an internal error. That's what you're concerned about, right? |
Indeed I had an Maybe before leaving I missed that a few more pages need to be adapted tomorrow (most seem to be the pages issue above) – it is just a bit surprising that Bibliography is just issuing warnings but Documenter fails on that ;) |
I think I am slowly getting there. I am a bit surprised setting
edit: Thaht is my only entry with a DOI and an URL to something different. Will add the url for now as a note. It would be great if the URL can be different from the DOI ;) |
That's always been the case… The DOI field should contain a DOI (starting with It's a common mistake, though. Maybe I'll detect it in some future version, and correct it automatically. Maybe you didn't get an error before because we "accidentally" fixed #58 in this release. But you would have had broken links before. Moreover: putting a URL in the DOI field shouldn't work in LaTeX, either.
Absolutely, and this has been supported since 1.0. There's quite a few examples in the bibliography for entries that have both a URL and a DOI. For articles, the URL always gets linked via the title, and the DOI always via the "published in" information. For non-articles, things are a bit less regular: Either the DOI or the URL get linked via the title, and if there are more URLs to link, they'll be linked via the |
Sorry I was not precise enough, I used a valid DOI but an URL pointing to a book page, that lead to a warning and that warning makes documenter fail. |
...or to be precise this should work but putting the URL from the note into an |
Ah, yes, I think for a book you're running exactly into this situation where there is only one title field to link from (no separate title and booktitle). In the previous version of DocumenterCitations, this might have worked, since I was linking the URL to the title and the DOI from e.g. the publisher. That didn't really work consistently across all the different types of entries. So, in order not to lose my mind, I made it a bit more restrictive. And yes, putting the URL in a note like you have right now is the correct approach for this (I think you're missing |
Ah, another breaking change! Formerly the BibTeX fields Markdown rendered, that is why I used a Markdown link edit: Checked it real quick – as soon as one does not. confuse again the German and the Norwegian Keyboard and uses the right brackets and the right order – Markdown links work just fine sill in those fields. |
Yes, the But yeah, this release is about as full of breaking internals as it gets, which is kinda why I collected it all in one pretty big release. Hopefully, you won’t have to go through any of this again until an actual 2.0 release. |
Wait, markdown links still work? I’m not sure they should… or if they do, it’s definitely exploiting internal behavior. Going forward, having markdown in the .bib file is definitely not supported / recommended. Instead, I’ll add support for any reasonable latex commands anyone might request. |
The markdown links indeed still work, but be warned: that's absolutely exploiting a bug (#60) I would recommend using the |
Actually, maybe we can: for any name in Let me think about that a bit more… |
So to summarise – no it is not breaking in the sense that the changes are bugfixes, since the inention was from the beginning to be closer to Documenter.jl anyways. For future releases with bug fixes one could write in the change log something like: That was the old version that is wrong, the better way to write it would be this. |
Is that unabridged? Because I wanted the supported commands to actually be printed in that message (not |
Not only it "might have worked", but it did work. So, after some reflection, I kinda agree that this wasn't a great move (and arguably a semver violation). As a bugfix, I'll restore the ability to always have both a DOI and a URL field automatically linked for any valid BibTeX entry, see #63. |
Just saw on CI that the
Pages=
argument might have been changed from absolute to relative files? See the error message on CI athttps://github.com/JuliaManifolds/Manopt.jl/actions/runs/6717763433/job/18256227165?pr=294#step:9:1220
especially the message which file was not found indicated, that removing
functions/
should fix it (will try) – which is of course not so much a problem, but a breaking change in a non-breaking update.The text was updated successfully, but these errors were encountered: