You can clone with
No one assigned
I'm pretty new to leiningen and clojure and just ran into a namespace error when generating a new project with template "app".
I'm using "Leiningen 2.0.0-preview10 on Java 1.7.0_09 Java HotSpot(TM) 64-Bit Server VM"
To reproduce the problem:
C:\Temp\clojure>lein new app my_project
Generating a project called my_project based on the 'app' template.
Exception in thread "main" java.lang.Exception: namespace 'my_project.core' not
found after loading '/my_project/core'
... rest of trace ...
The problem comes from two places:
1. ./project.clj => the underscore in the filename is not converted to a dash in the :main instruction ":main my_project.core" instead of ":main my-project.core"
2. .test/my_project/core_test.clj => in the :use clause, "my_project.core" should be "my-project.core"
Replacing underscores with dashes in both files fix the problem and test run without dump.
When doing the same generation using "lein new default XXXX" or "lein new XXXX" it works. 1 is not a problem as there is no :main generated, and 2. is renamed as it should (_ converted to -).
Fix the app template to use the `namespace` variable when appropriate
This addresses technomancy/leiningen#865.
Upgrade to lein-newnew 0.3.6. Fixes #865.