Fork me on GitHub
#cider
<
2015-08-20
>
andrea.crotti09:08:23

mm I enabled (add-hook 'clojure-mode-hook #'inf-clojure-minor-mode) for clojurescript stuff

andrea.crotti09:08:33

since I don't use cider for it and use figwheel like that

andrea.crotti09:08:34

(defun figwheel-repl () (interactive) (run-clojure "/home/andrea/.local/bin/lein figwheel"))

andrea.crotti09:08:50

but realized that of course it conflicts with the cider key bindings

andrea.crotti09:08:46

maybe I need an inferior mode clojurescript-mode and enable inf-clojure-mode only on that, anyone had the same issue?

andrea.crotti09:08:12

ah right clojurescript-mode already exists actually

andrea.crotti09:08:19

ok then probably this is all I needed

andrea.crotti09:08:19

(add-hook 'clojurescript-mode-hook #'inf-clojure-minor-mode)

malabarba09:08:26

@andrea.crotti: yep, that would be it

agile_geek13:08:49

Is there a create new test file func in cider? i.e. I’m writing implementation and want to create the associated test file

bozhidar14:08:13

no, there isn't

bozhidar14:08:12

you can use projectile to do this, though

agile_geek14:08:14

@bozhidar: thanks. Will take a look.

mitchelkuijpers18:08:23

error in process filter: user-error: Some namespaces are in a bad state: error "Class not found: clojure.core/long" in relations-for-jira.atlassian
error in process filter: Some namespaces are in a bad state: error "Class not found: clojure.core/long" in relations-for-jira.atlassian

mitchelkuijpers18:08:51

I saw some issues about this does anyone has a hint what might cause this? I could not find any hints towards a long in that namespace

mitchelkuijpers19:08:11

Wow this mranderson stacktrace is scary

benedek19:08:22

haha sry about that

mitchelkuijpers19:08:05

I get more hints already with eastwood

mitchelkuijpers19:08:14

src/clj/relations_for_jira/atlassian.clj:147:4: wrong-tag: Wrong tag: clojure.core/long on form: idx__9449__auto__
src/clj/relations_for_jira/atlassian.clj:147:4: wrong-tag: Wrong tag: clojure.core/long on form: idx29785

benedek19:08:50

so how does this code look like? can you show a bit of it?

mitchelkuijpers19:08:25

sure not my prettiest code

mitchelkuijpers19:08:31

(defn get-public-key
  [base-url]
  (->
   (d/chain
    (http/get (str base-url "/plugins/servlet/oauth/consumer-info"))
    :body
    xml/parse
    :content
    #(filter (fn [{:keys [tag]}] (= tag :publicKey)) %)
    first
    :content
    first)
   (d/catch java.lang.Throwable
       (fn [e]
         (log/warn e "Could not find public key for host" base-url)
         nil))))

mitchelkuijpers19:08:50

src/clj/relations_for_jira/atlassian.clj:147:4: wrong-tag: Wrong tag: clojure.core/long on form: idx__9449__auto__
src/clj/relations_for_jira/atlassian.clj:147:4: wrong-tag: Wrong tag: clojure.core/long on form: idx29785

mitchelkuijpers19:08:14

linenumber 147 is the start of d/chain

mitchelkuijpers19:08:35

d/chain is something from manifold btw

benedek19:08:47

is that a macro?

mitchelkuijpers19:08:00

Yeah could be I guess

mitchelkuijpers19:08:09

maybe the -> with d/chain clashes?

mitchelkuijpers19:08:40

looks like a macro

benedek19:08:21

don’t you need to wrap the anon fn in parens?

benedek19:08:12

ok... ignore previous...

mitchelkuijpers19:08:41

Hmm if I remove d/chain it's fixed

mitchelkuijpers19:08:32

It seems to only happen when I set more than 3 arguments

benedek19:08:43

i don’t know manifold and looking at the source code just blowing my mind...

mitchelkuijpers19:08:54

I fixed it by giving less than 3 arguments, no worries

benedek19:08:17

well I did not do much 😉

mitchelkuijpers19:08:31

Sometimes talking to someone helps

benedek19:08:36

/me :rubber_duck:

mitchelkuijpers19:08:21

Now I can finally rename stuff with refactor-nrepl whohooo!