Skip to content

Fix: No version found for org.clojars.abhinav/snitch#37

Open
fundchan wants to merge 1 commit into
BetterThanTomorrow:masterfrom
fundchan:patch-1
Open

Fix: No version found for org.clojars.abhinav/snitch#37
fundchan wants to merge 1 commit into
BetterThanTomorrow:masterfrom
fundchan:patch-1

Conversation

@fundchan

@fundchan fundchan commented Oct 5, 2025

Copy link
Copy Markdown

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.

Description

...

  • Fixes #...

Checklist

  • I have read CONTRIBUTING.md
  • There is an issue with a clear problem statement related to this change
  • I have added an entry to the [Unreleased] section of CHANGELOG.md linking to the issue(s) addressed
  • README/docs updated (or not relevant)
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

**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.
@PEZ

PEZ commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

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“.

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"})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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...

@fundchan

fundchan commented Oct 6, 2025

Copy link
Copy Markdown
Author

(defn- load-criterium-dependency []
(-> (util/load-dependency {:deps/mvn-name "criterium/criterium"
:deps/mvn-version "0.4.6"})

This is the problem I encountered. I submitted this request because I saw that util/load-dependency could be used with version.

@PEZ

PEZ commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

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...

@PEZ

PEZ commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

BTW. Don't worry about the failed test run. It's some major error in the VS Code Marketplace infrastructure.

@colinphill-mdsol

Copy link
Copy Markdown

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“.

Is this you encountering this, or other users?

It's pretty strange that it would happen...

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.

@holyjak

holyjak commented Feb 20, 2026

Copy link
Copy Markdown

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).

@daslu

daslu commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

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?

@holyjak

holyjak commented Mar 4, 2026

Copy link
Copy Markdown

@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... 😭

@daslu

daslu commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Interesting!

@daslu

daslu commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

@holyjak Thanks.
Till we find a way to fix this, you may add :browse :browser to the map in your clay.edn file, so the Clay view would open in the external browser rather than inside VSCode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants