whenever I change the language level to 20 (Preview) it gets changed back about 5 minutes later and i get the following error:
java: java.lang.foreign.MemorySegment is a preview API and is disabled by default.
(use --enable-preview to enable preview APIs)
I have
--enable-preview --enable-native-access=ALL-UNNAMED
options for both the compiler and the Maven runner, yet it still keeps changing back to 20 without the preview. In both .idea/compiler.xml and .idea/workspace.xml it acknowledges these options. I know that you're meant to use pom.xml to fix it instead of using the GUI since the project will just be reloaded, but what option do I use since both compilers are version 20?