Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview features enabled at an invalid source release level 12, preview can be enabled only at source level 13 #1086

Closed
xCuri0 opened this issue Oct 3, 2019 · 2 comments

Comments

@xCuri0
Copy link

xCuri0 commented Oct 3, 2019

Preview features enabled at an invalid source release level 12, preview can be enabled only at source level 13

Environment
  • Operating System: Windows 10 x64
  • JDK version: tested OpenJDK 11, Oracle JDK 12, Oracle JDK 13
  • Visual Studio Code version: 1.38.1 (user setup)
  • Java extension version: 0.50
Steps To Reproduce
  1. Start the program
  2. You will get the error
public class HelloWorld {
    public static void main(String[] args) {
       System.out.println("Hello world!");
    }
 }
Current Result
[Error - 12:22:14 PM] Oct 3, 2019, 12:22:14 PM Error occured while building workspace. Details: 
 message: Preview features enabled at an invalid source release level 12, preview can be enabled only at source level 13; code: 2098258; resource: D:/Documents/workspace/HelloWorld.java;

in language support for java log

Expected Result

Compile and run

Additional Informations
@fbricon
Copy link
Collaborator

fbricon commented Oct 3, 2019

can you try running the "Java: clean the Java language server workspace" command?

@LeonSpors
Copy link

Updating to the latest version helped me. (12.01 to 13 Build 33)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants