This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
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?not sure that it's reagent related, but if I remove everything except secretary, it works without problems
@ivanbokii: have you followed https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl? Grasping at straws...
@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
I mean specifically, did you do the
user> (use 'figwheel-sidecar.repl-api)
user> (cljs-repl)
after connecting to the figwheel repl?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)
that might be worth fixing first then… what’s the full stack trace?
until that works I am not sure I would trust anything in the REPL...
@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!
Hey guys. I am having some trouble when trying to use mapv
in a reagent view. What is up with that?
I get:
Error rendering component (in my-component > reagent1)
Uncaught Error: Invalid arity: 9
@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. A Gist? A code fragment?