technomancy/leiningen — Issue #290: Two erros I found out
Author: philos97
Created: 2011-10-08 12:00:16+00:00
State: open

First of all, I am deeply thankful for your efforts to make leiningen a very useful tool for clojure programmers.

While using leiningen, I found two errors which you might already know.

My programming environment on Windows 7 is as follwows.

======================================================================
C:\work\myproject> lein version
Leiningen 1.6.2-SNAPSHOT on Java 1.6.0_26 Java HotSpot(TM) Client VM
======================================================================

The first error I found is

===============================================================
C:\work\myproject> lein
Leiningen is a tool for working with Clojure projects.

Several tasks are available:
classpath Print the classpath of the current project.
clean Remove compiled class files from project.
compile Compile Clojure source into .class files.
deploy Build and deploy jar to remote repository.
deps Download all dependencies and put them in :library-path.
help Display a list of tasks or help for a given task.
install Install the current project or download the project specified.
leiningen.interactive Problem loading: java.lang.Exception: Unable to resolve
symbol: writer in this context (interactive.clj:24) <== Error here!
jar Package up all the project's files into a jar file.
javac Compile Java source files.
new Create a new project skeleton.
plugin Manage user-level plugins.
pom Write a pom.xml file to disk for Maven interop.
repl Start a repl session either with the current project or standalone.
retest Run only the test namespaces which failed last time around.
run Run a -main function with optional command-line arguments.
search Search remote repositories.
test Run the project's tests.
test! Run the project's tests after cleaning and fetching dependencies.
trampoline Run a task without nesting the project's JVM inside Leiningen's.
uberjar Package up the project files and deps into a jar file.
upgrade Upgrade Leiningen to the latest stable release.
version Print version for Leiningen and the current JVM.

Run lein help $TASK for details.
See also: readme, tutorial, copying, sample, deploying and news.
==========================================================================

The second error I found is

===============================================================================
C:\Windows\System32>lein search ring
Downloading index from central - http://repo1.maven.org/maven2 ... this may take
a while.
===============================================================================

The above `lein search ring' command is stuck and doesn't proceed any more.
So I look into the source code of leiningen and guess that I found out the reason.

=================================================================================
;; cire.clj line 128
(def default-repos {"central" {:url "http://repo1.maven.org/maven2"
:snapshots false}
;; TODO: possibly separate releases/snapshots in 2.0.
"clojars" {:url "http://clojars.org/repo/"}})
==================================================================================

the url "http://repo1.maven.org/maven2" does not exist now.

Could you please corect the above errors?

Thanks again for your great contributions to the clojure community.