Skip to content

Warning for link to API doc (Double brackets) are silently ignored #17550

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

Open
Dedelweiss opened this issue May 22, 2023 · 1 comment
Open

Warning for link to API doc (Double brackets) are silently ignored #17550

Dedelweiss opened this issue May 22, 2023 · 1 comment

Comments

@Dedelweiss
Copy link
Contributor

Compiler version

3.3.0-RC6

Minimized code

/**
 * Voir blogConfig [[nofoo.Foo]] ou [[foo.noFoo]]
*/
def bar2 = ()

Output

When I do multiple errors, on the same def, for links to API documentation (double brackets), I get a warning like:

[warn] -- Warning: src/main/scala/caseTest/foo.scala:14:4 -----------------------------
[warn] 14 |def bar2 = ()
[warn]    |          ^
[warn]    |    No DRI found for query: nofoo.Foo

But the following errors are silently ignored.

Expectation

I expect to receive warnings for all erroneous links.

@Dedelweiss Dedelweiss added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label labels May 22, 2023
@Dedelweiss
Copy link
Contributor Author

I think the problem is with the srcPos in Comments.resolveLink because when I remove it, it works fine (minus the error position of course)

@WojciechMazur WojciechMazur added area:doctool and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants