Fork me on GitHub
#fulcro
<
2018-01-30
>
tony.kay04:01:26

New form state management code (ALPHA) in being released (tests running first). The book has been updated to describe this new support: http://book.fulcrologic.com/#_form_state_support_a_id_formstate_a_alpha_version_2_1_4

tony.kay04:01:55

Version 2.1.4 is up on Clojars

roklenarcic12:01:33

you've spelled version as verstion in title

pithyless12:01:57

@tony.kay - On the semantic-ui-wrapper README you wrote: “The NPM support in Clojurescript is not yet advanced enough to support using Semantic UI directly”. Is this still true? Can you possibly elaborate on what the problems are? I was thinking of testing out material-ui (version 1.x-beta) via npm-deps, but if there obvious issues I won’t even go down that road at the moment.

wilkerlucio12:01:22

you can try using shadow-cljs, you can start a new fulcro project already with that (there is a command line on lein new, I just dont remember exactly), with shadow-cljs you get much better npm packages support

pithyless13:01:16

thanks, shadow-build had been on my radar before, maybe it’s time to have another look at it

romni13:01:37

i did a little thing that other people might find useful https://github.com/romnous/fulcro-datatable

tony.kay16:01:08

@pithyless That comment is out of date, but may still be true. It doesn’t work with cljs proper, but it may in fact work fine with shadow-cljs.

tony.kay16:01:12

The way the library is distributed, it doesn’t get detected properly…I don’t remember what goes wrong, but last time I tried it (which was on a very recent version of cljs proper) it did not work, even with some tinkering.

tony.kay16:01:47

The wrappers I wrote, I more wrote to integrate the docstrings (which it can do from the generated docs of semantic ui react).

tony.kay16:01:35

I don’t remember if I tried material ui…I’m pretty sure I got one of them to work “out of the box”. I know I tried a few login components (e.g. google/github/facebook) and most of those has a working version….but again, shadow-cljs support is so much improved over the standard cljs, that I would not waste my time even trying the standard cljs in a project if I wanted external npm deps.

thheller16:01:32

cljsjs.material-ui is one of the bad cljsjs deps since its bundle its own React version. so you have to be extra careful not to end up with 2 separate react versions on the page

thheller16:01:28

shadow-cljs indeed fixes that 😉

pithyless17:01:01

Thanks for the heads up. I got a skeleton project running with the new lein template for shadow-cljs. I submitted a short PR of some issues I hit, but otherwise - excellent job with the docs @tony.kay 🙂

tony.kay17:01:37

great…yeah, I don’t have the time right now to test everything to the nth degree, so I appreciate the help

tony.kay18:01:00

@pithyless Those changes are up on clojars. Thanks!

afhammad21:01:51

getting

Error loading cider.nrepl.middleware.test: java.lang.RuntimeException: Invalid token: ::clojure.test/once-fixtures, compiling:(cider/nrepl/middleware/test.clj:98:57)
Exception in thread "main" java.lang.RuntimeException: Unable to resolve var: cider.nrepl.middleware.test/wrap-test in this context
when running lein repl on a fresh fulcro lein template project

tony.kay21:01:11

I do not maintain the CIDER stuff…I just included what others suggested. Feel free to add needed dependencies/middleware

afhammad21:01:55

do you know where that dependency is coming from? i’m not using cider my self

tony.kay21:01:24

oh, you mean the REPL won’t even start?

tony.kay21:01:45

lein run -m clojure.main

afhammad21:01:07

that works, but was trying lein repl coz the prior has crappy command-line editing support for some reason

tony.kay21:01:09

you could also remove the repl-options

tony.kay21:01:20

rlwrap lein run -m clojure.main

tony.kay21:01:38

middleware at least

afhammad21:01:29

doesn’t help either. strange

tony.kay21:01:35

a bunch of middleware is injected into CIDER in order to get it to work with various things. If you remove that middleware, I’m guessing lein repl will work.

tony.kay21:01:51

but CLI editing is not built into either…

afhammad21:01:24

remove it from where? (sorry picking up clojure after a long hiatus). FYI i didnt add anything to what lein new fulcro .... generated

tony.kay21:01:29

project.clj

tony.kay21:01:39

near the bottom

tony.kay21:01:44

there is a :repl-options

afhammad21:01:05

cemerick.piggieback/wrap-cljs-repl ?

tony.kay21:01:37

yep, get rid of the middleware and see if that helps

tony.kay21:01:47

could just be some version mismatch stuff when I updated versions

tony.kay21:01:16

Open an issue and I’ll look into it. For now, you can get CLI editing with rlwrap

tony.kay21:01:24

the command I gave ealier.

tony.kay21:01:39

Also, IntelliJ and Cursive are free for non-commercial use

tony.kay21:01:42

I recommend them

afhammad21:01:29

nevermind! turns out i had the dependency in my .lein/profiles.clj (which i must have added years ago)

tony.kay21:01:46

ah, yeah, I wondered if it might be something like that