Skip to content

Is there a way to enable preview mode when using JDK14? #131

@houssemsb

Description

@houssemsb

I'm using JDK-14 for a project with preview enabled (when compiling with gradle) so I can test and leverage new feature like record for example. When I build the project all goes well, there is no problem there.

coc-java in the other hand is no picking gradle configuration that explicitly says --enable-preview so I have this error [Java 4195409] [E] The preview feature Records is only available with source level 15 and above .

Is there any way to tell explicitly JDTLS to enable preview mode for the java version I'm using?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions