JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.11k stars 1.17k forks source link

Replace Jetpack Compose version in error messages by Compose for Desktop version #193

Closed igordmn closed 3 weeks ago

igordmn commented 3 years ago

If we are using Compose for Desktop (0.3.0-build135) then there may be error messages which contains version 1.0.0-alpha10. It is version of Jetpack Compose for Android, not for desktop.

e: This version (1.0.0-alpha10) of the Compose Compiler requires Kotlin version 1.4.21 but you appear to be using Kotlin version 1.4.20 which is not known to be compatible.  Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 15s

Proper message will be:

e: This version (0.3.0-build135) of the Compose Compiler ...
sonique6784 commented 3 years ago

I'm having the same issue with 0.3.0-build140

okushnikov commented 1 month ago

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