clojuredart:cljd.com上的执行错误/load-libs-info(compiler.cljc:126)。阅读时EOF
在将一本Flutter食谱转换为Clojuredart时,我概括了这个错误。 我以这种方式初始化了项目:
$ mkdir -p src/samples && touch src/samples/tabs.cljd
$ clj -M -m cljd.build init --dart samples.tabs
然后我以这种方式编译了:
$ clj -M -m cljd.build flutter
我做错了什么?
While translating a flutter cookbook into ClojureDart, I encoutered this error.
I initialized the project that way:
$ mkdir -p src/samples && touch src/samples/tabs.cljd
$ clj -M -m cljd.build init --dart samples.tabs
And then I compiled it this way:
$ clj -M -m cljd.build flutter
What did I do wrong ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的
.clojuredart/libs-info.edn
文件是空的,这就是为什么它会导致eof。这里的错误不是来自代码本身,而是我初始化项目的方式。
而不是这样做:
我应该刚刚完成:
没有
-Dart
。有两种纠正此问题的方法。
如果将
ls
运行到.clojuredart
,您会注意到有两个文件:analyzer.dart
和libs-info.edn
。 Clojuredart使用分析仪来产品飞镖代码。运行:
它应该有效,就像对我一样!
My
.clojuredart/libs-info.edn
file was empty, that is why it causes EOF.The mistake here is not from the code itself, but from the way I initialized the project.
Instead of doing:
I should have just done:
without the
--dart
.There are two ways to correct this.
If you run
ls
into.clojuredart
, you will notice that there are two files:analyzer.dart
andlibs-info.edn
. ClojureDart uses the analyzer to product dart code.run:
And it should works, just like it did for me !