Fork me on GitHub
#reagent
<
2015-11-08
>
ivanbokii17:11:21

Hey guys, having some problems with reagent and cider. If I do lein figwheel and then in emacs I connect to nrepl and then try to eval a buffer with something like

(ns reagent-test.core
    (:require [reagent.core :as reagent :refer [atom]]
              [reagent.session :as session]
              [secretary.core :as secretary :include-macros true]
              [accountant.core :as accountant]))
I get
1. Unhandled java.io.FileNotFoundException
   Could not locate reagent/core__init.class or reagent/core.clj on classpath.
any ideas how to fix it?

ivanbokii17:11:55

not sure that it's reagent related, but if I remove everything except secretary, it works without problems

ivanbokii18:11:08

@colin.yates I used reagent template (https://github.com/reagent-project/reagent-template) and its project.clj looks correct according to the instruction you posted

colin.yates18:11:42

I mean specifically, did you do the

user> (use 'figwheel-sidecar.repl-api)
user> (cljs-repl)
after connecting to the figwheel repl?

ivanbokii18:11:51

I also have another problem if I try to start repl directly from cider

lifemappy.repl> (use 'figwheel-sidecar.repl-api)
nil
lifemappy.repl> (cljs-repl)
NullPointerException   clojure.core/deref-future (core.clj:2186)

colin.yates18:11:17

that might be worth fixing first then… what’s the full stack trace?

colin.yates18:11:27

until that works I am not sure I would trust anything in the REPL...

ivanbokii18:11:37

@colin.yates: found the problem. I was trying to run cider repl instead of connecting it to the one, started from terminal with lein figwheel. After doing coder connect and then trying to run cljs-repl everything worked like a charm. Sorry for taking your time and thank you!

profil20:11:21

Hey guys. I am having some trouble when trying to use mapv in a reagent view. What is up with that?

profil20:11:11

I get:

Error rendering component  (in my-component > reagent1)
Uncaught Error: Invalid arity: 9

mikethompson22:11:24

@profil: Looks like my-component is incorrectly passing 9 params to one of its children. Other than that, to get help you'll have to provide a lot more information than you have. simple_smile A Gist? A code fragment?