Closed dharrigan closed 2 years ago
Thank you so much for the thoughtful issue!
I believe I have solved 1 and 2. It seems I wasn't correctly checking both that the executable existed on the PATH or that when resolved it existed.
As for 3, I'm not sure exactly what set up you have, but as you'll see from the code for version 0.0.7, coc-clojure
downloads the native for all known cases (lifting this code directly from Calva) and only chooses the "standalone-jar" when faced with an unknown platform/architecture. I'm not sure how else to handle this.
I won't close this just yet as I haven't actually released the new version, but I'll be sure to comment when I do.
Ah,
You're right, I didn't follow the code as I should have, so yes, 4 is covered thank you. Have you considerd adding a boolean toggle to disable this altogether? Consider that every time that neovim is launched, a file system lookup will need to be performed, adding slightly to the delay before coc-clojure
is ready for action. Having a toggle would just turn it off completely, thus saving an expensive IO operation.
Thank you.
Yes, I have added a flag. Sorry, misread the question numbers and forgot to answer that one.
Fanastico! Thank you. Looking forward to trying it out when you release the code :-)
-=david=-
I have published 0.0.8. It's late so I'm going to bed, but let me know if more issues arise!
Hi,
Recently, coc-clojure gained the ability to automatically download a version of clojure-lsp from github, if it detects that clojure-lsp is not on the
$PATH
. Whilst this is a great and welcome feature to lower the barrier of entry for people to use clojure-lsp, I think it's not quite there yet in terms of robustness./bin/clojure-lsp
), but upon firing up neovim with the latest coc-clojure I was asked if I wanted to download clojure-lsp, since coc-clojure could not detect clojure-lsp on my path.coc-settings.json
for each OS to cater for the different paths of where clojure-lsp is. Since I don't need to automatically download it (it's installed as part of my development setup anyway), then I don't need to have coc-clojure check the path to see if it can find it or not.Thank you..
-=david=-