This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.../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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |