https://kotlinlang.org logo
#compose
Title
# compose
q

Quentin Dommerc

09/24/2020, 12:44 PM
Hey, any specific reason of why I can’t see the source code of any compose related class?
2
👍 4
s

Se7eN

09/24/2020, 1:36 PM
Looks like the source files aren't downloaded. Try doing a gradle sync
a

allan.conda

09/24/2020, 1:38 PM
Are you using Canary 12?
q

Quentin Dommerc

09/24/2020, 2:01 PM
Canary 12 yes, gradle sync is not helping
j

Jovan

09/24/2020, 2:13 PM
Same here.
✔️ 3
t

Timo Drick

09/24/2020, 2:26 PM
For me it is still working AS 4.2 canary 12 / Compose 1.0.0-alpha03
Maybe try to clear the gradle caches
q

Quentin Dommerc

09/24/2020, 3:16 PM
rm’ed .gradle/caches, still nothing 😞
😣 2
😫 2
s

Se7eN

09/24/2020, 3:38 PM
Btw you sure you're not viewing the source from the generated files?
q

Quentin Dommerc

09/24/2020, 3:45 PM
I’m cmd+clicking and it’s opening the classes.jar file so I guess that’s the right file
s

Se7eN

09/24/2020, 3:46 PM
What's the filename? Something like __Kt.class?
a

allan.conda

09/24/2020, 10:37 PM
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

Christian

09/25/2020, 6:51 AM
@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

Quentin Dommerc

09/25/2020, 6:54 AM
@Se7eN yep, __Kt.class indeed
s

Se7eN

09/25/2020, 7:00 AM
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

louiscad

09/25/2020, 12:36 PM
@Quentin Dommerc Are you using Kotlin Multiplatform in this project?
q

Quentin Dommerc

09/25/2020, 12:37 PM
nope, it’s a really empty project (just created it with the project wizard)
l

louiscad

09/25/2020, 12:37 PM
Then, can you report the issue with the reproducing steps, and give us the link?
s

Se7eN

09/25/2020, 1:15 PM
Btw did you try the "Download sources" option?
c

Christianlumapac

09/25/2020, 1:19 PM
@Ashar I have tried. Still didn’t work
👀 1
j

jdemeulenaere

09/26/2020, 5:59 PM
I have the same issue. Did you find a solution?
a

andani

09/27/2020, 1:30 PM
If you still have the same problem, @allan.conda's way worked for me too 😅
a

allan.conda

09/27/2020, 1:46 PM
Glad to hear it worked for you 😄. Everyone just ignored it
a

andani

09/27/2020, 2:19 PM
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

jdemeulenaere

09/28/2020, 2:06 PM
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

louiscad

09/28/2020, 2:08 PM
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

jdemeulenaere

09/29/2020, 10:59 AM
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

allan.conda

10/23/2020, 11:30 AM
AS Canary 14 should fix it
k

Kyant

10/23/2020, 11:31 AM
Yeah, I am using canary 14. The problem still here.
s

Se7eN

10/23/2020, 11:36 AM
Make sure to do a gradle sync
k

Kyant

10/23/2020, 11:54 AM
Oh, thank you
p

pavi2410

10/23/2020, 4:58 PM
@Kyant did it work?
k

Kyant

10/23/2020, 10:24 PM
Yes, canary 14 works well @pavi2410
2 Views