Change:
Describe the bug When running I get the following error message: Looking at the executable the first line is: In fish does not return the name of the current executed file. It appear to work when running this using . Also as comparison look at the file generated via package manager: To Reproduce Steps to reproduce the behavior: Expected behavior should start the server Additional context So with . Notify maintainers Metadata Please run and paste the result. system: host os: multi-user?: sandbox: version: channels(yogsototh): nixpkgs: Maintainer information:
Hey this version is pretty outdated, could you try latest which is using graalvm binary?
Also the brew forumla you saw is outdated as well, the updated is
You are probably using the stable channel 20.09 channel, that should explain why you're still using the with JVM instead of GraalVM compiled binary. Switch to the unstable channel instead. I am not sure if it will work though since this package was never tested with macOS (and the fact that this package is broken in Hydra: ).
I just tested with latest master commit And if failed to build: I think the main bug is probably fixed. This is just another one :). This is late for me. I'll probably give it a look another day. Thanks for checking!
I think all GraalVM's packages build with Clojure are broken in macOS simply by the lack of people that has macOS systems to test/fix them. If you can fix this, a PR would be welcome :slightlysmilingface: .
Agreed If you have mac, using the homebrew official clojure-lsp formula should work as well: https://clojure-

Discussion:
email = "babathriviere@gmail.com"; github = "babariviere"; githubId = 12128029; <del> name = "babariviere"; </del> <ins> name = "Bastien Rivière"; keys = [{ longkeyid = "rsa4096/0xF202AD3B6EDF4BD1"; fingerprint = "2F85 B362 B274 0012 37E2  81EE F202 AD3B 6EDF 4BD1"; }]; </ins> }; babbaj = { name = "babbaj";

rm $out/jre/lib/jvmci/parentClassLoader.classpath ''; "11-darwin-amd64" = '' <del> echo "" </del> <ins> # BUG workaround http://mail.openjdk.java.net/pipermail/graal-dev/2017-December/005141.html substituteInPlace $out/conf/security/java.security  --replace file:/dev/random    file:/dev/./urandom  --replace NativePRNGBlocking  SHA1PRNG </ins> ''; }.${javaVersionPlatform};

''} echo '1 + 1' | $out/bin/node -i <del> ${lib.optionalString (javaVersion == "11") '' </del> <ins> ${lib.optionalString (javaVersion == "11" && stdenv.isLinux) '' # Doesn't work on MacOS, we have this error: "Launching JShell execution engine threw: Operation not permitted (Bind failed)" </ins> echo '1 + 1' | $out/bin/jshell ''}'';

homepage = "https://www.graalvm.org/"; description = "High-Performance Polyglot VM"; license = with licenses; [ upl gpl2Classpath bsd3 ]; <del> maintainers = with maintainers; [ bandresen volth hlolli glittershark ]; </del> <ins> maintainers = with maintainers; [ bandresen volth hlolli glittershark babariviere ]; </ins> platforms = [ "x86_64-linux" "x86_64-darwin" ]; }; };

GRAALVM_HOME = graalvm11-ce; CLOJURE_LSP_JAR = jar; <ins> CLOJURE_LSP_XMX = "-J-Xmx4g"; patches = lib.optionals stdenv.isDarwin [ ./disable-check-toolchain.patch ]; </ins> buildInputs = [ graalvm11-ce ];

description = "Language Server Protocol (LSP) for Clojure"; homepage = "https://github.com/clojure-lsp/clojure-lsp"; license = licenses.mit; <del> maintainers = [ maintainers.ericdallo ]; </del> <ins> maintainers = with maintainers; [ ericdallo babariviere ]; </ins> platforms = graalvm11-ce.meta.platforms; }; }

<ins> diff --git a/graalvm/native-unix-compile.sh b/graalvm/native-unix-compile.sh index ec0e49f..e19a120 100755 --- a/graalvm/native-unix-compile.sh +++ b/graalvm/native-unix-compile.sh @@ -17,6 +17,7 @@ CLOJURE_LSP_XMX=${CLOJURE_LSP_XMX:-"-J-Xmx4g"} args=("-jar" "$CLOJURE_LSP_JAR" "-H:+ReportExceptionStackTraces" +      "-H:-CheckToolchain" "--verbose" "--no-fallback" "--native-image-info" </ins>

-H:Name=${pname}  -H:EnableURLProtocols=https,http  -H:+ReportExceptionStackTraces  <ins> ${lib.optionalString stdenv.isDarwin ''-H:-CheckToolchain''}  </ins> --report-unsupported-elements-at-runtime  --initialize-at-build-time  --no-fallback