cursive 2025-10-30

Small gotcha that took some time for me to understand: Trying to do (is (= a 42)) where a is actually not a valid form, such as [{:count(*) 1234}] results in multiple

Error handling response - class java.lang.RuntimeException: java.lang.NullPointerException: null cannot be cast to non-null type com.intellij.psi.PsiElement
Caused by:class java.lang.NullPointerException: null cannot be cast to non-null type com.intellij.psi.PsiElement
Error handling response - class java.lang.RuntimeException: java.lang.NullPointerException: null cannot be cast to non-null type com.intellij.psi.PsiElement
Caused by:class java.lang.NullPointerException: null cannot be cast to non-null type com.intellij.psi.PsiElement

The weird value came from a query such as (jdbc/execute conn ["SELECT count(*) FROM mytable"]) which by itself evaluates fine to [{:count(*) 1234}], but it's not homoiconic, ie it cannot be re-inserted into the repl. At least I guess that's related to the error.

The error message just threw me off for a second (or two), so I thought I'd post it here for others

yeah, :count(*) is not a valid keyword literal. u would need to construct it with (keyword "count(*)")

but if u have syntax highlighting, that should have already indicated this