Re: Two clojure with emacs questions

2012-12-20 Thread Jonathon McKitrick
Yep, that's the one I'm using.  I just confirmed, and I still have the bug.

On Thursday, December 20, 2012 2:43:57 AM UTC-5, Tassilo Horn wrote:

 Jonathon McKitrick jmcki...@gmail.com javascript: writes: 

  Yes, then you are using nrepl and not SLIME/Swank.  I use that, too, 
  and I haven't encountered hangs with (in-ns ...) forms yet.  If you 
  have your project accessible somewhere, I'm happy to try to reproduce 
  the issue. 
  
  I have a bit more information. 
  
  The interface hangs running in Carbon Emacs, but not in -nw mode. 

 I'd try the Emacs builds from http://emacsformacosx.com.  AFAICS, Carbon 
 Emacs is pretty outdated (last release in 2010). 

  Sounds like a bug report is due? 

 Yes, at least if you can reproduce the problem with a pure GNU Emacs 
 from emacsformacosx.com, starting with emacs -Q and then only loading 
 the packages needed to reproduce the issue (nrepl.el and maybe 
 clojure-mode). 

 Bye, 
 Tassilo 


-- 
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: Two clojure with emacs questions

2012-12-20 Thread Maris

1)  You simply need to save you'r code to see changes in browser (unless it 
is AOT compiled code). 
Alternatively (even better) you can start server from REPL and change you 
code on the fly.

2)  Have you tried swank ?

On Wednesday, December 19, 2012 2:12:45 PM UTC, Jonathon McKitrick wrote:

 1.  Can emacs with swank dynamically update Noir code running locally, or 
 do I need to save the code and then 'lein run' to see the new result?

 2.  When trying (in-ns ...) and a few other commands from emacs, nRepl 
 hangs consistently.  Is this user error?



-- 
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: Two clojure with emacs questions

2012-12-20 Thread Jonathon McKitrick


On Thursday, December 20, 2012 1:05:45 PM UTC-5, Maris wrote:


 1)  You simply need to save you'r code to see changes in browser (unless 
 it is AOT compiled code). 
 Alternatively (even better) you can start server from REPL and change you 
 code on the fly.


I'll try that.
 


 2)  Have you tried swank ?


I did, but I read it does not support clojure-test-mode, and that's the 
tutorial I was following.  So I switched to nrepl instead.
I just tried swank, and the repl issue I had with (in-ns ...) does not 
occur.




-- 
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: Two clojure with emacs questions

2012-12-20 Thread Jonathon McKitrick
2)  Have you tried swank ?

Isn't swank-clojure deprecated?

  

-- 
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: Two clojure with emacs questions

2012-12-20 Thread Jonathon McKitrick
Problem solved.  I had a hook that was running paredit mode in the repl, 
and that was interfering with some of the form evaluations.

On Thursday, December 20, 2012 1:40:01 PM UTC-5, Jonathon McKitrick wrote:

 2)  Have you tried swank ?

 Isn't swank-clojure deprecated?

  


-- 
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: Two clojure with emacs questions

2012-12-20 Thread Michael Bradley, Jr.
On Wednesday, December 19, 2012 10:52:26 AM UTC-6, Jonathon McKitrick wrote:

 Hi Tassilo

  1.  Can emacs with swank dynamically update Noir code running locally, 

  or do I need to save the code and then 'lein run' to see the new 
  result? 

 Without ever having used Noir, I would assume you can hack on the living 
 instance at the REPL. 


 I was wondering if I could make changes in emacs, C-c C-k, and refresh the 
 web page to see the results.



Yes, you can do this kind of thing, but you'll have to do a bit of setup.

My preference is to use lein-ring 
https://github.com/weavejester/lein-ringwith `:auto-refresh?` and 
`:auto-reload?` enabled. And I include something 
like this in one of the namespaces (i.e. some .clj file) that gets loaded 
as a result of running `lein ring server ...` in my terminal:

(ns some.namespace
  (:require [swank.swank :as swank]))

(defonce swankify
  (swank/start-server :port 4005))


Note that you'll need to include [swank-clojure 1.4.3] as a dependency in 
your project.clj for the above to work.

Once your program has been started, e.g. with `lein ring server 3000`, you 
should be able to use the `slime-connect` command from within Emacs to 
connect to localhost:4005.  Another thing to note: if you haven't installed 
the SLIME package for Emacs, but you do have clojure-mode installed, then 
first issue the `clojure-jack-in` command from within Emacs, then close the 
swank buffer, and then you'll be able to use the `slime-connect` command 
(as clojure-mode embeds a version of SLIME, but it's not loaded until your 
run `clojure-jack-in` the first time).

At this point, things you do in the slime-connect'ed REPL will have an 
effect on the running web server process. Also, if you make changes to 
source files in your project, the next time a web client makes a request 
those files/namespaces wil get reloaded thanks to lein-ring's 
`:auto-reload?` option. Also, changes to the source files will trigger a 
browser refresh thanks to lein-ring's `:auto-refresh?` option.

-- 
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: Two clojure with emacs questions

2012-12-20 Thread Jonathon McKitrick


On Wednesday, December 19, 2012 9:12:45 AM UTC-5, Jonathon McKitrick wrote:

 1.  Can emacs with swank dynamically update Noir code running locally, or 
 do I need to save the code and then 'lein run' to see the new result?

 2.  When trying (in-ns ...) and a few other commands from emacs, nRepl 
 hangs consistently.  Is this user error?



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

Two clojure with emacs questions

2012-12-19 Thread Jonathon McKitrick
1.  Can emacs with swank dynamically update Noir code running locally, or 
do I need to save the code and then 'lein run' to see the new result?

2.  When trying (in-ns ...) and a few other commands from emacs, nRepl 
hangs consistently.  Is this user error?

-- 
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: Two clojure with emacs questions

2012-12-19 Thread Tassilo Horn
Jonathon McKitrick jmckitr...@gmail.com writes:

Hi Jonathon,

 1.  Can emacs with swank dynamically update Noir code running locally,
 or do I need to save the code and then 'lein run' to see the new
 result?

Without ever having used Noir, I would assume you can hack on the living
instance at the REPL.

 2.  When trying (in-ns ...) and a few other commands from emacs, nRepl
 hangs consistently.  Is this user error?

Uhm, now do you use SLIME/swank, or do you use nrepl.el/nREPL?  (Aside
from that, neither should hang on (in-ns ...).)

Bye,
Tassilo

-- 
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: Two clojure with emacs questions

2012-12-19 Thread Jonathon McKitrick
Hi Tassilo

 1.  Can emacs with swank dynamically update Noir code running locally, 

  or do I need to save the code and then 'lein run' to see the new 
  result? 

 Without ever having used Noir, I would assume you can hack on the living 
 instance at the REPL. 


I was wondering if I could make changes in emacs, C-c C-k, and refresh the 
web page to see the results.
 


  2.  When trying (in-ns ...) and a few other commands from emacs, nRepl 
  hangs consistently.  Is this user error? 

 Uhm, now do you use SLIME/swank, or do you use nrepl.el/nREPL?  (Aside 
 from that, neither should hang on (in-ns ...).) 


Hmm, I guess I have migrated to nrepl as the backend to emacs.  I'm using 
nrepl-jack-in.
 


 Bye, 
 Tassilo 


-- 
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: Two clojure with emacs questions

2012-12-19 Thread Tassilo Horn
Jonathon McKitrick jmckitr...@gmail.com writes:

 1.  Can emacs with swank dynamically update Noir code running locally, 
  or do I need to save the code and then 'lein run' to see the new 
  result? 

 Without ever having used Noir, I would assume you can hack on the
 living instance at the REPL.

 I was wondering if I could make changes in emacs, C-c C-k, and refresh
 the web page to see the results.

Yes, I guess so.

  2.  When trying (in-ns ...) and a few other commands from emacs, nRepl 
  hangs consistently.  Is this user error? 

 Uhm, now do you use SLIME/swank, or do you use nrepl.el/nREPL?  (Aside 
 from that, neither should hang on (in-ns ...).) 

 Hmm, I guess I have migrated to nrepl as the backend to emacs.  I'm
 using nrepl-jack-in.

Yes, then you are using nrepl and not SLIME/Swank.  I use that, too, and
I haven't encountered hangs with (in-ns ...) forms yet.  If you have
your project accessible somewhere, I'm happy to try to reproduce the
issue.

Bye,
Tassilo

-- 
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: Two clojure with emacs questions

2012-12-19 Thread Jack Moffitt
On Wed, Dec 19, 2012 at 9:52 AM, Jonathon McKitrick
jmckitr...@gmail.com wrote:
 I was wondering if I could make changes in emacs, C-c C-k, and refresh the
 web page to see the results.

You'll probably want to use ring-serve for this. To some degree
lein-ring also offers this functionality as it uses wrap-reload
middleware that comes with ring.

Here's a link to some docs:
https://github.com/ring-clojure/ring/wiki/Interactive-Development

jack.

-- 
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: Two clojure with emacs questions

2012-12-19 Thread Jonathon McKitrick
Yes, then you are using nrepl and not SLIME/Swank.  I use that, too, and 

 I haven't encountered hangs with (in-ns ...) forms yet.  If you have 
 your project accessible somewhere, I'm happy to try to reproduce the 
 issue. 


I have a bit more information.

The interface hangs running in Carbon Emacs, but not in -nw mode.
Sounds like a bug report is due?
 

-- 
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: Two clojure with emacs questions

2012-12-19 Thread Tassilo Horn
Jonathon McKitrick jmckitr...@gmail.com writes:

 Yes, then you are using nrepl and not SLIME/Swank.  I use that, too,
 and I haven't encountered hangs with (in-ns ...) forms yet.  If you
 have your project accessible somewhere, I'm happy to try to reproduce
 the issue.

 I have a bit more information.

 The interface hangs running in Carbon Emacs, but not in -nw mode.

I'd try the Emacs builds from http://emacsformacosx.com.  AFAICS, Carbon
Emacs is pretty outdated (last release in 2010).

 Sounds like a bug report is due?

Yes, at least if you can reproduce the problem with a pure GNU Emacs
from emacsformacosx.com, starting with emacs -Q and then only loading
the packages needed to reproduce the issue (nrepl.el and maybe
clojure-mode).

Bye,
Tassilo

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