nextflow-io / language-server

The Nextflow language server
Apache License 2.0
9 stars 0 forks source link

Nextflow language server crashes: this version of the Java Runtime only recognizes class file versions up to 55.0 #58

Closed nschan closed 2 weeks ago

nschan commented 2 weeks ago

Hello,

I am unable to run the nextflow language server in VSCode. I receive this error:

Error: LinkageError occurred while loading main class nextflow.lsp.NextflowLanguageServer
    java.lang.UnsupportedClassVersionError: nextflow/lsp/NextflowLanguageServer has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
  Code: -32097 

The system I use is old, so I assume this is the reason, but I could not find a mention of the minimum requirements for this plugin anywhere.

nschan commented 2 weeks ago

This is probably a duplicate of this https://github.com/nextflow-io/vscode-language-nextflow/issues/35 ; sorry I did not realize that there were two different repos for this.

bentsherman commented 1 week ago

No problem. Was your issue that you were using Java 11? Minimum requirement is Java 17, but we're also seeing errors like this even for users with Java 17, so we're still investigating that

nschan commented 1 week ago

Yes, I am using Java 11.

bentsherman commented 1 week ago

Upgrading to 17 should make things work. Let me know if it still crashes