You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatically add --enable-preview to vmArgs, when necessary #553
Following on redhat-developer/vscode-java#671, when trying to run Java 12 code using preview features, you need to add the --enable-preview flag in the launch configuration's vmArgs:
The fix is detecting the java project settings firstly. if the debugger found the current java project enabled preview compiler flag, then auto add --enable-preview to vmArgs.
In a word, you don't need manually specify --enable-preview vmArgs in launch.json any more.
The fix is detecting the java project settings firstly. if the debugger found the current java project enabled preview compiler flag, then auto add --enable-preview to vmArgs.
In a word, you don't need manually specify --enable-preview vmArgs in launch.json any more.
hi,have you update this? I still have this problem,it only works after adding the 'vmArgs'.
Activity
testforstephen commentedon Apr 1, 2019
This
vmArgsis not recognized by Java 8. We need distinguish the JVM version first and determine whether to add this flag.testforstephen commentedon Apr 15, 2019
The fix is detecting the java project settings firstly. if the debugger found the current java project enabled preview compiler flag, then auto add
--enable-previewto vmArgs.In a word, you don't need manually specify
--enable-previewvmArgs in launch.json any more.jesse996 commentedon Apr 22, 2019
hi,have you update this? I still have this problem,it only works after adding the 'vmArgs'.
testforstephen commentedon Apr 23, 2019
szx233 We just released 0.18.0, which should have fixed this issue.