ring

Schmoho 2024-07-20T14:20:44.264979Z

I am failing at setting up wrap-reload I used this code from the docs https://github.com/ring-clojure/ring/wiki/Reloading:

(ns my.namespace.test
  (:require
   [compojure.core :refer [GET defroutes]]
   [ring.middleware.reload :refer [wrap-reload]])
  (:gen-class))

(defroutes app
  (GET "/" [] "hello world"))

(def reloadable-app
  (wrap-reload #'app))

(reloadable-app {:request-method :get
                 :uri "/"})
As soon as I save the file the app always throws a FileNotFoundException Could not locate my/namespace/test__init.class, my/namespace/test.clj or my/namespace/test.cljc on classpath. Can somebody explain to me what I am doing wrong?
[org.clojure/clojure "1.11.3"]
[ring/ring-core "1.12.2"]
[ring/ring-devel "1.12.2"] 
[compojure "1.7.1"]
In a Leiningen project with only dependency configuration.

2024-07-20T16:06:57.498919Z

If you pop a repl and (require 'my.namespace.test :reload) what happens?

Schmoho 2024-07-20T16:37:38.749849Z

YI had my src folders messed up. Thanks for the input!