lsp

2026-01-15T18:25:46.315619Z

i've noticed that LSP suggests versions of libraries when im' editing deps.edn files. this is very cool. it looks like it doesn't see the newest versions of clojure core. is this a list that's manually updated or is it fetching from maven?

2026-01-15T18:25:54.050829Z

ericdallo 2026-01-15T18:26:19.010129Z

it fetches from 2 places:

2026-01-15T18:32:09.922069Z

cool, thank you

2026-01-15T18:32:30.330939Z

then it's probably an issue with my cache or something

ericdallo 2026-01-15T18:32:49.193069Z

It seems outdated in maven to me as well, not sure why

lread 2026-01-15T19:32:44.171929Z

If you are using the same Maven search REST API that cljdoc was using... well, it really doesn't work very well anymore. • https://github.com/cljdoc/cljdoc/issues/1040 - stale issues • https://github.com/cljdoc/cljdoc/issues/1037 - reliability issues

😢 2
borkdude 2026-01-15T19:47:01.243499Z

I did upgrade neil to something else, might be related?

lread 2026-01-15T20:00:41.593669Z

I did chat with the Maven Central team about it. At the time they had no plans to fix, but maybe they did after all and neil picked up the fix? I adjusted cljdoc to check the handful of known clojure projects hosted on Maven Central via repository urls, but that won’t work for your use case where you want to search the entire Maven Central repository.

borkdude 2026-01-15T20:01:14.908649Z

have you looked at my changes in neil to see if they were relevant? they might be

lread 2026-01-15T20:02:36.572029Z

I can take a peek later. Resting on the sofa at the moment!

❤️ 1
lread 2026-01-15T21:55:27.650149Z

TLDR: I think http://central.sonatype.com could work for you, but, fair warning, I don't see it documented yet. You might want to tack on &sort=v+desc. Details... Hmmm... neil switched from http://search.maven.org to http://central.sonatype.com... the Maven Central FAQ is a bit confusing on this. I think it says https://central.sonatype.org/faq/what-happened-to-search-maven-org/#what-about-the-searchmavenorg-api... and is https://central.sonatype.org/search/rest-api-guide/. (Cljdoc was using http://search.maven.org). But I also see an email from the Maven Central team telling me they ported a subset of the http://search.maven.org REST API to http://central.sonaytpe.com and asked if https://central.sonatype.com/solrsearch/select?q=g:org.clojure+AND+a:clojure&core=gav&rows=200&wt=json&sort=v+desc would work for me (but I had already migrated to my repository URL approach and told them such). Note the sort=v+desc on the new URL, seems necessary for sorting by version. I don't see staleness on the new API. So maybe they haven't publicly announced the REST API on http://central.sonaytype.com? Or maybe haven not gotten around to freshening all of their docs?

lread 2026-01-15T21:56:46.837499Z

BTW... I've not had a look at what REST API endpoints clojure-lsp is using... you'll want to experiment.

ericdallo 2026-01-16T00:53:49.567009Z

oh thank you @lee! I believe it will be best to swap clojure-lsp from to http://central.sonartype.com indeed, @nbtheduke would you mind create a issue so I can take a look later please?

2026-01-16T01:11:46.773949Z

i'll do so in the morning