This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-30
Channels
- # admin-announcements (10)
- # beginners (17)
- # boot (14)
- # braveandtrue (4)
- # cider (6)
- # cljsrn (38)
- # clojure (232)
- # clojure-austin (1)
- # clojure-belgium (2)
- # clojure-dev (20)
- # clojure-greece (20)
- # clojure-japan (3)
- # clojure-poland (39)
- # clojure-russia (76)
- # clojure-sanfrancisco (6)
- # clojure-uk (4)
- # clojurescript (90)
- # cursive (2)
- # data-science (10)
- # datomic (18)
- # garden (16)
- # hoplon (244)
- # immutant (3)
- # jobs (6)
- # jobs-discuss (2)
- # juxt (1)
- # off-topic (3)
- # om (50)
- # onyx (23)
- # re-frame (5)
- # reagent (36)
- # remote-jobs (11)
- # slack-help (6)
- # spacemacs (2)
- # untangled (46)
@tony.kay: I tried cloning and running the TodoMVC repo but I got the same error as running the server of the tutorial.
user=> (go)
ExceptionInfo please provide a valid file on your file-system clojure.core/ex-info (core.clj:4593)
I stubbed out the go
function in untangled-todomvc/dev/server/user.clj
but I still get the same error.
Also I verified via slurp
ing that /usr/local/etc/todomvc.edn
has the data.
this means we don't need components to read the :{app,ui}/locale keys, they can just deref the atom
are the atoms solving just the problem of brevity for tr? i.e. if I'm happy explicitly referring to the auth status in components, can I use read-local without atoms?
@tomjack: Yeah, use links. The atom is an implementation detail you should not use directly. There is a built-in mutation for setting it via transact!
.
If anyone is looking for a contribution to make: automatic server code reload on file change would be nice. I made a stab at it a while ago, but got distracted on other more pressing issues. There are namespace monitoring utils (e.g. see how lein test-refresh works). The trick is not hot-reloading the code that is doing the watching so you don't lose track of things.
I was wondering if server side rendering is in untangled plans for the future (or the present š )
@doddenino: We don't need it here. @anmonteiro did work for that in Om itself, so it should be perfectly compatible.
We're just providing predefined helpers to use Om with, and if we need to add hooks for that kind of thing, be glad to take PR
@tomjack: There is a bug in untangled. @ethangracer is addressing it. We need to actually store :ui/locale in the app state, which got missed...links won't work until we do that, but it is the correct thing to do in order to avoid rendering problems.
Actually, @ethangracer test out a link and see if it does work. The read-local logic might actually work fine for links.
@tony.kay @tomjack just confirmed that links do not work with ui/locale. fix coming shortly
@ethangracer: thanks!
Iām still seeing this error when I try to run the TodoMVC app.
user=> (go)
ExceptionInfo please provide a valid file on your file-system clojure.core/ex-info (core.clj:4593)
Was anyone able to get it up and running successfully?I did that. And verified that the file was there.
server won't start without being configured. That error message is better in the newer untangled-server version
via slurp
/usr/local/etc/todomvc.edn
has the data
perhaps the README name is wrong. Glance at the code. The name of the config file is a parameter
I stubbed out the go
function in untangled-todomvc/dev/server/user.clj
but I still get the same error.
iāll double check
that is the correct filename. Make sure it is readable. You might make sure it contains legal EDN
If you are in intellij, you can set an exception breakpoint and examine the problem at the source level
i just tried the same few hours ago, in Cursive, and everything worked as in README
Hmm, in todomvc.system
namespace did (println (slurp "/usr/local/etc/todomvc.ednā))
and got
{
:datomic {:dbs {:todo {:url "datomic:"
:schema "todomvc.migrations"
:auto-migrate true
:auto-drop true
}}}
:port 3000}
oh my god
i figured it out
sorry
I was running the repl in the tutorial repo, thinking it was the todomvc repo. Well that was dumb.
It works now.
Thanks, I was just looking at locale as an example. Links worked fine for my authentication problem and I didn't need to change read-local :)
When I add [untangled.datomic.core :refer [build-database]]
to my appās system namespace I get the following exception on boot.
clojure.lang.ExceptionInfo: No reader function for tag db/id
data: {:file "datomic_toolbox/migration.clj", :line 22}
I suppose itās happening here. https://github.com/democracyworks/datomic-toolbox/blob/master/src/datomic_toolbox/migration.clj#L22
But the weird thing is I havenāt invoked that build-database
function, it just happens automatically on boot.