lsp

ericdallo 2024-11-11T13:18:21.318349Z

clojure-lsp Released clojure-lsp https://github.com/clojure-lsp/clojure-lsp/releases/tag/2024.11.08-17.49.29 with fixes, important bumps and a new exciting lib completion feature! • Fix client capability check that prevents test file creation. • Fix move-form double edit problem in cljc files. • Fix disabling :clojure-lsp/unused-public-var linter also disabling :clojure-lsp/different-aliases • Bump clj-kondo to 2024.09.28-20240930.094425-2 • Bump lsp4clj to 1.10.0. • Bump clojure to 1.12.0. • Bump tools.cli to 1.0.230. • Bump timbre to 6.6.0. • Bump rewrite-clj to 1.1.48. • Bump cljfmt to 1.13.0. • Bump babashka/fs to 0.5.22. • New feature: completion of lib versions on deps.edn, bb.edn and project.clj files. https://github.com/clojure-lsp/clojure-lsp/issues/1905 • New feature: completion of clojure lib names from clojars and mvn-central for deps.edn, bb.edn and project.clj files. https://github.com/clojure-lsp/clojure-lsp/issues/1909 The main highlight is the new completion of lib names and versions including the git libs with their respective shas! Happy coding in your editor 🎉

8
1
😯 4
🎉 20
Tomas Brejla 2024-11-12T09:21:53.112949Z

The lib completion is beautiful 😍 . Thanks a lot. I'm just wondering why it's suggesting some deps on my machine, but not some others. For example, it's autocompleting cheshire/cheshire , http-kit/http-kit and many others, but not seancorfield/next.jdbc . (it autocompletes nothing jdbc-related in fact) Do I need to delete some directories here and there to flush some caches?

Tomas Brejla 2024-11-12T09:26:57.966939Z

Ok, now it automagically started to work 🙂. Seems I have to start writing se, to get the seancorfield/next.jdbc autocomplete option, ie. the autocomplete behaves as "starts with". Is there any way to autocomplete in a fulltext "contains" style? So that when I write jdbc , I get the mentioned autocomplete option.

ericdallo 2024-11-12T12:36:16.365429Z

yes @brdloush by default clojure-lsp limits 600 items for performance reasons, so to be more specific you need to type first to limit results @brdloush like a fuzzy search right? yes, possible, feel free to open a issue about it.

👍 1
Tomas Brejla 2024-11-12T14:58:17.041029Z

it seems to behave somehow fuzzy already. If I press ctrl+space (`company-complete-common`), without being immedately behind a partial word. Then when the completion dialog kicks in and i enter jd, it offers ashikasoft/jdict and highlights the jd part of that match. But it still doesn't offer seancorfield/next.jdbc

ericdallo 2024-11-12T14:59:52.842969Z

I believe it's client side fuzzy sorting, the best would be to do that in clojure-lsp

Tomas Brejla 2024-11-12T15:10:13.640949Z

Yeah, I'll try looking into it (current behavior) more in the evening + maybe create that ticket you mentioned. but even without the fuzzy search, it's still pretty awesome already

👍 1
dharrigan 2024-11-11T13:21:41.902469Z

Is this still waiting to be built? clojure-lsp-native-linux-aarch64.zip?

ericdallo 2024-11-11T13:22:37.059119Z

yeah, I had issues with the linux arrch build and decided to fix it in a separated PR and upload to that release soon, will take a look today

dharrigan 2024-11-11T13:25:08.850099Z

np

ericdallo 2024-11-11T13:32:36.888149Z

@smith.adriane one more client of dewey :)

🎉 1
borkdude 2024-11-11T13:34:16.887119Z

amazing work

💙 1
Bastian 2024-11-11T14:18:39.631709Z

cool! small suggestion: would be nice if version numbers like "1.13" are not sorted way below "1.9" to easily find the newest (e.g. with ring.core)

ericdallo 2024-11-11T14:19:49.971239Z

Hum, weird, I thought I fixed that with a custom sort I did, will take a look, thanks for the feedback

🙏 1
exitsandman 2024-11-11T16:07:42.032959Z

lib completion is much, much appreciated

🎉 1
armed 2024-11-11T16:34:42.878699Z

Lib completion is so cool. Can’t remember how many times I had to navigate clojars/github to copy lib version.

🎉 1
mpenet 2024-11-11T17:23:47.172989Z

amazing release, thanks!

🎉 1
ericdallo 2024-11-11T22:51:49.418629Z

@dharrigan fixed the aarch build

dharrigan 2024-11-12T07:51:33.566199Z

Great! Thank you. Will update the arch package.