-
Notifications
You must be signed in to change notification settings - Fork 427
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
Regression: linking Java sources broken in 1.7.0 #2544
Comments
Hi! Thanks for the report, this one was not expected :) Your project is rather good for testing releases on, I must admit The change must've come from bumping
@Override
public TextRange getTextRange() {
return myMethod.getTextRange();
} But I can see now that it's been changed to @Override
public TextRange getTextRange() {
return null;
} Thus NPE. We should probably just ignore all synthetic elements. I'll fix it and it'll be released in 1.7.10 in roughly two weeks. Debug screenshot for future references: |
@IgnatBeresnev nice bug hunt 🔫 Yeah, if you provide me with a tool I usually stress it as much as I can 😄 I don't know how the test suite of Dokka is built, but, in general, it should be possible to import external projects as submodules, then, when testing with the Gradle toolkit, patch them to run the current in-development version of a Gradle plugin. I do something similar with my own plugins. Issue-wise, I'll be waiting for 1.7.10 (to be fair, my update bot will, I will hopefully just observe the result 😄 ) |
Describe the bug
Dokka used to be able to link Java sources, see, e.g., https://alchemistsimulator.github.io/reference/kdoc/alchemist/it.unibo.alchemist.core.implementations/-engine/add-output-monitor.html
Since 1.7.0,
dokkaHtmlCollector
fails withtextRange must not be null
.Expected behaviour
Dokka does not fail, the generated documentation links Java sources as it used to do in 1.6.x
To Reproduce
Dokka configuration
Configuration of dokka used to reproduce the bug
Note: removing
"java"
from the list above "fixes" the issue (it just turns off the source linking for Java sources).Installation
Additional context
Mixed Java-Kotlin projects (originally in Java, new parts written in Kotlin, slowly transitating to Kt).
Are you willing to provide a PR?
I have no idea what to fix, I need guidance at the very least.
The text was updated successfully, but these errors were encountered: