1.3.40 enabled the new inference engine for the ID...
# intellij
e
1.3.40 enabled the new inference engine for the IDE analysis. Is there a way to enable the new inference engine in JPS so Kotlin code gets compiled with it? Like passing
-XXLanguage:+NewInference
to the compiler, I couldn’t find a place for compiler arguments in the UI.
m
Isn't it Additional command line parameters right below?
Build, Execution, Deployment > Compiler > Kotlin Compiler
e
ah, in front of my 👀 thanks!
it seems it enables it 👍 but then I get a different failure
m
Maybe try with serialization plugin disabled, fix compile errors, then re-enable
e
Gradle builds the code just fine with the new inference engine. I can fix the compilation errors by adding more explicit type declarations but I’d like to make the new inference engine work.
I don’t use a serialization plugin, from the stacktrace I would say it’s some internals of the kotlinjs compiler that do some serialization for the kotlin metadata.
m
Looks like that you have to hunt for the cause of the compiler error and report it 😕
e
Yeah 🕳️ 🐇
What troubles me is that it should compile with the new inference engine enabled, and, the error pops up before the warning about enabling the new engine 🤷‍♂️
Maybe it’s not, I’ve no idea in what order compiler messages are shown
EndOfDayException
, I might get back to this Thanks @Marc Knaup
m
Enjoy the evening 🙂