I was suggested to use clojure-jack-in as a nice way to develop in Emacs. But somehow it doesn't do what I expected.
When I connect to a Leiningen REPL, I get the start lines about help and how to exit and stuff.
When I use clojure-jack-in I don't, and it doesn't start in the right namespace. Well, this can be amended by loading them. But I really like the function (user/cdoc ..) - and I cant find it, and dont know how to load it.
Two more observations:
* It doesn't use the port I configured in project.clj
* The *swank* buffer shows an exception:
Exception in thread "Swank REPL Thread" java.lang.IllegalMonitorStateException at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java :155) at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueue dSynchronizer.java:1262) at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:459) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:397) at swank.util.concurrent.mbox$receive.invoke(mbox.clj:28) at swank.core$eval_from_control.invoke(core.clj:106) at swank.core$eval_loop.invoke(core.clj:112) at swank.core$spawn_repl_thread$fn__713$fn__714.invoke(core.clj:341) at clojure.lang.AFn.applyToHelper(AFn.java:159) at clojure.lang.AFn.applyTo(AFn.java:151) at clojure.core$apply.invoke(core.clj:600) at swank.core$spawn_repl_thread$fn__713.doInvoke(core.clj:338) at clojure.lang.RestFn.invoke(RestFn.java:397) at clojure.lang.AFn.run(AFn.java:24) at java.lang.Thread.run(Thread.java:636) ;;; Bootstrapping bundled version of SLIME; please wait...
Can you please tell me what's wrong? (Or whether I'm searching at the wrong place ..)
On Sun, Jun 17, 2012 at 8:04 AM, falko <falko.spil...@googlemail.com> wrote:
> When I use clojure-jack-in I don't, and it doesn't start in the right
> namespace. Well, this can be amended by loading them.
> But I really like the function (user/cdoc ..) - and I cant find it, and dont
> know how to load it.
The new repl stuff simply hasn't been ported to swank yet.
> * It doesn't use the port I configured in project.clj
> * The *swank* buffer shows an exception:
Can you provide a repro case for this? I've never seen it before.
On Monday, 18 June 2012 07:36:48 UTC+2, Phil Hagelberg wrote:
> On Sun, Jun 17, 2012 at 8:04 AM, falko wrote: > > When I use clojure-jack-in I don't, and it doesn't start in the right > > namespace. Well, this can be amended by loading them. > > But I really like the function (user/cdoc ..) - and I cant find it, and > dont > > know how to load it.
> The new repl stuff simply hasn't been ported to swank yet.
> > * It doesn't use the port I configured in project.clj > > * The *swank* buffer shows an exception:
> Can you provide a repro case for this? I've never seen it before.
PS.: You somehow included my email address in your response. I assumed it to not be visible. (As I don't see yours.) Am I doing something wrong? (TooManyErrorsException ..)
On Monday, 18 June 2012 07:36:48 UTC+2, Phil Hagelberg wrote:
> On Sun, Jun 17, 2012 at 8:04 AM, falko wrote: > > When I use clojure-jack-in I don't, and it doesn't start in the right > > namespace. Well, this can be amended by loading them. > > But I really like the function (user/cdoc ..) - and I cant find it, and > dont > > know how to load it.
> The new repl stuff simply hasn't been ported to swank yet.
> > * It doesn't use the port I configured in project.clj > > * The *swank* buffer shows an exception:
> Can you provide a repro case for this? I've never seen it before.
On Mon, Jun 18, 2012 at 5:07 AM, falko <falko.spil...@googlemail.com> wrote:
> PS.: You somehow included my email address in your response. I assumed it to
> not be visible. (As I don't see yours.)
If the address isn't visible that's something that's happening in
whatever client you're using. Your address is visible in the mail you
sent to the list.
On Monday, 18 June 2012 07:36:48 UTC+2, Phil Hagelberg wrote:
> On Sun, Jun 17, 2012 at 8:04 AM, falko wrote: > > When I use clojure-jack-in I don't, and it doesn't start in the right > > namespace. Well, this can be amended by loading them. > > But I really like the function (user/cdoc ..) - and I cant find it, and > dont > > know how to load it.
> The new repl stuff simply hasn't been ported to swank yet.
> > * It doesn't use the port I configured in project.clj > > * The *swank* buffer shows an exception:
> Can you provide a repro case for this? I've never seen it before.
On Mon, Jun 18, 2012 at 12:02 PM, falko <falko.spil...@googlemail.com> wrote:
> is this what you reafer to with repro case?
Well, that's certainly plenty of detail. =) Generally just knowing the
versions of lein, lein-swank, emacs, and clojure-mode would do, along
with the contents of project.clj.
> - The :port is ignored.
Right now setting the :port goes through :swank-options instead of
:repl-options. There's no reason it couldn't support both; a patch
would be welcome here.
> - Package clojure.repl is not loaded.
Right; this is unnecessary. Everything in that namespace has an
equivalent in slime that works better.
> - REPL starts in NS user, not in :init-ns
This simply hasn't been implemented yet. Patches welcome as always.
If you can track down any further info on the exception, please let me know.
On Monday, 18 June 2012 20:38:14 UTC+2, Phil Hagelberg wrote:
> On Mon, Jun 18, 2012 at 5:07 AM, falko wrote: > > PS.: You somehow included my email address in your response. I assumed > it to > > not be visible. (As I don't see yours.)
> If the address isn't visible that's something that's happening in > whatever client you're using. Your address is visible in the mail you > sent to the list.
On Monday, 18 June 2012 22:39:15 UTC+2, Phil Hagelberg wrote:
> On Mon, Jun 18, 2012 at 12:02 PM, falko wrote: > > is this what you reafer to with repro case?
> Well, that's certainly plenty of detail. =) Generally just knowing the > versions of lein, lein-swank, emacs, and clojure-mode would do, along > with the contents of project.clj.
> > - The :port is ignored.
> Right now setting the :port goes through :swank-options instead of > :repl-options. There's no reason it couldn't support both; a patch > would be welcome here.
> > - Package clojure.repl is not loaded.
> Right; this is unnecessary. Everything in that namespace has an > equivalent in slime that works better.
> > - REPL starts in NS user, not in :init-ns
> This simply hasn't been implemented yet. Patches welcome as always.
> If you can track down any further info on the exception, please let me > know.
(run-hooks 'slime-load-hook) ; on port 65431 ;;; Done bootstrapping. All namespaces already :aot compiled. Listening for transport dt_socket at address: 42371 ;;; proceed to jack in
On Monday, 18 June 2012 22:39:15 UTC+2, Phil Hagelberg wrote:
> On Mon, Jun 18, 2012 at 12:02 PM, falko wrote: > > is this what you reafer to with repro case?
> Well, that's certainly plenty of detail. =) Generally just knowing the > versions of lein, lein-swank, emacs, and clojure-mode would do, along > with the contents of project.clj.
> > - The :port is ignored.
> Right now setting the :port goes through :swank-options instead of > :repl-options. There's no reason it couldn't support both; a patch > would be welcome here.
> > - Package clojure.repl is not loaded.
> Right; this is unnecessary. Everything in that namespace has an > equivalent in slime that works better.
> > - REPL starts in NS user, not in :init-ns
> This simply hasn't been implemented yet. Patches welcome as always.
> If you can track down any further info on the exception, please let me > know.
On Tue, Jun 19, 2012 at 2:21 AM, falko <falko.spil...@googlemail.com> wrote:
> I added a line to project.clj
> :swank-options {:port 6666 }
Oh, sorry--part of the point of jack-in is to pick a random port so
projects don't have contention. The :port argument is only checked by
`lein swank`. I'm afraid the docs on this are just not very good.
On Tuesday, 19 June 2012 20:15:34 UTC+2, Phil Hagelberg wrote:
> On Tue, Jun 19, 2012 at 2:21 AM, falko wrote: > > I added a line to project.clj
> > :swank-options {:port 6666 }
> Oh, sorry--part of the point of jack-in is to pick a random port so > projects don't have contention. The :port argument is only checked by > `lein swank`. I'm afraid the docs on this are just not very good.