This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-08
Channels
- # announcements (20)
- # aws (16)
- # babashka (63)
- # beginners (75)
- # calva (35)
- # cider (2)
- # clj-commons (5)
- # clj-kondo (2)
- # cljs-dev (1)
- # clojure (90)
- # clojure-australia (3)
- # clojure-europe (16)
- # clojure-france (1)
- # clojure-nl (4)
- # clojure-uk (5)
- # clojurescript (7)
- # data-science (2)
- # datahike (1)
- # datomic (39)
- # emacs (31)
- # events (2)
- # figwheel-main (1)
- # fulcro (15)
- # gratitude (8)
- # helix (17)
- # holy-lambda (1)
- # introduce-yourself (1)
- # jobs (3)
- # kaocha (2)
- # liquid (1)
- # malli (1)
- # nrepl (2)
- # other-languages (1)
- # portal (76)
- # react (19)
- # reagent (9)
- # remote-jobs (1)
- # rewrite-clj (9)
- # shadow-cljs (31)
- # tools-deps (5)
- # xtdb (11)
Well, my large thread above came down to a typo :man-facepalming::skin-tone-2: little bit embarrassing. But it has me thinking.. is there any way to get some kind of warning for things like misspelled map keys? I suppose not, as there is no way to know whether it's a typo or just a key that some other downstream function expects to make use of. Besides throwing Guardrails on every function there is, is there any way to reduce and/or detect such problems in Clojure? I know this isn't a Fulcro question specifically, but I thought I'd ask here anyhow.
I use #cursive plugin. On many occasions I get suggestions for auto-complete function names, keywords etc. or highlighting when I get something misspelled. I've checked and Cursive would highlight they misspelled keyword in your case.
Do you know how that works? Many keywords aren't actual words. Do you get lots of highlights like this when dealing with keys that aren't just comma-separated English words?
It still requires writing "specs" (schemas), but malli provides spell checking on closed maps: https://github.com/metosin/malli#spell-checking
It’s why I started the Copilot project. The answer is “yes”, and I’ve got such a thing working, but I ran out of help on that project, so it is stalled 😞
but that would involve putting guardrails on the functions 😄 Something has to provide the info….it’s just I’d rather see it in my IDE as a highlight.
very nice! I think there's a key error in this example:
https://fulcro-community.github.io/guides/tutorial-advanced-minimalist-fulcro/#_a_router_inside_a_newly_loaded_component
loaded-data-tree
-> data-tree
OMG, thank you, I forgot they are not just names but actual keys, both are wrong
Fixed now.
Is it just me or is there an index.html
file missing from fulcro template
You are not the first one running into that. So if you have a good idea how to help the next person avoid the surprise, please send a PR!
I was confused because I got a message that index.html was missing. It was because I was trying to access the main build for cljs at port 8022.
I should have used port 3000