-
Notifications
You must be signed in to change notification settings - Fork 515
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
Gradle Plugin source code not available in IntelliJ #3642
Comments
Hm, the source jars are available: https://repo.maven.apache.org/maven2/com/squareup/sqldelight/gradle-plugin/1.5.4/ and I can't reproduce this with a simple test project, using |
Edit: Okay, I am able to reproduce it. You need a buildSrc, add sqldelight plugin as an implementation dependency, but configure the plugin in the usual way in the build scripts. The sources are available in the buildSrc, but not in the build scripts. But I have no idea, why resolving the sources jar is possible inside buildSrc, but not in the scripts. |
Thanks for the update, it's good that someone else is able to reproduce it. Perhaps the problem is caused by the SQLDelight plugin not being published on the Gradle Plugin Portal, so IntelliJ can't find the sources? |
Maybe, but IntelliJ is able to get the source when using it directly in the scripts. So the question is, do we need something to fix, or is this a bug in IntelliJ? |
It might be an IntelliJ issue, but I'm not sure https://youtrack.jetbrains.com/issue/IDEA-306776 My guess is that the SQLDelight plugin isn't following the Gradle API in a traditional way (for example, #3643), and that's causing problems with IntelliJ. |
I've opened up the SQDelight Gradle Plugin sources jar locally, and it looks like it's missing the sources that are shaded into the jar. There's no It makes sense that the source files of shaded dependencies aren't included, but perhaps the missing source files causes IntelliJ to consider the source jar unsuitable, and so it discards it? |
Is this issue still reproducible after #4079 which removes the shadowing? |
Description
I have applied the SQLDelight Gradle Plugin to my Gradle project. Everything works, but I would like to see the source code to find out more about how to configure the plugin.
When I ctrl+click on
linkSqlite
in thesqldelight
block, I'm taken to a decompiled .class fileI would like to be able to ctrl+click and go to the source code, so that I can see what options are available, and what they do.
Versions:
The text was updated successfully, but these errors were encountered: