Fork me on GitHub
#fulcro
<
2021-10-08
>
sheluchin13:10:12

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.

konrad szydlo13:10:54

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.

sheluchin14:10:40

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?

dvingo17:10:42

It still requires writing "specs" (schemas), but malli provides spell checking on closed maps: https://github.com/metosin/malli#spell-checking

tony.kay13:10:34

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 😞

tony.kay13:10:07

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.

Jakub Holý (HolyJak)19:10:21

OMG, thank you, I forgot they are not just names but actual keys, both are wrong

roklenarcic18:10:21

Is it just me or is there an index.html file missing from fulcro template

Jakub Holý (HolyJak)19:10:47

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!

roklenarcic09:10:57

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.

roklenarcic10:10:17

I should have used port 3000