所以,我一直在复习这门语言,因为我还在努力让我的Clojure知识在长期记忆中留下印象。我在Windows 11的主机上设置了到Arch Linux的Remote WSL 2.0连接,使用VSCode,因为我默认在Linux上开发所有东西。
问题很简单,但我无法定位。
尝试从clojure.core调用(read-line)在我的Calva输出中产生一个无法解析符号:read-line
,而Calva是使用Joyride启动REPL的。
核心不是默认加载的吗?发生了什么
;checking if ns is the problem
(ns encoder)
;repl output check
(defn queue [] 0)
(println str (queue))
(def files-list)
;test
(do (print "Name yourself now: ")
(flush)
(read-line)) => Could not resolve symbol: read-line
;debug test
(println "Enter (literal) filename to encode> ")
(def input (read-line)) => Could not resolve symbol: read-line
(println (str "File to encode: " input))
;cant call read-line from core? wtf
;finish this
(defn add-queue-confirm [filenames]
(println "Files to process: " filenames))