Hello, when using Amper standalone (jvm project, i...
# amper
l
Hello, when using Amper standalone (jvm project, in my case), I can't see the the KDoc of the stdlib, nor dependencies like kotlinx.coroutines Is that a known bug/omission? I'm on IDEA 2025.1 Beta 1
j
Hi Louis, thanks for reporting this. I thought this had been added. @klikh / @abarsov could you please remind me about source downloads of the stdlib and dependencies?
z
Can you check these settings?
🙏 2
this 1
With this, I'm seeing stdlib and coroutine sources
l
Thank you, it works! Why isn't it enabled by default? Who would develop without docs, nor sources? Sounds like a recipe for disaster, and junior devs being lost and not understanding what they're using.
z
This was a performance optimization when they did it for Gradle projects, there's a long thread on the topic that I see you already participated in. I think Android Studio overrides this behaviour to this day, just ignoring the toggle in Advanced Settings. Anyway, I agree with you, it's a severely degraded experience in a lot of ways, and I also always want sources to be available. For Amper there was this issue which made it possible to download sources, but I don't know what happened to making Amper download sources by default. I thought it was something we were going to do, someone from the Amper team can hopefully chime in on that part 😄
a
• source downloads of the stdlib is done by default starting from 2025.1.1 (not yet released) • sources of standard libraries are downloaded one-by-one on demand (it has some issues, that will be resolved in 2025.1.1 as well)
k
Downloading sources for all dependencies significantly increases the time of the sync (basically, makes it twice as long), so we decided not to download them by default. However, I totally agree that it is very inconvenient not to have sources in the project. For JVM libraries it is possible to download sources on-demand from the class file (there is a link shown above the editor), but it is not that convenient indeed. I’ve opened AMPER-4242 to track this issue and discuss how the user experience could be improved here.