Welcome! Please see the About page for a little more info on how this works.

0 votes
in Tools by


(! 748)-> cat deps.edn 
{:deps {org.clojure/data.csv {:mvn/version "RELEASE"}}}
(! 749)-> cat src/foo.clj 
(ns foo
  "Example namespace."
  (:require [clojure.data.csv :as csv]))

(defn bar "Example function" [_] (println "Baaa!"))
(! 750)-> clojure -X foo/bar
(! 751)-> clojure -X:deps help/doc :fn foo/bar
Syntax error (FileNotFoundException) compiling at (foo.clj:1:1).
Could not locate clojure/data/csv__init.class, clojure/data/csv.clj or clojure/data/csv.cljc on classpath.

Full report at:

Because -X:deps replaces the project dependencies, only the src files are found (because :paths is not replaced).

1 Answer

+1 vote
selected by