hoplon

The :hoplon: ClojureScript Web Framework - http://hoplon.io/
vigilancetech 2019-02-18T07:17:14.008900Z

can anyone recall what caused this error? I seem to recall it required a downgrade, perhaps of hoplon?

core.cljs:269 Error: <line> attribute y1: Expected length, "NaN".

flyboarder 2019-02-18T08:36:25.009200Z

@vigilancetech what version are you using?

flyboarder 2019-02-18T08:36:34.009600Z

Could you show us the line throwing the error?

vigilancetech 2019-02-18T14:43:51.011400Z

@flyboarder hoplon 7.2.0. This is what shows up in the js console:

core.cljs:269 Error: <line> attribute y1: Expected length, "NaN".
(anonymous)	@	core.cljs:269
hoplon$core$_set_attributes_BANG_	@	core.cljs:209
hoplon.core.set_attributes_BANG_.cljs$core$IFn$_invoke$arity$2	@	core.cljs:317
(anonymous)	@	core.cljs:597
cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$3	@	core.cljs:10894
(anonymous)	@	core.cljs:593
cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$3	@	core.cljs:10894
hoplon$core$_do_BANG_	@	core.cljs:71
(anonymous)	@	core.cljs:583
hoplon.core.do_watch.cljs$core$IFn$_invoke$arity$3	@	core.cljs:100
hoplon.core.do_watch.cljs$core$IFn$_invoke$arity$2	@	core.cljs:97
(anonymous)	@	core.cljs:583
cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$3	@	core.cljs:10894
hoplon$core$_elem_BANG_	@	core.cljs:81
cljs.core.Keyword.hoplon$core$IHoplonAttribute$_attribute_BANG_$arity$3	@	core.cljs:197
hoplon$core$_attribute_BANG_	@	core.cljs:189
(anonymous)	@	core.cljs:345
(anonymous)	@	core.cljs:6889
cljs.core.PersistentArrayMap.cljs$core$IKVReduce$_kv_reduce$arity$3	@	core.cljs:6889
cljs$core$_kv_reduce	@	core.cljs:700
cljs$core$reduce_kv	@	core.cljs:2548
hoplon$core$add_attributes_BANG_	@	core.cljs:345
hoplon.core.invoke_BANG_.cljs$core$IFn$_invoke$arity$variadic	@	core.cljs:358
Element.cljs$core$IFn$_invoke$arity$2	@	core.cljs:375
G__16859__delegate	@	svg.cljs:15
G__16859	@	svg.cljs:11
(anonymous)	@	visualizations.cljs:56
(anonymous)	@	core.cljs:650
(anonymous)	@	core.cljs:650
hoplon.core.do_watch.cljs$core$IFn$_invoke$arity$3	@	core.cljs:100
hoplon.core.do_watch.cljs$core$IFn$_invoke$arity$2	@	core.cljs:97
hoplon$core$loop_tpl_STAR_	@	core.cljs:644
guardian$dashboard$visualizations$histogram__delegate	@	visualizations.cljs:54
guardian$dashboard$system_view	@	dashboard.cljs:546
(anonymous)	@	dashboard.cljs:750
cljs.core.Delay.cljs$core$IDeref$_deref$arity$1	@	core.cljs:10392
cljs$core$_deref	@	core.cljs:673
cljs$core$deref	@	core.cljs:1449
(anonymous)	@	dashboard.cljs:749
javelin.core.set_formula_BANG__STAR_.this$.thunk	@	core.cljs:83
(anonymous)	@	core.cljs:24
javelin$core$propagate_STAR_	@	core.cljs:24
javelin$core$propagate_BANG_	@	core.cljs:43
javelin$core$set_formula_BANG__STAR_	@	core.cljs:85
javelin.core.formula.cljs$core$IFn$_invoke$arity$2	@	core.cljs:193
(anonymous)	@	dashboard.cljs:749
(anonymous)	@	dashboard.cljs:749
(anonymous)	@	dashboard.cljs:748
cljs.core.Delay.cljs$core$IDeref$_deref$arity$1	@	core.cljs:10392
cljs$core$_deref	@	core.cljs:673
cljs$core$deref	@	core.cljs:1449
(anonymous)	@	dashboard.cljs:731
javelin.core.set_formula_BANG__STAR_.this$.thunk	@	core.cljs:83
(anonymous)	@	core.cljs:24
javelin$core$propagate_STAR_	@	core.cljs:24
javelin$core$propagate_BANG_	@	core.cljs:43
javelin.core.Cell.cljs$core$IReset$_reset_BANG_$arity$2	@	core.cljs:122
cljs$core$_reset_BANG_	@	core.cljs:851
cljs$core$reset_BANG_	@	core.cljs:4441
javelin.core.Cell.cljs$core$ISwap$_swap_BANG_$arity$2	@	core.cljs:127
cljs.core._swap_BANG_.cljs$core$IFn$_invoke$arity$2	@	core.cljs:856
cljs.core.swap_BANG_.cljs$core$IFn$_invoke$arity$2	@	core.cljs:4466
(anonymous)	@	dashboard.cljs:104
javelin.core.Cell.cljs$core$IReset$_reset_BANG_$arity$2	@	core.cljs:121
cljs$core$_reset_BANG_	@	core.cljs:851
cljs$core$reset_BANG_	@	core.cljs:4441
(anonymous)
and here's the line 269 from core.cljs (surrounded by a couple on each side in context):
(if-not v
             (.removeAttribute e k)
             (.setAttribute e k (if (true? v) k v)))))))
    (-set-styles!
      ([this kvs]
 

flyboarder 2019-02-18T19:07:37.012500Z

@vigilancetech are you using Hoplon/UI?

flyboarder 2019-02-18T19:07:52.012900Z

that’s probably what’s causing it

vigilancetech 2019-02-18T19:10:07.014300Z

@flyboarder yes, an older fork. Guess I need to merge

flyboarder 2019-02-18T19:10:53.015400Z

I’m not sure what jumblerg did to Hoplon core but UI is experimental and hasn’t had recent activity to align with 7.1/7.2

flyboarder 2019-02-18T19:11:16.015900Z

I would recommend using one of my css ui libs

flyboarder 2019-02-18T19:11:38.016600Z

Uikit-hl has the most recent development

flyboarder 2019-02-18T19:12:06.017400Z

Semui-hl is also fairly stable

vigilancetech 2019-02-18T19:12:17.017600Z

ok, thx. I'll check them out

vigilancetech 2019-02-18T19:30:37.018Z

@flyboarder what is the difference between the two?

flyboarder 2019-02-18T19:31:06.018500Z

They use different css libraries for the styles