slamhound icon indicating copy to clipboard operation
slamhound copied to clipboard

Cannot use slamhound from Emacs (running cider)

Open gavinmbell opened this issue 8 years ago • 3 comments

Hello... 'I'd like to be able to use Slamhound from emacs but when I install it I get an error

"Symbol’s function definition is void: nrepl-send-string-sync"

https://github.com/technomancy/slamhound/blob/master/slamhound.el#L60'

s/nrepl-send-string-sync/cider-nrepl-sync-request:eval/ in slamhound.el ? (has been suggested) Is that literally it? (my elisp is not so good)

see: https://github.com/clojure-emacs/cider/issues/1887

gavinmbell avatar Aug 13 '17 22:08 gavinmbell

Can someone help me get this working :-).... "pretty please with sugar on top"

https://www.youtube.com/watch?v=MykJiy-F82Y :-)

gavinmbell avatar Aug 14 '17 18:08 gavinmbell

Sorry; I don't use cider any more and would recommend against using slamhound.el. The whole idea behind that library's existence is ill-considered, and it needs to be replaced with a more generic mechanism for invoking clojure code directly from Emacs commands.

You can try making the patch to have it use cider as a workaround tho.

technomancy avatar Aug 14 '17 18:08 technomancy

https://github.com/technomancy/slamhound/pull/93 worked for me, except it uses a function replace-in-string which doesn't seem to be a part of GNU Emacs. I used the implementation found here.

nivekuil avatar Sep 23 '17 17:09 nivekuil