I just started trying out clojure. I am doing my best to start vibing with the lisp syntax style. I am using vs-code on a mac, project is created with leiningen, calva is working (jack-in). Every time I try to import a library, for example
(ns asdf.core
(:gen-class)
(:require [clojure.string :refer [index-of]]))
and then adding
(index-of "ab" "ab")
somewhere under my main and press opt + enter I get a syntax error with the message
; Syntax error compiling at (src/asdf/core.clj:40:1).
; Unable to resolve symbol: index-of in this context
I already tried googling but only found that my name space might have to be changed to (ns asdf.core) again, but adding that in front of the index-of call doesn't help. Functions that I don't need to import/require like (+ 1 1) just work fine with the repl.(obviously the whole file should be in asdf.core ns, or am I wrong?)