Fix: No version found for org.clojars.abhinav/snitch#37
Conversation
**Problem:** Users are encountering an "Execution error (ExceptionInfo)" with the message "Failed to load dependency org.clojars.abhinav/snitch: Execution error (ExceptionInfo) at clojure.repl.deps/add-lib (deps.clj:81). No version found for lib org.clojars.abhinav/snitch“. **Solution:** This commit explicitly adds a valid, stable version number (`"0.1.16"`) to the `org.clojars.abhinav/snitch` dependency definition. By specifying the version, the dependency can be correctly resolved, downloaded, and loaded, resolving the reported execution error and allowing users to successfully utilize this library.
Is this you encountering this, or other users? It's pretty strange that it would happen... |
|
|
||
| (defn- load-dependency [] | ||
| (-> (util/load-dependency {:deps/mvn-name "org.clojars.abhinav/snitch"}) | ||
| (-> (util/load-dependency {:deps/mvn-name "org.clojars.abhinav/snitch" :deps/mvn-version "0.1.16"}) |
There was a problem hiding this comment.
I'm not sure, but iirc, util/load-dependency does not support specifying a version, so this patch would not fix the problem.
I think the underlying problem may be obfuscated by bad error handling in util/load-dependency...
|
(defn- load-criterium-dependency [] This is the problem I encountered. I submitted this request because I saw that util/load-dependency could be used with version. |
|
Ah, thanks for pointing this out! I've updated the call to not pass version now, because the function is not using it. But the error you encountered with loading the Snitch dependency is of course not fixed by my update. I wonder what that could be about... |
|
BTW. Don't worry about the failed test run. It's some major error in the VS Code Marketplace infrastructure. |
I'm running into it too, for any dependency I try to load with CPT. Using a jack-in REPL via Leiningen 2.12.0, Clojure 1.12.0, latest versions of VSC, Calva, and CPT. |
|
Unrelated, but sometimes it may be good if users could hardcode what version to use. E.g. I cannot use Clay until scicloj/clay#329 is merged (as upgrading Ring to the version compatible with latest Clay breaks my project). |
Thanks @holyjak, that PR was merged and deployed. Does it solve the problem you experienced? |
|
@daslu Sadly I am not able to verify that. I deleted all earlier versions of Clay, but 2.0.11 keeps appearing on the filesystem, and Clay in Calva keeps on being loaded from clay-2.0.11.jar and failing. I suspect that Calva somehow insists on using the version it has used before... 😭 |
|
Interesting! |
|
@holyjak Thanks. |
Problem:
Users are encountering an "Execution error (ExceptionInfo)" with the message "Failed to load dependency org.clojars.abhinav/snitch: Execution error (ExceptionInfo) at clojure.repl.deps/add-lib (deps.clj:81). No version found for lib org.clojars.abhinav/snitch“.
Solution:
This commit explicitly adds a valid, stable version number (
"0.1.16") to theorg.clojars.abhinav/snitchdependency definition.By specifying the version, the dependency can be correctly resolved, downloaded, and loaded, resolving the reported execution error and allowing users to successfully utilize this library.
Description
...
Checklist
[Unreleased]section of CHANGELOG.md linking to the issue(s) addressed