error in nrepl

166 views
Skip to first unread message

lawrence...@gmail.com

unread,
Jun 23, 2017, 4:29:24 PM6/23/17
to Clojure
I'm using Emacs on my Mac. I ran "nrepl-jack-in" to load up the repl. I'm iterating over a dataset from mysql. My code is very simple, I'm just trying to count the words: 

(reduce 

(fn [map-of-word-count next-name] 
(let [
words (clojure.string/split next-name #"\s") 
map-of-names-words-with-count (frequencies words)
(println map-of-names-words-with-count)
(merge-with + map-of-word-count map-of-names-words-with-count)
)
{} 
names)

I keep getting this message:


error in process filter: nrepl-bdecode-buffer: Cannot decode object: 1
error in process filter: Cannot decode object: 1
Error running timer `jit-lock-stealth-fontify': (error "Variable binding depth exceeds max-specpdl-size")
timer-relative-time: Variable binding depth exceeds max-specpdl-size


Does anyone know what this means? 

James Reeves

unread,
Jun 23, 2017, 5:15:09 PM6/23/17
to clo...@googlegroups.com
nrepl-jack-in? Do you mean cider-jack-in? AFAIK nrepl-jack-in is from a very old version of Cider.

--
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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
James Reeves

lawrence...@gmail.com

unread,
Jun 23, 2017, 5:35:58 PM6/23/17
to Clojure

lawrence...@gmail.com

unread,
Jun 23, 2017, 5:36:13 PM6/23/17
to Clojure, ja...@booleanknot.com

Yes, sadly, I've never gotten Cider to work with Emacs. I keep thinking someday I'll take a weekend and work through all the errors and get it working, but I never seem to find the time. So I keep working with an old version of nrepl. But I take it, from your answer, you think this error would vanish if I upgraded to Cider? 

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/d/optout.



--
James Reeves

Kevin Baldor

unread,
Jun 23, 2017, 5:39:42 PM6/23/17
to clo...@googlegroups.com
Have you tried following the instructions at http://www.braveclojure.com/basic-emacs/ ?

It's a bit heavy-handed (replacing your entire .emacs directory), but it might give you a starting point to figure out how to integrate it into your emacs setup.


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+unsubscribe@googlegroups.com.

lawrence...@gmail.com

unread,
Jun 23, 2017, 6:14:55 PM6/23/17
to Clojure

Thank you. Maybe I can find some time to upgrade my whole Emacs setup next weekend. It is a bit out of date. 

I'm curious if folks think it is easier to work with Emacs on a Linux machine, or on a Mac? 

Kevin Baldor

unread,
Jun 23, 2017, 6:22:27 PM6/23/17
to clo...@googlegroups.com
It's much easier on Linux, I wish that I had taken notes when I set up my Mac. But after a few false starts, it's working well for me. My mac is at home, so I'll have to wait until I get there to see if I can figure out what version I'm running and from where I downloaded it. There's a pretty good chance that it's just the latest from http://emacsformacosx.com with the .emacs directory from https://github.com/flyingmachine/emacs-for-clojure/archive/book1.zip.


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+unsubscribe@googlegroups.com.

Sean Corfield

unread,
Jun 23, 2017, 6:40:08 PM6/23/17
to Clojure Mailing List

For several years I used Emacs on both Mac and Windows and I went through several configurations. I tried to build a config from scratch early on and gave up with that, so I switched to Emacs-Live from the Overtone folks, which worked well enough back in the day but had a strange view of packages and, ultimately, wasn’t being kept very up-to-date as CIDER was evolving so quickly… so I switched to Prelude, which is maintained by the same folks who are behind CIDER. That was the key to a slick, full-featured, up-to-date Emacs/CIDER setup for Clojure work, as far as I was concerned:

 

https://github.com/bbatsov/prelude

 

I was very happy with that setup.

 

That said, after seeing ProtoREPL demo’d at Conj 2017, I switched from Emacs to Atom/ProtoREPL and I’ve found that much nicer to work with overall (again, on Mac and Windows – I can’t speak to Atom on Linux). Initially, I had it configured with Emacs key-bindings to ease my transition, but I’ve recently (this week) uninstalled those packages.

 

Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

Peter Hull

unread,
Jun 24, 2017, 2:38:05 AM6/24/17
to Clojure
On Friday, 23 June 2017 23:14:55 UTC+1, lawrence...@gmail.com wrote:

I'm curious if folks think it is easier to work with Emacs on a Linux machine, or on a Mac? 

I use Emacs on Mac, Linux and Windows. I disagree that it's more difficult to use on the Mac vs Linux. On Windows I get my emacs from cygwin so there is a bit of 'mental gear shifting' required between path names and line endings.

On the Mac I installed homebrew and installed Emacs that way. Once in Emacs, I did exactly the same for all three platforms - added MELPA to the packages list and then installed cider (and paredit). I can post more details if you want but it sounds like you're an Emacs veteran already!

I've used Atom+protorepl on Windows. It gives you a more modern/better integrated system but IMO it doesn't have all the features/reliability of Emacs+cider. (this might just be down to my unfamiliarity with Atom)

Hope that helps.
 

Colin Yates

unread,
Jun 24, 2017, 3:38:17 AM6/24/17
to clo...@googlegroups.com
Spacemacs is worth a look for a very different emacs experience. Used with emacs from homebrew and macports (at different times :-)). If you are heavily invested in your own init.el then maybe not as a full time replacement but it is worth a look for its evil, which-key and hydra config alone.
--
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+unsubscribe@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+unsubscribe@googlegroups.com.

Juraj Martinka

unread,
Jun 26, 2017, 8:14:49 AM6/26/17
to Clojure
+1 for Spacemacs. I think it's the best alternative if you want to start with Clojure development in Emacs. 
It works out of the box most of the time and contains a curated set of packages, so no need to spend a huge amount of effort by chasing down the best Emacs configuration.

Bozhidar Batsov

unread,
Jun 26, 2017, 12:44:45 PM6/26/17
to clo...@googlegroups.com, ja...@booleanknot.com
Newer versions of CIDER are much easier to setup than the older ones (e.g. they auto-inject their dependencies, so you don't have to fiddle with profiles.clj). You should try the latest stable or dev release. That said you can also check Monroe (https://github.com/sanel/monroe) which is a fork of a very old version of CIDER (from around the time it was named nrepl.el) or inf-clojure (https://github.com/clojure-emacs/inf-clojure) - a completely 0-setup Clojure(Script) REPL with support for connecting to a REPL socket server. 


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+unsubscribe@googlegroups.com.

lawrence...@gmail.com

unread,
Jun 29, 2017, 12:41:50 PM6/29/17
to Clojure, ja...@booleanknot.com, bozh...@batsov.com


Thank you for everyone's reply. Both Spacemacs and ProtoRepl sound very interesting. I am torn and am unsure which path to take. I suppose I'll give Spacemacs a try and see if that works out.

I am very pleased to see progress being made regarding at least the DE of IDE for Clojure. That's always been a pain point. 

Didier

unread,
Jun 29, 2017, 1:46:11 PM6/29/17
to Clojure
If you're no fan on emacs or vim, ProtoRepl is great. I also recommend cursive, but if you're no fan of intelliJ autosave, counterclockwise eclipse os surprisingly great.

lawrence...@gmail.com

unread,
Jul 6, 2017, 3:58:32 PM7/6/17
to Clojure
Thank you, Didier, but I'll wait till ProtoRepl is more stable. Also I'm not sure that I'm ready to step away from Emacs. 

I did try Spacemacs but I felt it was too much influenced by Vim. So now I'm using Prelude. 
Reply all
Reply to author
Forward
0 new messages