Skip to content

Consolidated full-stack application development library for Kotlin

License

Notifications You must be signed in to change notification settings

spxbhuhb/adaptive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Maven Central GitHub License

Caution

Project status: preview

Please note the project status, many basic things you would expect to work are still broken, especially around the code transformation.

For support, please join the #fun-adaptive channel on kotlinlang.

Important

Currently only IntelliJ 2024.2.1 and Kotlin 2.0.0 is supported. I'll update everything eventually, but for now I focus on the functionality.

Adaptive uses the K2 compiler heavily. Starting from IntelliJ IDEA 2024.2 K2 support is available for multiplatform projects. To have it, you have to enable K2 and the non-bundled plugins.

Enable K2

  1. Settings
  2. Languages & Frameworks
  3. Kotlin
  4. Enable K2 mode

Enable 3rd party compiler plugins in the IntelliJ registry

See KTIJ-29248 for details.

  1. Shift-Shift
  2. select Actions on top
  3. type in Registry
  4. find kotlin.k2.only.bundled.compiler.plugins.enabled and set it OFF

Technically you could avoid the registry setting by adding some boilerplate manually, but I think it's just easier to have it. Also, the issue above is scheduled for 2024.3, so hopefully this setting won't be needed anymore.

Import issues

There are a few import related issues when in K2 mode, see KTIJ-31100 for details. Hopefully as K2 matures these will go away.