Could not locate clojure/core/async__init.class or clojure/core/async.clj on classpath

☆樱花仙子☆ 提交于 2019-11-28 03:26:03

问题


Does anyone know why I'm getting the below error? I read through answers of similar questions, which recommended using Leiningen, which I've done below and still get the error.

MacBook-Pro:~ xxx$ lein new app test

Generating a project called test based on the 'app' template.

MacBook-Pro:~ xxx$ cd test

MacBook-Pro:test xxx$ lein repl

nREPL server started on port 59623 on host 127.0.0.1

REPL-y 0.2.1

Clojure 1.5.1

Docs: (doc function-name-here)

(find-doc "part-of-name-here")

Source: (source function-name-here)

Javadoc: (javadoc java-object-or-class-here)

Exit: Control+D or (exit) or (quit)

Results: Stored in vars *1, *2, *3, an exception in *e

test.core=> (require '[clojure.core.async :as async :refer :all])

FileNotFoundException Could not locate clojure/core/async__init.class or clojure/core/async.clj on classpath: clojure.lang.RT.load (RT.java:443)

test.core=>


I also tried via cider repl in emacs:

; CIDER 0.3.1 (Clojure 1.5.1, nREPL 0.2.3)

user> (require '[clojure.core.async :as async :refer :all])

FileNotFoundException Could not locate clojure/core/async__init.class or clojure/core/async.clj on classpath: clojure.lang.RT.load (RT.java:443)

user>


回答1:


You need to add it to your project.clj file. See the README for details for the current version. Once you make the necessary changes to project.clj, you need to restart the repl.



来源:https://stackoverflow.com/questions/20037682/could-not-locate-clojure-core-async-init-class-or-clojure-core-async-clj-on-cla

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!