I'm in the process of trying to learn clojure, but most of the tutorials and sample code that I look at all fails to run for me.
Whenever I try to start a ring app with "lein ring server-headless", it downloads all the dependencies, then dies with a big stacktrace, as it can't find leiningen.core.project$reduce_repo_step:
Exception in thread "main" java.lang.ClassNotFoundException: leiningen.core.project$reduce_repo_step, compiling:(/tmp/form-init4519196078572752752.clj:1)
at clojure.lang.Compiler.load(Compiler.java:6958)
at clojure.lang.Compiler.loadFile(Compiler.java:6912)
at clojure.main$load_script.invoke(main.clj:283)
at clojure.main$init_opt.invoke(main.clj:288)
at clojure.main$initialize.invoke(main.clj:316)
at clojure.main$null_opt.invoke(main.clj:349)
Examples of code where this happens are the samples/tutorials at https://github.com/kendru/restful-clojure and https://github.com/diamondap/ring-sample
Is something wrong with my leiningen/clojure local setup? I'm using leiningen 2.6.0 on linux mint.