Skip to content

Commit

Permalink
chore: k2 mode is stable
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahhaggarty committed Dec 5, 2024
1 parent 7af1fed commit ae3fe17
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
Binary file added docs/images/whatsnew/k2-mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions docs/topics/k2-compiler-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,12 +561,6 @@ For more information on what is possible with build reports, see [Build reports]

## Support in IDEs

> K2 mode is in [Beta](components-stability.md#stability-levels-explained) and enabling it is optional.
> We are working on stability and code analysis improvements, but not all IDE features are
> supported yet.
>
{style="warning"}

By default, both IntelliJ IDEA and Android Studio 2024.1 use the previous compiler for code analysis, code completion,
highlighting, and other IDE-related features. This is to ensure performance and stability while we work on integrating
the new Kotlin K2 compiler.
Expand All @@ -577,7 +571,7 @@ Android Studio 2024.1. To enable K2 mode:
1. In your IDE, go to **Settings** | **Languages & Frameworks** | **Kotlin**.
2. Select the **Enable K2 mode** option.

Learn more about the K2 mode in our [blog](https://blog.jetbrains.com/idea/2024/08/meet-the-renovated-kotlin-support-k2-mode/).
Learn more about K2 mode in our [blog](https://blog.jetbrains.com/idea/2024/11/k2-mode-becomes-stable/).

> We plan to introduce [Stable](components-stability.md#stability-levels-explained) language features after Kotlin 2.1.0.
> Until then, you can continue to use the previous compiler for code analysis, and you won't encounter any code highlighting
Expand Down
5 changes: 1 addition & 4 deletions docs/topics/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ for code analysis, code completion, highlighting, and other IDE-related features
Starting from 2024.1, IntelliJ IDEA can use the new K2 compiler to analyze your code with its K2 mode.
To enable it, go to **Settings** | **Languages & Frameworks** | **Kotlin** and select the **Enable K2 mode** option.

> The K2 mode is in Beta from 2024.2. We are working on stability and code analysis improvements, but not all IDE features
> are supported yet.
>
{style="warning"}
![Enable K2 mode](k2-mode.png){width=200}

After enabling K2 mode, you may notice differences in IDE analysis due to changes in compiler behavior.
Learn how the new K2 compiler differs from the previous one in the [migration guide](k2-compiler-migration-guide.md).
Expand Down
7 changes: 2 additions & 5 deletions docs/topics/whatsnew20.md
Original file line number Diff line number Diff line change
Expand Up @@ -649,15 +649,12 @@ highlighting, and other IDE-related features. To get the full Kotlin 2.0 experie
In your IDE, go to **Settings** | **Languages & Frameworks** | **Kotlin** and select the **Enable K2 mode** option.
The IDE will analyze your code using its K2 mode.

> The K2 mode is in Beta from 2024.2. We are working on stability and code analysis improvements, but not all IDE features
> are supported yet.
>
{style="warning"}
![Enable K2 mode](k2-mode.png){width=200}

After enabling K2 mode, you may notice differences in IDE analysis due to changes in compiler behavior. Learn how the
new K2 compiler differs from the previous one in our [migration guide](k2-compiler-migration-guide.md).

* Learn more about the K2 mode in [our blog](https://blog.jetbrains.com/idea/2024/08/meet-the-renovated-kotlin-support-k2-mode/).
* Learn more about K2 mode in [our blog](https://blog.jetbrains.com/idea/2024/11/k2-mode-becomes-stable/).
* We are actively collecting feedback about K2 mode, so please share your thoughts in our [public Slack channel](https://kotlinlang.slack.com/archives/C0B8H786P).

### Leave your feedback on the new K2 compiler
Expand Down

0 comments on commit ae3fe17

Please sign in to comment.