I am using the beginner guide in the pedestal guide but when trying to use use a namespace (require 'test) I get the following error messge: “Execution error (FileNotFoundException) at user/eval2012 (REPL:1). Could not locate test__init.class, test.clj or test.cljc on classpath.”
The same thing happens when trying (require 'hello)
I am using lein repl.
I have a directory called test and under src theres is a file called test.clj
test/src/test.clj:
(ns test
(:require [io.pedestal.http :as http]
[io.pedesteal.http.route :as route]))
test/src/hello.clj:
(defn respond-hello [request]
{:status 200 :body “Herllo world”})
any ideas?
test/deps.edn:
:deps
{io.pedestal/pedestal.service {:mvn/version "0.5.7"}
io.pedestal/pedestal.route {:mvn/version "0.5.7"}
io.pedestal/pedestal.jetty {:mvn/version "0.5.7"}
org.slf4j/slf4j-simple {:mvn/version "1.7.28"}}
:paths ["src"]}

srcunder thetestdir - same for hello, but this lacks thens? - cfricklein repl? It will not find the files, if you configure things for the clojure cli tools. so the first level oftestin your directory structure is the name of your project then and you are actually using all those tools inside it? For future reference: don't do that in questions - it confuses people (like me) - just assume the project root. - cfrick