You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the same URL is present in different references and it produces a verification error, all of its occurrences are reported with the same reference.
To Reproduce
Steps to reproduce the behavior:
Create a file named a.md with the following contents:
[Bad url](https://bad-test-url.com)
[The same bad url](https://bad-test-url.com)
Initialize a repository with this file and run:
xrefcheck
The output is as follows:
=== Invalid references found ===
➥ In file a.md
bad reference (external) at src:1:1-35:
- text: "Bad url"
- link: https://bad-test-url.com
ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = 0.0.0.0:0, addrCanonName = Nothing}, host name: Just "bad-test-url.com", service name: Just "443"): does not exist (nodename nor servname provided, or not known)
➥ In file a.md
bad reference (external) at src:1:1-35:
- text: "Bad url"
- link: https://bad-test-url.com
ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = 0.0.0.0:0, addrCanonName = Nothing}, host name: Just "bad-test-url.com", service name: Just "443"): does not exist (nodename nor servname provided, or not known)
Invalid references dumped, 2 in total.
Expected behavior
One of the references should correspond to "Bad url" and the other one to "The same bad url", but both of the reported errors correspond just to one of them.
I have not checked it, but I think that this may be a consequence of the external reference verification cache, which is probably caching both the result and the reference.
The text was updated successfully, but these errors were encountered:
Description
When the same URL is present in different references and it produces a verification error, all of its occurrences are reported with the same reference.
To Reproduce
Steps to reproduce the behavior:
a.md
with the following contents:The output is as follows:
Expected behavior
One of the references should correspond to "Bad url" and the other one to "The same bad url", but both of the reported errors correspond just to one of them.
Environment
Additional context
I have not checked it, but I think that this may be a consequence of the external reference verification cache, which is probably caching both the result and the reference.
The text was updated successfully, but these errors were encountered: