Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't download compose artifacts' source code in the common code. #4530

Closed
Irineu333 opened this issue Mar 23, 2024 · 4 comments
Closed

Can't download compose artifacts' source code in the common code. #4530

Irineu333 opened this issue Mar 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Irineu333
Copy link

Irineu333 commented Mar 23, 2024

Describe the bug

When the android and desktop targets are defined in a project with only one module, it is not possible to download the source code of the Compose artifacts in the common code nor in the desktop code (both seem to use the same artifacts, *_desktop). This is terrible because to develop for Compose, it is strictly necessary to explore the source code of the composable functions.

Targets
By adding more targets, for example, iOS, the problem is solved, from the moment the common code starts to use the common artifacts. So I assume that the problem is precisely the artifacts for JVM.

Modules
For some reason that I still don't understand, the bug does not exist in projects with multiple modules. So, projects created with the Kotlin Multiplatform Wizard suffer from this bug.

My personal template, for example, started to show the bug after consolidating everything into one module.

Discussed in #4263

Affected platforms

  • Desktop (Windows, Linux, macOS)
  • Android

Versions

  • Kotlin version*: 1.9.22
  • Compose Multiplatform version*: 1.6.1
  • OS version(s)* (required for Desktop and iOS issues): Fedora 39
  • OS architecture (x86 or arm64): x86
  • JDK (for desktop issues): 17

To Reproduce
Steps and/or the code snippet to reproduce the behavior:

  1. Define the android and desktop targets.
  2. Create a simple hello world in the common code.
  3. Open the used composable and click on "download sources".
  4. Nothing happens.

Expected behavior
It should download the source code so that we can explore it.

Screenshots
Gravação de tela de 2024-03-23 00-12-41.webm

@Irineu333 Irineu333 added bug Something isn't working submitted labels Mar 23, 2024
@Irineu333 Irineu333 changed the title I can't download the Compose artifacts' source code in the common code. Can't download compose artifacts' source code in the common code. Mar 23, 2024
@mazunin-v-jb
Copy link
Contributor

Hello! Thank you for submitting the issue.
Looks like the problem with the Kotlin Wizard only. Please, create a ticket in Kotlin Issue Tracker
And feel free to reopen if you have any questions.

@Irineu333
Copy link
Author

@mazunin-v-jb I think it might be a bug in the IDE

@osipxd
Copy link

osipxd commented Mar 27, 2024

Maybe caused by IDEA-349334

@okushnikov
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants