intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

2.0 - Failed to download platform sources

Open Undin opened this issue 9 months ago • 5 comments

What happened?

When I try looking at the source code of some platform class (for example, AnAction), IDE doesn't show it by default (it seems it's expected). But if I invoke Download... from editor notification, it also fails to attach IDE sources

https://github.com/JetBrains/intellij-platform-gradle-plugin/assets/2539310/78a7f328-7e3a-4349-8036-da334d80890a

Relevant log output or stack trace

No response

Steps to reproduce

  • Clone https://github.com/Undin/intellij-platform-gradle-plugins-bugs/tree/master
  • Open AnAction class and press Download... option in editor notification

Gradle IntelliJ Plugin version

2.0.0-SNAPSHOT

Gradle version

8.7

Operating System

macOS

Link to build, i.e. failing GitHub Action job

No response

Undin avatar May 07 '24 13:05 Undin

What IDE version are you using?

YannCebron avatar May 28 '24 15:05 YannCebron

@YannCebron I have the same issue. Using IJ Ultimate 2024.1.2.

jonathanlermitage avatar Jun 09 '24 01:06 jonathanlermitage

Same with IJ Ult. 2024.1.4 and plugin 2.0.0-beta7. It makes plugin development painful 😥

jonathanlermitage avatar Jun 26 '24 13:06 jonathanlermitage

Thx https://jetbrains-platform.slack.com/archives/C05C80200LS/p1719407595946569?thread_ts=1719328643.909549&cid=C05C80200LS, with 2024.1.4, after reloading Gradle project, I now see the "Download IntelliJ Platform sources" and, this time, it worked.

jonathanlermitage avatar Jun 26 '24 13:06 jonathanlermitage

But for bundled community plugin (i.e. java), the source codes are still not attached.

dowenliu-xyz avatar Jun 27 '24 02:06 dowenliu-xyz

I tis now fixed with IJPL-158473 and will be released in IntelliJ IDEA 2024.1.5 and 2024.2.

hsz avatar Jul 23 '24 05:07 hsz

It's still not working for BundledPlugins , .e.g. bundledPlugins("Git4Idea", "JavaScript", "Docker") .

The Download Intellij Platform sources action appears, I still see the decompiled class file after I executed it. image

However, downloading the sources for .e.g. com.intellij.execution.configurations.RunConfiguration worked fine.

I tried it with the IntelliJ 2024.2 as you can see: image image

Do I miss something?

JensWinkler91 avatar Aug 04 '24 10:08 JensWinkler91