[英]Can't require core.async in Clojure
I want to require core.async, but the compiler throws an error when requiring. 我想要core.async,但是编译器在需要时抛出错误。
I've added [org.clojure/core.async "0.4.500"]
to project.clj
, and tried various versions, but the compiler still throws an error. 我已经将
[org.clojure/core.async "0.4.500"]
到project.clj
,并尝试了各种版本,但是编译器仍然抛出错误。
This is my core.clj
: 这是我的
core.clj
:
(:require [clojure.core.async
:as a
:refer [>! <! >!! <!! go chan buffer close! thread
alts! alts!! timeout]]))
And these are my :dependencies
in my project.clj
: 这些是我的
project.clj
: :dependencies
:
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/core.async "0.4.500"]]
The compiler throws: 编译器抛出:
Error compiling clojure/core/async.clj at (9:1)
Call to clojure.core/refer-clojure did not conform to spec.
OK, it turns out I just needed to restart Emacs, it fixed the problem. 好的,原来我只需要重新启动Emacs,它就解决了问题。 Somehow.
不知何故。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.