-
Notifications
You must be signed in to change notification settings - Fork 173
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
asccidoctorj logs multiple "possible invalid reference" #901
Comments
The only similar issue I've seen is there : https://gitter.im/asciidoctor/asciidoctor?at=5d2b58f63b41924785bb0413 After searching I noticed this commit a04f2cf which forces the logging to verbose, which is probably why I'm seeing those logs in the first place. The document I'm converting has the references that are being complained about : [[numbered]]
.Bullet points
. one
. two
[[purpose]]
.Purpose of the tool
****
...
****
[[another_term]]aka::
...
Then reference to <<numbered>> ...
[[first,First Contact]]
== First Contact
Later ... xref:first[] with this <<purpose,Purpose>>.
<<another_term>> |
The problems were always there. Asciidoctor 2 just tells you about them now. |
If I try your sample with Asciidoctor core 2.0.11, I don't see any warnings.
|
Your document must be running in compat mode somehow:
But these shouldn't be warnings. I'll look into it. |
Yep, that's a bug in the compat mode logic. The condition is reversed. A valid reference is being logged as an invalid reference. Oops. I'll fix in 2.0.11. |
thanks |
|
@sgarfinkel I'd have to see your document to know for sure, but likely these are warnings due to the inverted condition. A fix has been made to the master branch and will be included in the 2.0.11 release.
This has nothing to do with sectlinks. That's a setting that affects how section titles are displayed. |
Yes, I should have edited my original comment, I was getting a similar warning but it was actually a bug in my asciidoc due to actual invalid references. |
This issue seems to be normal behavior if I understand correctly and is not directly related to AsciidoctorJ. |
..and it was fixed in Asciidoctor core. See asciidoctor/asciidoctor#3555 |
I've setup a project that uses asciidoctor-gradle-plugin 3.1.0. And I always get these INFO / warning log messages. I'm not sure those are actual warnings.
Here's the setup, I'm using Gradle 6.1.1. As far as I understand asciidoctorj to 2.2.0 still packages the 2.0.10 gem lib.
The text was updated successfully, but these errors were encountered: