Hi all, with the current master of kotlin reposito...
# kontributors
h
Hi all, with the current master of kotlin repository i get java.awt.HeadlessException when i execute the openIdea task. Anyone else facing that or am I missing a configuration somehow? I am on windows and using openjdk 11
d
After sources of kotlin IDE plugin moved to idea-community repository it's impossible to run kotlinIDE plugin form kotlin repo only If you really want to test plugin you need to: • Clone kotlin repo to, let's say,
kotlin
directory • Clone intellij-community:
Copy code
git clone <https://github.com/JetBrains/kotlin.git>
cd kotlin
git clone <https://github.com/JetBrains/intellij-community.git> --branch kt-212-master --single-branch intellij
• Open Intellij community proejct and run predefined run configuration named Publish compiler-for-ide jars • Now you can build IDEA from sources and run IDEA configuration, which runs debug idea with kotlin plugin built against compiler from sources from
kotlin
directory and IDE plugin sources from
kotlin/intellij/plugins/kotlin
directory
h
Oh, thats sad, that was such a nice workflow. Thanks for the explanation, i will try that asap :)
Wasnt able to get that up in a reasonable amount of time, sorry :( thanks nonetheless for your help, Very appreciated to get an answer so fast
d
Well, this setup is really hard even for our teams. But fortunately this compilation scheme (IDE plugin sources against kotlin sources) is needed only for small amount of developers, and most of IDE plugin team just work with intellij master, which uses some specific version of compiler as dependency Can you tell what you originally wanted to do? Maybe it's enough to use just one repo
h
Completely understandable, i am Not contributing or anything so its perfectly fine that it doesnt work, No worries :) i wanted to play with context receiver feature with ide experience and was to curious about that feature to wait for the next kotlin release 1.6.20, so i thought i give it a try since it worked so nicely last time (been a while)
d
It should have some context receiver support, but some features (like completion for
this@
labels) are missing
h
Thanks a bunch, i will try that <3
Ide complains about experimental feature, i tried to add -opt-in=context receivers in gradle but that doesnt do it^^" any idea?
a
Hi Hannes. Please use the
-Xcontext-receivers
compiler option.
h
Works, thanks again :)