I’m using the nextflow plugin within VS Code, but the language server fails to start. It seems to be a version compatibility issue, but I’m too much of a Java newb to figure it out. Do I just need to get my hands on a newer Java version?
Below are the error logs.
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
[Error - 11:18:36 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 11:18:36 AM] Connection to server got closed. Server will restart.
true
[Error - 11:18:36 AM] Nextflow Language Server client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
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
[Error - 11:18:36 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 11:18:36 AM] Connection to server got closed. Server will restart.
true
[Error - 11:18:36 AM] Nextflow Language Server client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
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
[Error - 11:18:36 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 11:18:36 AM] Connection to server got closed. Server will restart.
true
[Error - 11:18:36 AM] Nextflow Language Server client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 11:18:36 AM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
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
[Error - 11:18:36 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 11:18:36 AM] Connection to server got closed. Server will restart.
true
[Error - 11:18:36 AM] Nextflow Language Server client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 11:18:36 AM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
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
[Error - 11:18:37 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 11:18:37 AM] The Nextflow Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 11:18:37 AM] Nextflow Language Server client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 11:18:37 AM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097