IJ: Downloading/attaching SDK sources doesn't seem to work

I know this problem has been existing on and off for a long time. I think this used to work the last time I had to maintain our plugin (which was a few months ago).

But today, no luck.

I do have the setting enabled:

Then I do Download Sources, and then Sync All Gradle Projects:

Then I try to navigate to this method:

And this is where I land:

Ideas?

We are delivering a proper fix soon https://youtrack.jetbrains.com/issue/IJPL-246844

Any workaround in the meantime? It’s very painful to develop a plugin without the sources.

Just wanted to share that the referenced ticket is marked as fixed in 2026.2.2 but I can still reproduce the issue with it.

Can you please provide more information on your current setup?

Yes, I’m using IJ 2026.2.21 / #IU-262.10315.125.

  • git clone https://github.com/apollographql/apollo-intellij-plugin.git and open the project

  • open the file GraphQLConfigService.kt

  • line 149, try to navigate to fireAdditionalLibraryChanged

On my side, I still land on the decompiled version - let me know if it opens the source in you case or if I can help investigating! Thanks!

Ok, now I know everything, thanks!
IntelliJ Platform sources are resolved by the Plugin DevKit from the IntelliJ Releases/Snapshot repositories by IDE, which creates a temporary task in your root project to fetch the -sources.jar and attach it to the IntelliJ Platform dependency.
Unfortunately, that works only when you have the mentioned repositories added, and in your case, the org.jetbrains.intellij.platform Gradle plugin is added to the plugin module only, along with the required

repositories {
  // ...
  intellijPlatform {
    defaultRepositories()
  }
}

in order to get this working, you can apply the org.jetbrains.intellij.platform.settings in your settings.gradle.kts and define there all required repositories for all modules at once.

See the settings.gradle.kts of the IntelliJ Platform Plugin Template repository for more details.

Thanks a lot @jakub.chrzanowski !

I’ve just tried that (in this branch) but this doesn’t seem to work yet. Did I misconfigure something?

I just switched to the bump-dependencies branch, and then

  • reloaded Gradle project,
  • navigated to the AdditionalLibraryRootsListener compiled class,
  • clicked the Download IntelliJ Platform Sources,
  • waited a bit,
    and class in editor was replaced with actual source file.

Before I had your project opened with the main branch with no patches applied, so it relied entirely on your new setup.

I just realized I didn’t have the Plugin Devkit plugin installed (I only had the DevKit Runtime one) :person_facepalming: . Sorry about that - indeed after installing it I can confirm this works for me too! :tada:

Thanks for the help!