I am a beginner in clojure & emacs. I am following tutorial for clojure & emacs on clojure-doc.org . After I created my test project with lein, started nrepl in emacs and edited core_test.clj I tried to compile.
Then I got this:
Loading /home/jakov/dev/PROJECTS/clojure/test1/test/test1/core_test.clj...
FileNotFoundException Could not locate test1/core__init.class or test1/core.clj on
classpath: clojure.lang.RT.load (RT.java:432)
My project was created with leiningen 2, by lein new test1.
I'm using emacs24
What may be the issue here?
EDIT: Here is the file structure of my project:
.
./doc
./doc/intro.md
./.gitignore
./README.md
./project.clj
./src
./src/test1
./src/test1/core.clj
./test
./test/test1
./test/test1/core_test.clj
EDIT:
Here are my files:
core_test.clj
(ns test1.core-test
(:use clojure.test
test1.core))
(deftest pairs-of-values
(let [args ["--server" "localhost"
"--port" "8080"
"--environment" "production"]]
(is (= {:server "localhost"
:port "8080"
:environment "production"}
(parse-args args)))))
core.clj
(ns test1.core)
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
This should give me another error, as I understood it, it should complain about parse args, as I understood. However, the same error happens when I add this to core.clj:
(defn parse-args [args]
{})
lein runorlein testdoes it work or do you get these errors? Need to know if this is a general problem or specific to nrepl in emacs.