Using --enable-preview with IntelliJ
Eric Kolotyluk
eric at kolotyluk.net
Sun Nov 28 15:21:07 UTC 2021
I finally found the secret to getting IntelliJ IDEA to use --enable-preview
on compile
[image: image.png]
It is not sufficient to put --enable-preview in "Additional command line
parameters" it is necessary to add it to *each *of the "Override compiler
parameters per-module" settings.
I can now run my Loom code, *and code fragments*, directly from IntelliJ
IDEA, rather than building an uber jar in Maven, then running the jar.
This requires editing the pom.xml each time the main entry point changes...
Cheers, Eric
More information about the loom-dev
mailing list