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?
it fetches from 2 places:
• clojars: https://clojars.org/repo/all-jars.clj.gz • github: https://github.com/phronmophobic/dewey/releases/latest/download/deps-libs.edn.gz • maven: only for org.clojure: https://github.com/clojure-lsp/clojure-lsp/blob/b3eec66d1027875ee1e5acc145ff2c368047a222/lib/src/clojure_lsp/feature/completion_lib.clj#L113-L114
cool, thank you
then it's probably an issue with my cache or something
It seems outdated in maven to me as well, not sure why
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
I did upgrade neil to something else, might be related?
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.
have you looked at my changes in neil to see if they were relevant? they might be
I can take a peek later. Resting on the sofa at the moment!
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?
BTW... I've not had a look at what REST API endpoints clojure-lsp is using... you'll want to experiment.
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?
i'll do so in the morning