Hi, I want to test context receivers feature, but ...
# eap
a
Hi, I want to test context receivers feature, but IntelliJ says that
The feature "context receivers" is experimental and should be enabled explicitly
, but I can't find anywhere where to activate this ? I have 2021.3.2 with Kotlin 1.6.20-M1 plugin installed via preview channel with a fresh kotlin project with Kotlin 1.6.20-M1 & Java 17 using Gradle 7.4 🤔
a
Hi! This is a known issue for IDEA 2021.3.*. As a workaround, please try to pass
-Xcontext-receivers
in Preferences -> Build, Execution, Deployment -> Compiler -> Kotlin compiler -> Additional command line parameters.
a
Thanks all !
o
While Gradle compilation works, fixing the highlighting problem in the IDE did not work for me. Added details to the issue.
👀 1