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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.