问题描述
我在 https://github.com/milleva/LyricMaster(发布此内容时为 https://github.com/milleva/LyricMaster/tree/d6d534ff02f098d23c435152627247e753bfb341)有一个开源应用程序的轻量级 figwheel 配置。突然间,对于我来说,没有明显的原因,每当我尝试添加任何新命名空间时,figwheel 都会遇到编译错误 Pushback buffer overflow
。
figwheel: Cutting some fruit,just a sec ...
figwheel: Validating the configuration found in project.clj
figwheel: Configuration Valid ;)
figwheel: Starting server at http://0.0.0.0:3449
figwheel: Watching build - lyric-frontend
Compiling build :lyric-frontend to "resources/public/js/lyric_frontend.js" from ["src"]...
Failed to compile build :lyric-frontend from ["src"] in 0.793 seconds.
---- Could not Read src/lyric_frontend/thingy.cljs line:1 column:27 ----
Pushback buffer overflow
1 (ns lyric-frontend.thingy)
^--- Pushback buffer overflow
2
3 (def test "test")
---- Reader Error : Please see src/lyric_frontend/thingy.cljs ----
这是在几天后重新编写代码后发生的。我已经检查了许多早期的提交,但问题仍然存在。
project.clj:
(defproject lyric-master "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.9.0"]
[org.clojure/data.json "1.0.0"]
[clj-http "3.12.0"]
[metosin/reitit "0.5.12"]
[javax.servlet/servlet-api "2.5"]
[ring "1.9.0"]
[ring/ring-json "0.5.0"]
[reagent "1.0.0"]
[jumblerg/ring-cors "2.0.0"]
[org.clojure/clojurescript "1.10.312"]
[cljs-http "0.1.46"]
[stylefy "2.2.1"]]
:plugins [[lein-cljsbuild "1.1.4"
:exclusions [org.clojure/clojure]]
[lein-figwheel "0.5.20"]]
:clean-targets ^{:protect false} ["resources/public/js/out"
"resources/public/js/lyric_frontend.js"
:target-path]
:source-paths ["src"]
:main "lyric-backend.core/start"
:cljsbuild {:builds [{:id "lyric-frontend"
:source-paths ["src"]
:figwheel true
:compiler {
:main lyric-frontend.core
:asset-path "js/out"
:output-to "resources/public/js/lyric_frontend.js"
:output-dir "resources/public/js/out"
:source-map-timestamp true}}]}
:figwheel {:css-dirs ["resources/public/css"]
:open-file-command "emacsclient"})
src/lyric_frontend/thingy.cljs(私有代码,任何地方都不需要):
(ns lyric-frontend.thingy)
(def test "test")
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)