Re: [ClojureScript] Browser Repl ignores namespace - can't use repl effectively, please help

2015-07-05 Thread Evan Moses
On Saturday, July 4, 2015 at 4:55:04 AM UTC-7, Leon Grapenthin wrote:
> At least for me, this is not true. Using Figwheels nREPL within Cider (no 
> weasel) works like a charme with auto complete, code jumping, all working 
> perfectly. I use this setup:
> 
> https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
> 
> I don't recommend using Weasel anymore.

I'd love to get Cide working, but those instructions don't seem to work for me. 
 I ripped out weasel, the command line repl works fine, and I can connect to 
localhost:7888 with cider, but I get this beautiful error as soon as I run 
(cljs-repl)

1. Unhandled java.lang.IllegalArgumentException
   No value supplied for key: {doc #, import
   #,
   fig-status #,
   stop-autobuild #, in-ns
   #,
   start-autobuild #,
   build-once #,
   switch-to-build #,
   require #, clojure.core/load-file
   #,
   load-namespace #, load-file
   #,
   clojure.core/in-ns #, add-dep #, clean-builds
   #,
   reset-autobuild #,
   require-macros #}

PersistentHashMap.java:   77  clojure.lang.PersistentHashMap/create
piggieback.clj:  212  cemerick.piggieback/cljs-repl
   RestFn.java:  460  clojure.lang.RestFn/invoke
  repl.clj:  172  figwheel-sidecar.repl/repl
  repl.clj:  455  figwheel-sidecar.repl/start-repl
  repl.clj:  471  figwheel-sidecar.repl/cljs-repl
  repl.clj:  458  figwheel-sidecar.repl/cljs-repl
  repl_api.clj:   72  figwheel-sidecar.repl-api/cljs-repl
  REPL:1  user/eval36337

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.


[ClojureScript] Performance tuning a Reagent/Re-frame application

2015-07-05 Thread Alan Moore
Obviously using reagent/re-frame should minimize Dom updates but sometimes an 
app can behave differently than we think it should. Especially in an event 
driven system some operations may occur in different orders, etc, sometimes 
this can be caused by the inversion of control that comes with event oriented 
systems.

One biggie is Dom reflow so make sure your app isn't triggering some worst case 
in FF. Rendering a large table or sequence of flex-box all in one chunk is 
going to be way faster than one row/box at a time.

Good luck.

Alan

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.


[ClojureScript] [ANN] doo - a multi-environment cljs.test runner

2015-07-05 Thread Sebastian Bensusan
Hi everybody,

I've put together "doo", a small plugin/library to run cljs.test in different 
environments:

https://github.com/bensu/doo

SlimerJS, PhantomJS, NodeJS, and Rhino are currently supported. It is meant to 
be used with :cljsbuild configurations like this:

   lein doo slimer my-render-test-build

or

   lein doo node my-logic-test-build

which will autocompile your build and run the script on any changes. More info 
in the README.

It can also be used in CI with the "once" option:

   lein doo phantom my-staging-build once

which will return the appropriate 0 or 1 Unix code depending on the tests 
results.

Since it is a utility, its development will be very much guided by user 
feedback, PRs, and issues.

For anything that doesn't belong in the Github workflow, you can find me in 
this mailing list or at #clojurescript as bensu.

Most of the credit goes to Chas Emerick, since doo is based on the runners in 
https://github.com/cemerick/clojurescript.test

Thanks for your time!

Sebastian Bensusan

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.