naming your project "clojure" with "lein new clojure" gives problems

135 views
Skip to first unread message

Sean Neilan

unread,
Apr 27, 2012, 1:57:06 AM4/27/12
to clo...@googlegroups.com
Hello Lisperati,

Naming your project "clojure" is a bad idea because doing
seans-macaroni-book:BigNumberNames seanneilan$ lein  new clojure
Created new project in: /Users/seanneilan/BucketsOfNantucket/BigNumberNames/clojure
Look over project.clj and start coding in clojure/core.clj
seans-macaroni-book:BigNumberNames seanneilan$ cd clojure
will give you problems...
seans-macaroni-book:clojure seanneilan$ lein repl
Copying 1 file to /Users/seanneilan/BucketsOfNantucket/BigNumberNames/clojure/lib
Exception in thread "main" java.lang.ExceptionInInitializerError
     at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.IllegalStateException: Attempting to call unbound fn: #'clojure.core/refer
     at clojure.lang.Var$Unbound.throwArity(Var.java:43)
     at clojure.lang.AFn.invoke(AFn.java:39)
     at clojure.lang.Var.invoke(Var.java:401)
     at clojure.lang.RT.doInit(RT.java:447)
     at clojure.lang.RT.<clinit>(RT.java:316)
     ... 1 more


When I made a new project called "clj" it worked just fine.
seans-macaroni-book:BigNumberNames seanneilan$ lein new clj
Created new project in: /Users/seanneilan/BucketsOfNantucket/BigNumberNames/clj
Look over project.clj and start coding in clj/core.clj
seans-macaroni-book:BigNumberNames seanneilan$ cd clj/
seans-macaroni-book:clj seanneilan$ ls
README          project.clj     src          test
seans-macaroni-book:clj seanneilan$ lein repl
Copying 1 file to /Users/seanneilan/BucketsOfNantucket/BigNumberNames/clj/lib
REPL started; server listening on localhost port 21062
user=> ^D



Does this count as a bug?

Thank you for your time.

-Sean

Sean Corfield

unread,
Apr 27, 2012, 2:12:33 AM4/27/12
to clo...@googlegroups.com
It used to be that lein new would not allow you to create projects
with "jure" in the name. I guess that restriction has disappeared,
which is unfortunate since it would have prevented the problem you ran
into...

Sean Neilan

unread,
Apr 27, 2012, 2:17:56 AM4/27/12
to clo...@googlegroups.com
I agree. That would be helpful.

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Michael Klishin

unread,
Mar 20, 2013, 5:18:07 PM3/20/13
to clo...@googlegroups.com

2013/3/21 Kẏra <kx...@riseup.net>
This is definitely a bug. I just ran into this problem and was not able to decipher the error messages, and digging up this thread wasn't too easy either.

It was improved in Leiningen 2.1: it refuses to create projects named "clojure" and only use *jure names if
Reply all
Reply to author
Forward
0 new messages