Hello, I don't know if someone else is facing this error:
$clojure-lsp
Exception in thread "main" java.lang.UnsupportedClassVersionError: clojure_lsp/ClojureExtensions has been compiled by a more recent version of the Java Runtime (class file version 57.0),
this version of the Java Runtime only recognizes class file versions up to 52.0
I'm using Java 8 (Oracle JDK) and installed clojure-lsp with homebrew, using latest version from your github releases repository. homebrew formula
Since I clone the repository and recompile clojure-lsp with java 8 ($lein bin), the problem is gone. 馃憤
Same for me, but my version is 55 instead of 52. I'm using macosx Mojave 10.14.6 with Java 11. Seems like the release was compiled with Java 13.
It's the Homebrew bottle that compiles against a newer version of Java, rather than the release process in this project. I'm not sure how those binary builds are configured. You can bypass the bottle with:
brew install clojure-lsp --build-from-source
An alternative could be downloading the binary directly from the releases: https://github.com/snoe/clojure-lsp/releases/tag/release-20200514T134144
Closing it since we already fixed it a long time ago :sweat_smile:
Most helpful comment
It's the Homebrew bottle that compiles against a newer version of Java, rather than the release process in this project. I'm not sure how those binary builds are configured. You can bypass the bottle with: