Re: Lein not resolving?

2011-12-11 Thread Richard Tiger Melville
Yes - please disregard everyone.  Local Artifactory repository was
getting in the way

On Dec 9, 2:55 pm, Phil Hagelberg p...@hagelb.org wrote:
 On Fri, Dec 9, 2011 at 12:38 PM, Richard Tiger Melville

 melvilleti...@gmail.com wrote:
  bash-4.1$ lein plugin install swank-clojure 1.4.0-SNAPSHOT
  [INFO] Unable to find resource 'swank-clojure:swank-clojure:jar:1.4.0-
  SNAPSHOT' in repository central (http://repo1.maven.org/maven2)
  [INFO] Unable to find resource 'swank-clojure:swank-clojure:jar:1.4.0-
  SNAPSHOT' in repository clojars (http://clojars.org/repo/)

 Very strange. I suspect a network or proxy issue.

 -Phil

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Working Slackware Linux / emacs 23.3.1 / lein 1.6.2 / swank-1.4.0 / clj 1.3.0 REPL

2011-12-11 Thread Richard Tiger Melville
Spent a day with the getting started instructions - everything failed:
clojure-jack-in, cdt, package.el,
you name it.

This brute force method using M-x slime-connect is working for me:

1. eswank script

 #!/bin/sh
 LISPDIR=/usr/local/lisp
 CLASSPATH=$LISPDIR/swank-clojure-1.4.0.jar:$LISPDIR/clojure/
clojure-1.3.0.jar
 NULL_DEVICE=/dev/null
 JVM_OPTS=${JVM_OPTS:-$JAVA_OPTS}
 MAIN=swank.swank
 VERSION=1.4.0
 java -cp $CLASSPATH $JVM_OPTS -Dproject.version=$VERSION \
   clojure.main -e (use '$MAIN)(apply -main *command-line-args*) /
dev/null $@

2. Run it

bash-4.1$ eswank
 user= Connection opened on null port 4005.
 nil

3. Setup .emacs

;; load git clone of slime https://github.com/technomancy/slime/
 (add-to-list 'load-path /usr/local/lisp/clojure-emacs/slime)
 (require 'slime)

 ;; disable autodoc-mode to avoid swank crash after typing two
characters
 ;; https://github.com/technomancy/swank-clojure/issues/49
 (eval-after-load 'slime '(progn (setq slime-protocol-version 'ignore)
(setq slime-use-autodoc-mode nil)
(slime-setup '(slime-fancy
 (slime-setup '(slime-repl))

 ;; Load git clone of clojure-mode
 (add-to-list 'load-path /usr/local/lisp/clojure-emacs/clojure-mode)
 (require 'clojure-mode)
 (require 'clojure-test-mode)

4. Use bleeding edge lein to create the project

bash-4.1$ lein version
Leiningen 1.6.2 on Java 1.6.0_25 Java HotSpot(TM) Client VM

5. Edit project.clj and use slime-connect

M-x slime-connect
 ...
 ; SLIME 2011-05-27
 user (+ 3 4)
 7
 user

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Trying to use CDT on 1.3.0

2011-12-09 Thread Richard Tiger Melville
New to lein, coming from SBCL where slime setup is effortless!  Any ideas 
why
this fundamental step is failing?

bash-4.1$ lein version
Leiningen 1.6.1 on Java 1.6.0_25 Java HotSpot(TM) Client VM
bash-4.1$ lein swank
That's not a task. Use lein help to list all tasks.
bash-4.1$ 

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Lein not resolving?

2011-12-09 Thread Richard Tiger Melville

bash-4.1$ lein search swank-clojure
...
  == Results from clojars - Showing page 1 / 1 total
...
[swank-clojure 1.4.0-SNAPSHOT] Swank server connecting Clojure to
Emacs SLIME

bash-4.1$ lein plugin install swank-clojure 1.4.0-SNAPSHOT
[INFO] Unable to find resource 'swank-clojure:swank-clojure:jar:1.4.0-
SNAPSHOT' in repository central (http://repo1.maven.org/maven2)
[INFO] Unable to find resource 'swank-clojure:swank-clojure:jar:1.4.0-
SNAPSHOT' in repository clojars (http://clojars.org/repo/)

=== my version info ===
bash-4.1$ mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 13:16:01-0600)
Java version: 1.6.0_25
Java home: /usr/local/jdk1.6.0_25/jre
Default locale: en_US, platform encoding: ISO-8859-1
OS name: linux version: 2.6.37.6-smp arch: i386 Family: unix

bash-4.1$ lein version
Leiningen 1.6.2 on Java 1.6.0_25 Java HotSpot(TM) Client VM

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en