Thank you, Carlo! That was it! I'm using Leingingen 2. It's working great
now.
Dave
On Saturday, June 16, 2012 8:34:08 PM UTC-5, Carlo wrote:
>
> On Sat, Jun 16, 2012 at 10:10 AM, Dave Kincaid
> wrote:
> > Sure can. Here is the project.clj:
> >
> > (defproject swank-test "0.1"
> > :sourc
On Sat, Jun 16, 2012 at 10:10 AM, Dave Kincaid wrote:
> Sure can. Here is the project.clj:
>
> (defproject swank-test "0.1"
> :source-path "src/main/clj"
Are you using lein 1.x or lein 2.x? In lein 2.x you need to use
`:source-paths ["src/main/clj"]` here.
> :test-path "test/clj"
> :java-s
efault directory structures. Might workaround
> it for you in the short term.
>
> -Original Message-
> From: Sean Corfield
> Sender: clojure@googlegroups.com
> Date: Fri, 15 Jun 2012 18:44:46
> To:
> Reply-To: clojure@googlegroups.com
> Subject: Re: Cla
egroups.com
Date: Fri, 15 Jun 2012 18:44:46
To:
Reply-To: clojure@googlegroups.com
Subject: Re: Classpath set by lein swank or clojure-jack-in
Have you tried visiting the project.clj file in Emacs and then doing
M-x clojure-jack-in ? That should start lein swank in the project
directory and
Have you tried visiting the project.clj file in Emacs and then doing
M-x clojure-jack-in ? That should start lein swank in the project
directory and pull in all the dependencies as expected.
(you should start lein swank in the project root directory -
containing project.clj - not in a subdirectory
Sure can. Here is the project.clj:
(defproject swank-test "0.1"
:source-path "src/main/clj"
:test-path "test/clj"
:java-source-path "src/main/java"
:javac-options {:debug "true" :fork "true"}
:resources-path "src/main/resources"
:dependencies [[org.clojure/clojure "1.4.0"]
That's strange. You usually just run lein swank in the folder with you
project.clj. Nothing to do wrong there.
Can you show the project.clj and the directory structure of a non-working
project?
--
Sent from my mobile
Am 16.06.2012 01:07 schrieb "Dave Kincaid" :
> I'm with you, Peter. The proble
I'm with you, Peter. The problem is I can't get lein swank and
slime-connect working in a consistent way. It starts up fine but can't find
any dependencies that I try to (use ...) or even any of the code in my .clj
files that I try to access. I just can't understand what it's using as a
classpa
Once I got lein swank and slime-connect working in emacs, I essentially stopped
using the repl directly. The real magic and beauty of writing clojure in emacs
is that I can write a fn, then C-x C-e to evaluate it right there in the file.
I can evaluate inner forms, test every line of the file to