Hey, any specific reason of why I can’t see the so...
# compose
q
Hey, any specific reason of why I can’t see the source code of any compose related class?
2
👍 4
s
Looks like the source files aren't downloaded. Try doing a gradle sync
a
Are you using Canary 12?
q
Canary 12 yes, gradle sync is not helping
j
Same here.
✔️ 3
t
For me it is still working AS 4.2 canary 12 / Compose 1.0.0-alpha03
Maybe try to clear the gradle caches
q
rm’ed .gradle/caches, still nothing 😞
😣 2
😫 2
s
Btw you sure you're not viewing the source from the generated files?
q
I’m cmd+clicking and it’s opening the classes.jar file so I guess that’s the right file
s
What's the filename? Something like __Kt.class?
a
Actually, I opened the old version (Canary 10), verified that I could access the source from there. Then check again in Canary 12 and it is there now for some reason 🤷
1
😅 1
c
@Se7eN it's anything that comes from
package androidx.compose.ui
but it doesn't have __. It's normal name of the class. Like this one below as attached
q
@Se7eN yep, __Kt.class indeed
s
Yeah I guess it's a bug in AS. It's opening the generated class file. Maybe file an issue if you don't get a response here
l
@Quentin Dommerc Are you using Kotlin Multiplatform in this project?
q
nope, it’s a really empty project (just created it with the project wizard)
l
Then, can you report the issue with the reproducing steps, and give us the link?
s
Btw did you try the "Download sources" option?
c
@Ashar I have tried. Still didn’t work
👀 1
j
I have the same issue. Did you find a solution?
a
If you still have the same problem, @allan.conda's way worked for me too 😅
a
Glad to hear it worked for you 😄. Everyone just ignored it
a
Thank you btw. Still, I don't have a reasonable answer for why C12 failed to download source code and how C10 downloaded it. Probably because of that, they ignored your answer 🙂
j
Downloading Canary 4.2.10 fixed the issue for me too... FYI here is a link you can use to download Canary 4.2.10 on macOS: https://redirector.gvt1.com/edgedl/android/studio/ide-zips/4.2.0.10/android-studio-ide-202.6811877-mac.zip
👍 1
I also filed a bug
l
I'd rather find the link on my own on the official website to ensure I get it from the right place as I don't know who controls the gvt1.com domain or that page. https://developer.android.com/studio/archive
I mean, it seems to be Google as the archives give the same link, but it's not obvious as it's not a google.com nor android.com subdomain.
j
I didn't about the archives page and forged the direct link myself so I thought it could be useful to others 😛 Thanks for your better link 🙂
a
AS Canary 14 should fix it
k
Yeah, I am using canary 14. The problem still here.
s
Make sure to do a gradle sync
k
Oh, thank you
p
@Kyant did it work?
k
Yes, canary 14 works well @pavi2410