Skip to content

Instantly share code, notes, and snippets.

;; clojure-lsp setup from https://clojure-lsp.io/clients/#emacs
(setenv "PATH" (concat
"/usr/local/bin" ;; for 'clojure'
path-separator
(getenv "PATH")))
;; as found in https://emacs-lsp.github.io/lsp-mode/page/adding-new-language/#registering-server
(setq lsp-language-id-configuration '((clojure-mode . "clojure")
(clojurescript-mode . "clojure")
(clojurec-mode . "clojure")
> java -version
openjdk version "17.0.1" 2021-10-19
OpenJDK Runtime Environment (build 17.0.1+0-adhoc..source)
OpenJDK 64-Bit Server VM (build 17.0.1+0-adhoc..source, mixed mode, sharing)
> make
cd cli && clojure -T:build debug-cli
Compiling java classes...
Execution error (NullPointerException) at clojure.tools.build.tasks.javac/javac (javac.clj:27).
Cannot invoke "javax.tools.JavaCompiler.getStandardFileManager(javax.tools.DiagnosticListener, java.util.Locale, java.nio.charset.Charset)" because "compiler" is null
clojure-lsp> make test
cd cli && clojure -T:build javac
Compiling java classes...
Execution error (NullPointerException) at clojure.tools.build.tasks.javac/javac (javac.clj:27).
null
Full report at:
/tmp/clojure-6852170041084959516.edn
make: *** [Makefile:23: classes] Error 1
zsh: exit 2 make test
.../clojure-lsp/cli> clj -A:test
Warning: failed to load the S3TransporterFactory class
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
WARNING: Use of :main-opts with -A is deprecated. Use -M instead.
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
--- nil --------------------------- ERROR
@andrewzhurov
andrewzhurov / indentation.clj
Created April 6, 2020 08:37 — forked from joshkh/indentation.clj
Clojure Indentation
(defn some-generic-function
"Demonstrate Clojure indentation and styles.
This doc string spans multiple lines, and the beginning of each line
is inline with the opening quotation mark"
[]
; ns :require values are aligned
; ns :import values are aligned
; but :require values do not align with :import values
(ns project.namespace