所以,我一直在更新我的知识,因为我还在尝试将我的Clojure知识固定在长期记忆中。我在主机:Windows 11上的VSCode中设置了一个到Arch Linux的远程WSL 2.0连接,因为我在所有开发中都默认使用Linux。
问题很简单,但我无法定位。
尝试从clojure.core调用(read-line)在Calva的输出中显示“无法解析符号:read-line”,Calva使用Joyride启动REPL。
默认不是已加载core吗?出了什么问题?
;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))