Does 1.6.0-rc03 have an issue with the source code...
# compose-desktop
s
Does 1.6.0-rc03 have an issue with the source code not being included? 1.6.0-rc02 is fine for me. Maybe my cache is scewy.
z
i had the same issue. ask 2 times. no good answer.
what i did now what in intelliJ crtl click on any compose name in the source like Row() and then there is a button to download source. not cool, but a workaround
d
Hello! Can you please provide more context of this problem: What IntelliJ IDEA version are you using? Do you have an example project that you can share?
First - you can try to invalidate caches:
i
I wonder if you use
mavenLocal()
in your
build.gradle
files? If you use, will removing it help?
s
Copy code
IntelliJ IDEA 2023.3.4 (Ultimate Edition)
Build #IU-233.14475.28, built on February 13, 2024
Licensed to Sean Proctor
Subscription is active until August 21, 2024.
Runtime version: 17.0.10+1-b1087.17 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.5.0-18-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 3998M
Cores: 12
Registry:
  ide.experimental.ui=true
Non-Bundled Plugins:
  org.antlr.intellij.plugin (1.23)
  <http://com.jetbrains.jax.ws|com.jetbrains.jax.ws> <tel:(233.13135.65|(233.13135.65>)
  com.intellij.lang.jsgraphql <tel:(233.13135.65|(233.13135.65>)
  org.jetbrains.compose.desktop.ide (1.6.0-rc01)
  org.jetbrains.android <tel:(233.14475.28|(233.14475.28>)
  androidx.compose.plugins.idea (233.13135.106)
Kotlin: <tel:233.14475.28|233.14475.28>-IJ
Current Desktop: ubuntu:GNOME
Since it doesn't appear to be a known issue, I'm trying to see if something went wrong on this computer or if it's reproducible. Give me a few minutes.
I do use
mavenLocal()
, but removing it doesn't seem to have any effect.
🙏 1
i
Also, we reproduced a bug today that material3 sources aren't visible in
kotlin("jvm)"
projects. non-material3 and
kotlin("multiplatform")
have them.
s
Sorry, I can't reproduce it. The same project on my desktop and laptop have the issue. I have a small open source project with a very similar structure that doesn't exhibit the problem. Clicking "Download Sources" can work around the issue on my desktop, but nothing happens when I click on it on the laptop, weird. The module in question is multiplatform and it's affecting the source of all Compose libraries, not just material3.
I'm having the same issue with 1.6.0.
@Zoff Did you manage to make a reproducer for this? I've tried everything I can think of, but it seems like one app is shows the issue and others don't for no obvious reason.
It seems to be an IntelliJ bug. Android Studio doesn't have the same problem.
i
I've tried everything I can think of, but it seems like one app is shows the issue
Have you tried to remove third-party libraries from the dependencies and keep only Compose and Kotlin?
s
I've been using AS for the past few days. I just tried getting rid of all of the dependencies and the problem went away. Adding back all of the dependencies and it still works. Thanks for helping with this. If I ever figure out what the conditions were to cause the issue, I'll let you know. I'm still guessing something weird with the IntelliJ cache, although I tried clearing that and the gradle cache.
👍 1
It is still downloaded automatically if you use
kotlin("multiplatform")
. After it is downloaded, it is reused for
kotlin("jvm")
projects as well.
s
That explains why older versions were available. I had used them in different projects.
I have a project that has mixed
kotlin("multiplatform")
and
kotlin("jvm")
and sources are not downloaded there.
Thanks for letting me know about this. I added the workaround suggested there and all is good.
👍 1
@Zoff If you're looking for the solution, you need to use the
idea
gradle plugin and set
downloadSources
to true. https://docs.gradle.org/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html