Is there an easy way to revert to a previous versi...
# kotlin-toolchain
r
Is there an easy way to revert to a previous version of amper after doing amper update? Having run this to try an overcome a problem with the version I had (to do with compose versions which seems to prevent the changes being loaded into the IDE) it installed 0.9.0, which seems to plain old not work as as the dependency from one module on another seems to have been ignored and hence the dependent module no longer compiles (using amper build).
j
Hi Richard! You can indeed use the update command to go to any version, like this:
Copy code
./amper update --target-version=0.8.2
> it installed 0.9.0, which seems to plain old not work as as the dependency from one module on another seems to have been ignored and hence the dependent module no longer compiles (using amper build). This is quite intriguing, though. Is it possible for you to share your project? Also, which version of IntelliJ IDEA are you using? With Amper 0.9.0, you have to use the latest IJ IDEA 2025.3 Beta version to make sure the Amper IDE plugin and the Amper CLI agree.
r
Thx for the reply. The compilation error turns out to be self inflicted(!) - looks like I accidentally typed into the code editor rather than terminal (I think) and didn't notice, which cause some problems But the problem I had originally - using whatever version of amper is bundled with Intellij (2025.2.5) the is that when the compose version is set explicitly, ie
Copy code
settings:
  compose:
    enabled: true
    version: 1.9.0
I get the following failure when try to re-load the project in Intellij - and thus not picking up a new module
Copy code
Currently, Compose versions should be the same across all module files. Chosen Compose version is 1.9.0.
Currently, Compose versions should be the same across all module files. Chosen Compose version is 1.9.0.
This still seems to persist in 0.9.0 However, if I comment out the version: 1.9.0 (in both the modules where it is set) and reload the project then uncomment the version setting I have a project that is structurally correct in Intellij and uses the correct-ish compose version: looks like 1.9.1 in reality:
Copy code
00:01.977 WARN  :jvm-app:resolveDependenciesJvmTest Declared version 1.9.0 of dependency org.jetbrains.compose.foundation:foundation is overridden, the actual version is 1.9.1.
00:01.978 WARN  :jvm-app:resolveDependenciesJvmTest Declared version 1.9.0 of dependency org.jetbrains.compose.foundation:foundation is overridden, the actual version is 1.9.1.
As an aside, if I set the version to 1.9.1 explicitly the build breaks:
Copy code
Unable to resolve dependency org.jetbrains.compose.material3:material3:1.9.1
  Unable to download checksums of file material3-1.9.1.pom
  Unable to download checksums of file material3-1.9.1.module
Repositories used for resolution:
  - <https://repo1.maven.org/maven2>
  - <https://maven.google.com>
  - <https://maven.pkg.jetbrains.space/public/p/compose/dev>
(Probably a compose rather than amper problem, I guess)
j
Thanks a lot for sharing details! This constraint on the Compose version has been removed in 0.8.0. Am I right that you're seeing this in IJ 2025.2.5? If so, this version of idea uses an outdated version of Amper, and that's why we recommend always using the latest EAP/Beta, so in this case 2025.3 Beta. It would be great if you could check that everything works as you expect in 2025.3 Beta 🙏
r
Works fine in 2025.3 (just upgraded!) thx.
j
Good to know, thanks for the follow-up! 🙏