【发布时间】:2017-01-01 08:31:32
【问题描述】:
新的 linux (centos7)、新的 lighttable、新的 lein、新的项目:
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: defproject in this context, 正在编译:(/home/zzz/nnn/lighttable/project.clj:1:1)
这是项目:
(defproject lighttable "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]])
在尝试 clojure 几年后,有一个项目正在生产中。 (当然不是这个):我错过了什么吗?
【问题讨论】:
-
您是在尝试以任何方式运行您的 project.clj,还是将其作为源代码的一部分?该文件不应该直接运行(基本上),但
lein将其作为描述做什么。 -
突然间,它毫无理由地运行了。