Fork me on GitHub
#lsp
<
2022-03-29
>
vemv07:03:11

@ericdallo Re: all this sources stuff. I'm familiar with the notion of a :classpath-cmd , I think that's the perfect place to plug this clojure.sh shim (see L3 for sample usage) https://github.com/clojure-emacs/enrich-classpath/blob/master/tools.deps/src/cider/enrich_classpath/clojure.sh The lein equivalent would be something like lein with-profile +test,+enrich-classpath classpath where an enrich-classpath profile is assumed to exist (would have the plugin + Lein middleware) ...but I want to ditch the Lein plugin asap, it doesn't have as much control over classpath ordering

ericdallo13:03:13

Sounds cool, so user could add that, or even clojure-lsp could append that automatically if find a enrich-classpath on a deps.edn or project.clj

👍 1
ericdallo18:03:34

clojure-lsp I fixed the doubled zip on nightly releases on #clojure-lsp-builds and now we have a way to install nightly releases via official install script, example:

bash <(curl -s ) --version nightly

❤️ 2
ericdallo18:03:43

Thanks @U04V15CAJ for the suggestion

genmeblog10:03:13

On my setup (wsl2) running above under sudo fails with bash: /dev/fd/63: No such file or directory As I https://www.google.com/search?q=bash%3A+%2Fdev%2Ffd%2F63%3A+No+such+file+or+directory&amp;oq=bash%3A+%2Fdev%2Ffd%2F63%3A+No+such+file+or+directory, this is quite common problem with process substitution.

borkdude10:03:33

you could also use the babashka script to avoid bash ... :)

genmeblog10:03:46

I can manage it 🙂

genmeblog10:03:30

Just wanted to emphasize, that information on the clojure-lsp page may not work on some linuxes

borkdude10:03:19

Maybe submit a PR to fix this?

genmeblog10:03:16

I don't know how to make it work as a one-liner. Additional < works well without --version nightly option.

borkdude10:03:32

Check the babashka-dev-builds repo, it might have that one liner

borkdude10:03:09

I'm trying to find that repo on my phone but that's a terrible UX

genmeblog10:03:17

I hate it either... (I mean phone UX)

borkdude10:03:35

And that has:

$ bash <(curl ) --version 0.7.7-SNAPSHOT --dir .

borkdude10:03:46

ah it's the same

borkdude10:03:49

well, now I'm off

genmeblog10:03:27

Local installation (in home) works perfectly. What doesn't work is running with sudo

borkdude15:03:03

you are a master!

😂 2