Fwd: [YouTrack, Commented] Issue IDEA-282632: Application Run Configuration does not respect "--enable-preview" VM Option with JDK-18

Eric Kolotyluk eric at kolotyluk.net
Wed Nov 17 15:47:27 UTC 2021


So, I will have to wait until later for JetBrains to address this...

In the meantime, I am not blocked, just inconvenienced. The workaround is

   1. mvn package
      - This seems to bypass the IntelliJ build so I don't get the compile
      error
      2. Invoke Run from Project Explorer
      - target/laboratory.jar
      - as built using the maven shade plugin

Anyway, requiring "--enable-preview" at this point in Project Loom has
caused some minor inconvenience with IntelliJ IDEA. In particular, when I
want to test different classes, I have to edit the pom.xml to change the
<mainClass></mainClass>.

The problem did not actually happen on the Application Run Configuration,
it happens on the IntelliJ Java Compiler Settings.

Cheers, Eric

---------- Forwarded message ---------
From: Olga Klisho <notifications at youtrack-mail.jetbrains.com>
Date: Wed, Nov 17, 2021 at 12:53 AM
Subject: [YouTrack, Commented] Issue IDEA-282632: Application Run
Configuration does not respect "--enable-preview" VM Option with JDK-18
To: Eric Kolotyluk <eric at kolotyluk.net>


Bug was updated by Olga Klisho in project IntelliJ IDEA at 17 Nov 2021
11:50.
IDEA-282632 <https://youtrack.jetbrains.com/issue/IDEA-282632> Application
Run Configuration does not respect "--enable-preview" VM Option with JDK-18
<https://youtrack.jetbrains.com/issue/IDEA-282632> Created by you
[image: Olga Klisho]

@Eric Kolotyluk <https://youtrack.jetbrains.com/users/kolotyluk> hello,
18JDK is not yet released, the support of 18JDK (preview) will appear only
in 2022.1.
View
<https://youtrack.jetbrains.com/issue/IDEA-282632#focus=Comments-27-5455877.0-0>
Reply <https://youtrack.jetbrains.com/issue/IDEA-282632?replyTo=27-5455877>
Resolved Issue was resolved.
State Submitted → Answered
This message was sent by YouTrack <https://jetbrains.com/youtrack> —
powerful project management for all your teams by JetBrains. You (
*kolotyluk*) received this message because you subscribe to @mentions in
issue descriptions and comments and notification events for the *Star* tag.
To unsubscribe, you can mute notifications for this issue
<https://youtrack.jetbrains.com/api/unsubscribe?token=MTYzOTY5OTIwMDAwMHwxMS05MTU1MzV8MjUtMzU3NzAwM3xYbTJLQlFKdEtBZnd6NkZBbjN0aXZo%0D%0ANkxpbld1elM1WEtLQUM4MXdhZTR3DQo%0D%0A>
or edit your notification preferences
<https://youtrack.jetbrains.com/users/7d2d66b5-f76b-445f-a488-0b1ec5955494?tab=notifications>.
[@mention: @Mention in a comment] [tag: Star] YouTrack 2021.4.32239


More information about the loom-dev mailing list