Fork me on GitHub
#practicalli
<
2021-03-20
>
practicalli-johnny01:03:24

I've updated my suggestions for a minimal LSP setup for Spacemacs, most of which is relevant to any other Emacs setup. The configuration avoids conflicting with CIDER and removes all the cljfmt rules which LSP puts in by default. I also tweaked the doom-gruvbox-light theme to make the symbol highlighting clash less, removing the background color and just using a bold font https://practicalli.github.io/spacemacs/install-spacemacs/clojure-lsp/configure-lsp-and-cider.html

rossputin17:03:58

Hi - latest version of Practicalli’s Clojure Deps.edn is giving me ‘Could not find artifact com.github.seancorfield:next.jdbc:jar:2.0.193 in central (https://repo1.maven.org/maven2/)’ on running clojure -X:project/jar - anyone else seen this? (Cloned the CLojure Deps.edn repo last night)

dharrigan17:03:59

2.0.193 is for depstar

dharrigan17:03:19

(cross posting myself from #clojure)

rossputin17:03:59

Thanks for following up!

dharrigan17:03:35

Latest next.jdbc is 1.1.646

rossputin17:03:28

I tried updating to that earlier and got a different error ‘Execution error (FileNotFoundException) at clojure.run.exec/requiring-resolve’ (exec.clj:31). Could not locate hf/depstar__init.class, hf/depstar.clj or hf/depstar.cljc on classpath.' at which point I thought I would be lazy and see if anyone else has worked this through 😀

dharrigan17:03:28

How are you running depstar?

rossputin17:03:23

Local project deps.edn ‘…:jar {:replace-deps {com.github.seancorfield/depstar {:mvn/version “1.1.646”}} :exec-fn hf.depstar/jar :exec-args {:jar “libplayground.jar” :sync-pom true}}’

rossputin17:03:46

terminal command ‘clojure -X:project/jar’

dharrigan17:03:42

I think you're getting confused

dharrigan17:03:47

there is no depstar 1.1.646

rossputin17:03:42

hmmm - yes. -sorry cross pasting snippets

rossputin17:03:55

latest output is the second error message still ‘Execution error (FileNotFoundException) at clojure.run.exec/requiring-resolve’ (exec.clj:31). Could not locate hf/depstar__init.class, hf/depstar.clj or hf/depstar.cljc on classpath.'

rossputin17:03:28

having created a new lib project using ‘clojure -X:project/new…’

rossputin17:03:20

the project/jar alias in ~/.clojure/deps.edn is ‘:project/jar {:replace-deps {com.github.seancorfield/next.jdbc {:mvn/version “1.1.646”}} :exec-fn hf.depstar/jar :exec-args {:jar “project.jar” :aot true}}’

dharrigan17:03:41

why next.jdbc for depstar?

dharrigan17:03:12

your replace deps is completely wrong

dharrigan17:03:35

Have a look here

rossputin17:03:43

ah - sorry - was looking in the wrong place - got you now

practicalli-johnny21:03:54

@rossajmcd sorry, it was the right version but the wrong library name. I copied next.jdbc library name into the :project/jar and :project/uberjar aliases instead of the new names for depstar. They both use the new form of fully qualified name (except for the last part).

practicalli-johnny21:03:01

I've pushed the fix to the project, sorry for the confusion.

practicalli-johnny22:03:06

Another quick update to practicalli/clojure-deps-edn • suppress SLF4J warning with :project/outdated alias • removed older version 1.x of depstar now 2.x is established • several library version updates