Fork me on GitHub
#emacs
<
2016-04-06
>
malabarba00:04:22

@bozhidar cool! I missed that. ๐Ÿ˜ƒ

plexus09:04:54

@malabarba @benedek thanks! I'll do some more testing to see if that explains the behavior I'm getting. I've upgraded my cider and clj-refactor. The error message is deceptive though, Canโ€™t find <symbol> on classpath. Should perhaps be more something like <symbol> not found in loaded namespaces...

bozhidar12:04:43

@plexus: totally; one of our focuses going forward is to fix such trivial problems that introduce confusion

plexus12:04:49

ok, here's an example of something that doesn't work

plexus12:04:52

(ns lambdaisland.scratch)

(require 'cemerick.friend.credentials)

(bcrypt-credential-fn)

plexus12:04:48

even after requiring the namespace, cljr-add-missing-libspec won't find that bcrypt.. function

plexus12:04:13

any suggestions on how to debug this?

plexus12:04:20

in the cider repl buffer I'm getting

plexus12:04:25

java.lang.RuntimeException: Unable to resolve symbol: bcrypt-credential-fn in this context, compiling:(/home/arne/LambdaIsland/app/src/lambdaisland/scratch.clj:5:1)

squiter13:04:09

Hey guys, I'm have issues to configure my org-babel to run code in cider...

plexus16:04:45

what do people use to replace a matching pair of parens with curlies or brackets? I'm sure I've seen someone do it so it's a thing simple_smile might have been @magnars

plexus16:04:36

Right now I do M-<up> to remove the parens, then type a pair of curlies and slurp the expressions back in, but that's a bit cumbersome

squiter16:04:52

@plexus: do you want to change (whatever) to {whatever}? I'm using smartparens.el to do that:

C-( runs the command sp-rewrap-sexp, which is an interactive compiled
Lisp function in `smartparens.el'.

It is bound to C-(.

(sp-rewrap-sexp PAIR &optional KEEP-OLD)

plexus16:04:24

ah perfect, that's exactly what I was looking for

plexus16:04:21

although I don't have it bound to a key apparently, C-( runs sp-backward-slurp-sexp for me

squiter16:04:04

hmm my bad, this is one of my custom configs:

;; change surround
(define-key sp-keymap (kbd "C-(") 'sp-rewrap-sexp)

squiter16:04:45

Hey guys I'm trying to use org-babels with cider here... Anyone here use ob-clojure.el to wrap the calls for babel? (http://orgmode.org/cgit.cgi/org-mode.git/tree/lisp/ob-clojure.el) I'm trying to use it here but when I run any source block of clojure inside babel I get this error: let*: Symbol's function definition is void: org-babel--get-vars

plexus17:04:36

try M-x toggle-debug-on-error, then do it again and you should get a stack trace

plexus17:04:58

seems my ob-clojure is too old, it only supports SLIME

plexus17:04:16

I got the latest org from ELPA (`org-20160404`), reloaded it (load "org.el") (load "ob-clojure.el"), did M-x cider-jack-in on the org buffer, and now I can eval code

plexus17:04:26

#+BEGIN_SRC clojure
(+ 1 1)
#+END_SRC

#+RESULTS:
: 2

plexus17:04:26

You can find the version of org with M-x org-version, mine is Org-mode version 8.3.4 (8.3.4-31-gcb683e-elpa @ /home/arne/.emacs.d/elpa/org-20160404/)

squiter17:04:12

hmmm my org-mode is Org-mode version 8.2.10 (release_8.2.10 @ /usr/local/share/emacs/24.5/lisp/org/)

squiter17:04:32

do you update all org-mode or only your ob-clojure?

squiter17:04:43

Hmm I will need to update my org-mode!

squiter17:04:56

thanks for the help @plexus

plexus17:04:53

Yeah update all of org, you shouldn't have to install ob-clojure separately, just use the version that comes with org