Re: Migrating from nrepl.el to cider

2014-01-11 Thread Pink Bobsledder
This is a me too.

I've found this seemingly related 
https://github.com/clojure-emacs/cider/issues/367

This appears to be a cider problem more than a clojure issue, perhaps 
directing this inquiry there would be more beneficial?

Anyway, my fix is to ignore it - it seems that my repl works fine and I'm 
able to get work done despite it. I'm using CIDER 0.5.0alpha, so I guess 
I'm expecting some rough edges. The url I posted above seems to suggest 
that They are aware of the issue.

On Tuesday, December 31, 2013 7:56:46 AM UTC-8, Gary Trakhman wrote:

 I've seen the pprint error on startup often.


 On Tue, Dec 31, 2013 at 9:47 AM, mwillson cdr...@gmail.com 
 javascript:wrote:

 Folks,

 I've recently migrated to cider on two platforms, Mac OS X (Mavericks) 
 and Debian Wheezy.  With each, I encountered one issue, but different in 
 each case.  If these are worth reporting formally, I'd be happy to do so.

 1. Mac OS X

 Once cider was installed, I was unable to use cider-jack-in; it just 
 hung.  In the process list was this:

 -bin/tcsh -c echo lein repl :headless | eval $SHELL -l


 tcsh is my default emacs shell but It looks like tcsh is not like other 
 shells; the invocation of lein is not echo'd to the login shell.  Replacing 
 the emacs default shell with /bin/bash solved the problem.

 This is probably a rare use-case, but I suppose could affect FreeBSD 
 users.

 2. Debian Wheezy

 The java environment is:

 OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
 OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

 This issue manifested itself as an error when issuing cider-jack-in. 
  Intermittently it would generate a stack trace:

 java.lang.IllegalAccessError: pp does not exist
   at clojure.core$refer.doInvoke (core.clj:3849)
   clojure.lang.RestFn.applyTo (RestFn.java:139)
   clojure.core$apply.invoke (core.clj:619)
   clojure.core$load_lib.doInvoke (core.clj:5394)
   clojure.lang.RestFn.applyTo (RestFn.java:142)
   clojure.core$apply.invoke (core.clj:619) ...


 Figuring intermittent issues might be caused by a race between the lein 
 repl coming up and the cider environment, I added a short pause to 
 cider-init-repl-buffer, just before the requires in nrepl-repl-requires-
 sexp are evaluated:

  defun cider-init-repl-buffer (connection buffer optional noprompt)
 Initialize the REPL for CONNECTION in BUFFER.
   Insert a banner, unless NOPROMPT is non-nil.
 (with-current-buffer buffer
   (unless (eq major-mode (quote cider-repl-mode))
 (cider-repl-mode))
   ;; use the same requires by default as clojure.main does
   (sit-for 1) ; allow lein repl to come up fully?
   (cider-eval-sync nrepl-repl-requires-sexp)
   (cider-repl-reset-markers)
   (unless noprompt
 (cider-repl--insert-banner-and-prompt nrepl-buffer-ns))
   (cider-remember-clojure-buffer cider-current-clojure-buffer)
   (current-buffer)))


 The problem has not recurred (yet).

 Anyone else seen similar things?

 -mark
  
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clo...@googlegroups.comjavascript:
 Note that posts from new members are moderated - please be patient with 
 your first post.
 To unsubscribe from this group, send email to
 clojure+u...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google Groups 
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to clojure+u...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Migrating from nrepl.el to cider

2014-01-11 Thread mwillson
Thanks for the report - your are probably right re the attribution; I'll 
make a comment on the cider issue list.

Thanks,
-mark

On Saturday, 11 January 2014 08:11:33 UTC, Pink Bobsledder wrote:

 This is a me too.

 I've found this seemingly related 
 https://github.com/clojure-emacs/cider/issues/367

 This appears to be a cider problem more than a clojure issue, perhaps 
 directing this inquiry there would be more beneficial?

 Anyway, my fix is to ignore it - it seems that my repl works fine and I'm 
 able to get work done despite it. I'm using CIDER 0.5.0alpha, so I guess 
 I'm expecting some rough edges. The url I posted above seems to suggest 
 that They are aware of the issue.

 On Tuesday, December 31, 2013 7:56:46 AM UTC-8, Gary Trakhman wrote:

 I've seen the pprint error on startup often.


 On Tue, Dec 31, 2013 at 9:47 AM, mwillson cdr...@gmail.com wrote:

 Folks,

 I've recently migrated to cider on two platforms, Mac OS X (Mavericks) 
 and Debian Wheezy.  With each, I encountered one issue, but different in 
 each case.  If these are worth reporting formally, I'd be happy to do so.

 1. Mac OS X

 Once cider was installed, I was unable to use cider-jack-in; it just 
 hung.  In the process list was this:

 -bin/tcsh -c echo lein repl :headless | eval $SHELL -l


 tcsh is my default emacs shell but It looks like tcsh is not like other 
 shells; the invocation of lein is not echo'd to the login shell.  Replacing 
 the emacs default shell with /bin/bash solved the problem.

 This is probably a rare use-case, but I suppose could affect FreeBSD 
 users.

 2. Debian Wheezy

 The java environment is:

 OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
 OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

 This issue manifested itself as an error when issuing cider-jack-in. 
  Intermittently it would generate a stack trace:

 java.lang.IllegalAccessError: pp does not exist
   at clojure.core$refer.doInvoke (core.clj:3849)
   clojure.lang.RestFn.applyTo (RestFn.java:139)
   clojure.core$apply.invoke (core.clj:619)
   clojure.core$load_lib.doInvoke (core.clj:5394)
   clojure.lang.RestFn.applyTo (RestFn.java:142)
   clojure.core$apply.invoke (core.clj:619) ...


 Figuring intermittent issues might be caused by a race between the lein 
 repl coming up and the cider environment, I added a short pause to 
 cider-init-repl-buffer, just before the requires in nrepl-repl-requires-
 sexp are evaluated:

  defun cider-init-repl-buffer (connection buffer optional noprompt)
 Initialize the REPL for CONNECTION in BUFFER.
   Insert a banner, unless NOPROMPT is non-nil.
 (with-current-buffer buffer
   (unless (eq major-mode (quote cider-repl-mode))
 (cider-repl-mode))
   ;; use the same requires by default as clojure.main does
   (sit-for 1) ; allow lein repl to come up fully?
   (cider-eval-sync nrepl-repl-requires-sexp)
   (cider-repl-reset-markers)
   (unless noprompt
 (cider-repl--insert-banner-and-prompt nrepl-buffer-ns))
   (cider-remember-clojure-buffer cider-current-clojure-buffer)
   (current-buffer)))


 The problem has not recurred (yet).

 Anyone else seen similar things?

 -mark
  
 -- 
 -- 
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clo...@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+u...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 --- 
 You received this message because you are subscribed to the Google 
 Groups Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to clojure+u...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Migrating from nrepl.el to cider

2013-12-31 Thread mwillson
Folks,

I've recently migrated to cider on two platforms, Mac OS X (Mavericks) and 
Debian Wheezy.  With each, I encountered one issue, but different in each 
case.  If these are worth reporting formally, I'd be happy to do so.

1. Mac OS X

Once cider was installed, I was unable to use cider-jack-in; it just hung. 
 In the process list was this:

-bin/tcsh -c echo lein repl :headless | eval $SHELL -l


tcsh is my default emacs shell but It looks like tcsh is not like other 
shells; the invocation of lein is not echo'd to the login shell.  Replacing 
the emacs default shell with /bin/bash solved the problem.

This is probably a rare use-case, but I suppose could affect FreeBSD users.

2. Debian Wheezy

The java environment is:

OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

This issue manifested itself as an error when issuing cider-jack-in. 
 Intermittently it would generate a stack trace:

java.lang.IllegalAccessError: pp does not exist
  at clojure.core$refer.doInvoke (core.clj:3849)
  clojure.lang.RestFn.applyTo (RestFn.java:139)
  clojure.core$apply.invoke (core.clj:619)
  clojure.core$load_lib.doInvoke (core.clj:5394)
  clojure.lang.RestFn.applyTo (RestFn.java:142)
  clojure.core$apply.invoke (core.clj:619) ...


Figuring intermittent issues might be caused by a race between the lein 
repl coming up and the cider environment, I added a short pause to 
cider-init-repl-buffer, just before the requires in nrepl-repl-requires-sexp 
are 
evaluated:

 defun cider-init-repl-buffer (connection buffer optional noprompt)
Initialize the REPL for CONNECTION in BUFFER.
  Insert a banner, unless NOPROMPT is non-nil.
(with-current-buffer buffer
  (unless (eq major-mode (quote cider-repl-mode))
(cider-repl-mode))
  ;; use the same requires by default as clojure.main does
  (sit-for 1) ; allow lein repl to come up fully?
  (cider-eval-sync nrepl-repl-requires-sexp)
  (cider-repl-reset-markers)
  (unless noprompt
(cider-repl--insert-banner-and-prompt nrepl-buffer-ns))
  (cider-remember-clojure-buffer cider-current-clojure-buffer)
  (current-buffer)))


The problem has not recurred (yet).

Anyone else seen similar things?

-mark

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Migrating from nrepl.el to cider

2013-12-31 Thread Gary Trakhman
I've seen the pprint error on startup often.


On Tue, Dec 31, 2013 at 9:47 AM, mwillson cdr@gmail.com wrote:

 Folks,

 I've recently migrated to cider on two platforms, Mac OS X (Mavericks) and
 Debian Wheezy.  With each, I encountered one issue, but different in each
 case.  If these are worth reporting formally, I'd be happy to do so.

 1. Mac OS X

 Once cider was installed, I was unable to use cider-jack-in; it just hung.
  In the process list was this:

 -bin/tcsh -c echo lein repl :headless | eval $SHELL -l


 tcsh is my default emacs shell but It looks like tcsh is not like other
 shells; the invocation of lein is not echo'd to the login shell.  Replacing
 the emacs default shell with /bin/bash solved the problem.

 This is probably a rare use-case, but I suppose could affect FreeBSD users.

 2. Debian Wheezy

 The java environment is:

 OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
 OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

 This issue manifested itself as an error when issuing cider-jack-in.
  Intermittently it would generate a stack trace:

 java.lang.IllegalAccessError: pp does not exist
   at clojure.core$refer.doInvoke (core.clj:3849)
   clojure.lang.RestFn.applyTo (RestFn.java:139)
   clojure.core$apply.invoke (core.clj:619)
   clojure.core$load_lib.doInvoke (core.clj:5394)
   clojure.lang.RestFn.applyTo (RestFn.java:142)
   clojure.core$apply.invoke (core.clj:619) ...


 Figuring intermittent issues might be caused by a race between the lein
 repl coming up and the cider environment, I added a short pause to
 cider-init-repl-buffer, just before the requires in nrepl-repl-requires-
 sexp are evaluated:

  defun cider-init-repl-buffer (connection buffer optional noprompt)
 Initialize the REPL for CONNECTION in BUFFER.
   Insert a banner, unless NOPROMPT is non-nil.
 (with-current-buffer buffer
   (unless (eq major-mode (quote cider-repl-mode))
 (cider-repl-mode))
   ;; use the same requires by default as clojure.main does
   (sit-for 1) ; allow lein repl to come up fully?
   (cider-eval-sync nrepl-repl-requires-sexp)
   (cider-repl-reset-markers)
   (unless noprompt
 (cider-repl--insert-banner-and-prompt nrepl-buffer-ns))
   (cider-remember-clojure-buffer cider-current-clojure-buffer)
   (current-buffer)))


 The problem has not recurred (yet).

 Anyone else seen similar things?

 -mark

 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.