无法在类路径上找到 clojure/core/async__init.class 或 clojure/core/async.clj [英] Could not locate clojure/core/async__init.class or clojure/core/async.clj on classpath

查看:18
本文介绍了无法在类路径上找到 clojure/core/async__init.class 或 clojure/core/async.clj的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道为什么我会收到以下错误?我通读了类似问题的答案,这些答案建议使用 Leiningen,我已经在下面完成了,但仍然出现错误.

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

基于应用"模板生成一个名为 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=>


我也在 emacs 中通过 cider repl 尝试过:


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> 

推荐答案

您需要将其添加到您的 project.clj 文件中.有关当前版本的详细信息,请参阅自述文件.对 project.clj 进行必要的更改后,您需要重新启动 repl.

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.

这篇关于无法在类路径上找到 clojure/core/async__init.class 或 clojure/core/async.clj的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆