Open ttn-ttn opened 6 days ago
Hm--I just tried making a new project (clj -M -e '(load-string (slurp "https://biffweb.com/new.clj"))'; clj -M:dev dev
) and it worked for me. I'm on Ubuntu. Looks like you're not able to import ServletContextHandler
. As a minimal repro, I assume if you run the following you'll get an error?
$ clj
Clojure 1.11.1
user=> (import '[org.eclipse.jetty.servlet ServletContextHandler])
org.eclipse.jetty.servlet.ServletContextHandler
What's the output of clj -A:dev -Stree
? Maybe the dependencies got mixed up somehow. I've attached mine (
tree.txt).
Thanks for your response. I must mention I'm on Guix, which is an unusual distribution; however I don't see how that could make a difference in this case (but it seems to do). I also don't know Java and just know the basics of Clojure, so I may be missing something obvious.
As a minimal repro, I assume if you run the following you'll get an error?
Yes:
user=> (import '[org.eclipse.jetty.servlet ServletContextHandler])
Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (REPL:-1).
org.eclipse.jetty.servlet.ServletContextHandler
What's the output of clj -A:dev -Stree?
Here it is: tree.txt It's different from yours, however I don't know if the differences are of any significance.
I followed the "Getting started" instructions on Linux. When running
clj -M:dev dev
the following error happens: