Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
clojure-jack-in doesn't load what I expected
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
falko  
View profile  
 More options Jun 17 2012, 11:04 am
From: falko <falko.spil...@googlemail.com>
Date: Sun, 17 Jun 2012 08:04:24 -0700 (PDT)
Local: Sun, Jun 17 2012 11:04 am
Subject: clojure-jack-in doesn't load what I expected

Hello.

[Used: Leiningen 2.0.0-preview6, Java 1.6.0_18 (OpenJDK 64 Bit, Server),
Emacs 24.1.50.1, Clojure 1.3.0, lein-swank 1.4.4, Clojure-Mode 1.11.5]

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 ..)

Thank you & greetings, Falko


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Hagelberg  
View profile  
 More options Jun 18 2012, 1:36 am
From: Phil Hagelberg <p...@hagelb.org>
Date: Sun, 17 Jun 2012 22:36:48 -0700
Local: Mon, Jun 18 2012 1:36 am
Subject: Re: clojure-jack-in doesn't load what I expected

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.

-Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
falko  
View profile  
 More options Jun 18 2012, 8:02 am
From: falko <falko.spil...@googlemail.com>
Date: Mon, 18 Jun 2012 05:02:35 -0700 (PDT)
Local: Mon, Jun 18 2012 8:02 am
Subject: Re: clojure-jack-in doesn't load what I expected

I don't really know how. It's so many components ..

Will go on trying.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
falko  
View profile  
 More options Jun 18 2012, 8:07 am
From: falko <falko.spil...@googlemail.com>
Date: Mon, 18 Jun 2012 05:07:31 -0700 (PDT)
Local: Mon, Jun 18 2012 8:07 am
Subject: Re: clojure-jack-in doesn't load what I expected

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 ..)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Hagelberg  
View profile  
 More options Jun 18 2012, 2:38 pm
From: Phil Hagelberg <p...@hagelb.org>
Date: Mon, 18 Jun 2012 11:38:14 -0700
Local: Mon, Jun 18 2012 2:38 pm
Subject: Re: clojure-jack-in doesn't load what I expected

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.

-Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
falko  
View profile  
 More options Jun 18 2012, 3:02 pm
From: falko <falko.spil...@googlemail.com>
Date: Mon, 18 Jun 2012 12:02:17 -0700 (PDT)
Local: Mon, Jun 18 2012 3:02 pm
Subject: Re: clojure-jack-in doesn't load what I expected

Hi Phil,

is this what you reafer to with repro case?:

1. Download Linux Debian Wheezy (Testing) amd64:
http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd6...

2. At install screen, hit tab, and add
desktop=xfce

3. Go on with installation.

4. Download emacs 24.1
http://ftp.gnu.org/pub/gnu/emacs/emacs-24.1.tar.gz

5. Additional libs (from wheezy)

libgtk-3-dev
libxaw7-dev
libxpm-dev
libgif-dev
libjpeg-dev
libtiff4-dev
libncurses5-dev

6. Build and install emacs

7. download lein

8. lein new leintest

9. open emacs, add marmelade repo to .emacs, install clojure-mode

10. add to project.clj:

:min-lein-version "2.0.0"
:main leintest.core
:plugins [[lein-swank "1.4.4"]]
:repl-options {:port 6666 :init-ns leintest.core}

11. Open leintest.core, M-x clojure-jack-in

- The :port is ignored.
- Package clojure.repl is not loaded.
- REPL starts in NS user, not in :init-ns

Well. The Exception is gone.

Kind regards, Falko


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Hagelberg  
View profile  
 More options Jun 18 2012, 4:39 pm
From: Phil Hagelberg <p...@hagelb.org>
Date: Mon, 18 Jun 2012 13:39:15 -0700
Local: Mon, Jun 18 2012 4:39 pm
Subject: Re: clojure-jack-in doesn't load what I expected

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.

-Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
falko  
View profile  
 More options Jun 19 2012, 3:54 am
From: falko <falko.spil...@googlemail.com>
Date: Tue, 19 Jun 2012 00:54:46 -0700 (PDT)
Local: Tues, Jun 19 2012 3:54 am
Subject: Re: clojure-jack-in doesn't load what I expected

Ah, well. I'm currently in the browser pointing at groups.google.com -
still setting up my system.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
falko  
View profile  
 More options Jun 19 2012, 4:09 am
From: falko <falko.spil...@googlemail.com>
Date: Tue, 19 Jun 2012 01:09:31 -0700 (PDT)
Local: Tues, Jun 19 2012 4:09 am
Subject: Re: clojure-jack-in doesn't load what I expected

Ah. Hi Phil.

So my problem is that I underestimated SLIME. Will go and RTFM, thank you :)

Where could I have found something about :swank-options (leading colons are
a no go for google)?

Thanks, Falko


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
falko  
View profile  
 More options Jun 19 2012, 5:21 am
From: falko <falko.spil...@googlemail.com>
Date: Tue, 19 Jun 2012 02:21:02 -0700 (PDT)
Local: Tues, Jun 19 2012 5:21 am
Subject: Re: clojure-jack-in doesn't load what I expected

I added a line to project.clj

  :swank-options {:port 6666 }

But this seems not to be used.

From buffer *swank*

(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

Greetings, Falko


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Hagelberg  
View profile  
 More options Jun 19 2012, 2:15 pm
From: Phil Hagelberg <p...@hagelb.org>
Date: Tue, 19 Jun 2012 11:15:34 -0700
Local: Tues, Jun 19 2012 2:15 pm
Subject: Re: clojure-jack-in doesn't load what I expected

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.

-Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
falko  
View profile  
 More options Jun 19 2012, 4:47 pm
From: falko <falko.spil...@googlemail.com>
Date: Tue, 19 Jun 2012 13:47:15 -0700 (PDT)
Local: Tues, Jun 19 2012 4:47 pm
Subject: Re: clojure-jack-in doesn't load what I expected

Ah, ok, thank you :)

Falko


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »