This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-20
Channels
- # admin-announcements (26)
- # beginners (1)
- # boot (157)
- # cider (46)
- # clojure (52)
- # clojure-italy (19)
- # clojure-japan (31)
- # clojure-russia (61)
- # clojure-sg (3)
- # clojurescript (65)
- # clojurex (7)
- # clojutre (8)
- # datascript (15)
- # editors (19)
- # emacs (9)
- # funcool (13)
- # hoplon (74)
- # ldnclj (13)
- # liberator (20)
- # off-topic (70)
- # om (5)
- # onyx (1)
- # re-frame (5)
- # reagent (20)
- # testing (23)
mm I enabled (add-hook 'clojure-mode-hook #'inf-clojure-minor-mode) for clojurescript stuff
since I don't use cider for it and use figwheel like that
(defun figwheel-repl () (interactive) (run-clojure "/home/andrea/.local/bin/lein figwheel"))
but realized that of course it conflicts with the cider key bindings
maybe I need an inferior mode clojurescript-mode and enable inf-clojure-mode only on that, anyone had the same issue?
ah right clojurescript-mode already exists actually
ok then probably this is all I needed
(add-hook 'clojurescript-mode-hook #'inf-clojure-minor-mode)
@andrea.crotti: yep, that would be it
You can user cider with figwheel too: https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
Is there a create new test file func in cider? i.e. I’m writing implementation and want to create the associated test file
@bozhidar: thanks. Will take a look.
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
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
Wow this mranderson stacktrace is scary
I get more hints already with eastwood
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
sure not my prettiest code
(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))))
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
linenumber 147 is the start of d/chain
d/chain is something from manifold btw
Yeah could be I guess
maybe the -> with d/chain clashes?
https://github.com/ztellman/manifold/blob/master/src/manifold/deferred.clj#L910
looks like a macro
Hmm if I remove d/chain it's fixed
It seems to only happen when I set more than 3 arguments
Yeah me too
I fixed it by giving less than 3 arguments, no worries
Thanks for the help @benedek
Sometimes talking to someone helps
Now I can finally rename stuff with refactor-nrepl whohooo!