This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-04
Channels
- # aleph (3)
- # beginners (37)
- # boot (45)
- # carry (1)
- # cljsrn (15)
- # clojure (78)
- # clojure-austin (2)
- # clojure-brasil (10)
- # clojure-czech (3)
- # clojure-dev (12)
- # clojure-dusseldorf (31)
- # clojure-hamburg (2)
- # clojure-italy (4)
- # clojure-poland (2)
- # clojure-russia (37)
- # clojure-spec (25)
- # clojure-uk (30)
- # clojurescript (160)
- # cursive (40)
- # data-science (1)
- # datomic (31)
- # emacs (7)
- # figwheel (4)
- # hoplon (73)
- # leiningen (1)
- # liberator (5)
- # luminus (7)
- # numerical-computing (1)
- # off-topic (31)
- # om (89)
- # onyx (66)
- # proton (5)
- # protorepl (1)
- # re-frame (18)
- # reagent (2)
- # ring (2)
- # spacemacs (1)
- # untangled (93)
- # vim (19)
- # yada (67)
Hi Guys, I'm trying to update a project which is using hoplon 5.10.25 to 6.0.0alpha16. I've hit a problem where my Javelin formula cells when derefed are returning javelin.core/none. I am hoping someone could explain why a formula cell would give me this? A scenario where its causing me a problem is when I put the formula cell on a class of an html element.
@lightbulb can you make an example that demonstrates the problem?
Hi guys. I'm trying to deploy a relatively simple app as an html fileset. I'm using Hoplon 6.0.0-alpha16 and the target task like so:
(deftask build-p []
(comp
(cljs :optimizations :none)
(target :dir #{"C:/Users/rigalo/Dropbox/Apps/Heroku/h-budget"})))
I get main.js
and main.out
but no index.html
. Any pointers?Btw I've been using Windows for a while, and now Windows 10 with mostly success. Although I'm not really pushing any boundaries. I do get the WARNING: Use of undeclared Var hoplon.core/html-object
warning when I use UI, even when I set, (:refer-hoplon :exclude [html-object])
But I havent notice it affect anything once the warnings settle down.
For my boot.properties
I have
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.7.0
BOOT_VERSION=2.6.0
BOOT_EMIT_TARGET=no
I'm assuming I need the index.html
as an entry-point for all the js to run, correct?
Never mind, was just missing the (hoplon)
boot task 😅
@micha Thanks for getting in touch. I have just done a bit more testing using (.log js/console ...)
. I recorded this in a scratch buffer that i'll send. There's also an example of how this is causing me problems at the top.
As the very basic (.log js/console @(cell= {:hidden true}))
works at index.cljs.hl I think I need to keep testing all the way through the call stack until it stops working and then go from there.
Its interesting you say that I should never see this from a cell. I couldn't find anything from googling this so I must just be doing something strange.
I understand there is probably not a real use for this kind of thing @(cell= {:hidden true})
but i'm just using it too test where things start going wrong. I would think that derefing it immediately like this should still work though.
This issue starts when secretary calls my view element. I did find if I wrap my (.log js/console @(cell= {:hidden true}))
with the (with-init!)
marco it then worked. I can't render my form inside a (with-init!)
though.
Okay. I saw the source for that. I did think of trying to figure out how to use formula directly. I didn't think it would make any difference. I think this must be something wrong with my project though. I'll keep digging.
usually the ::none
value can never be seen, because it's immediately and synchronously updated when propagate!
is run
I have seen it before I tried updating boot. It would happen if I had an error somewhere else on my page. Form fields would show none.
then set-formula!
is called to wire up the cell to the formula thunk and the cells the formula depends on
propagate!
then figures out which cells depend on that one, and computes a linear ordering of them
such that each cell is only updated after all the cells it depends on have already been updated