Skip to content

Instantly share code, notes, and snippets.

@fogus
Last active April 22, 2022 16:26
Show Gist options
  • Save fogus/a5492855b38b5d4b1db065927a7505d0 to your computer and use it in GitHub Desktop.
Save fogus/a5492855b38b5d4b1db065927a7505d0 to your computer and use it in GitHub Desktop.

RESOLUTION

I had an older version of Dart installed in a Flutter dev setup and it seemed that it was being picked up at some point in the init/build process. Removing the old Dart version fixed the errors below.

versions:

OSX

java -version
openjdk version "11.0.8" 2020-07-14

dart --version
Dart SDK version: 2.12.4 (stable)

clj --version
Clojure CLI version 1.10.3.1040

I also tried with the latest CLI version with same result.

steps

followed helloworld quick start steps as written, and also by manually typing each step. Both same result.

deps.edn is:

{:paths ["src"]
 :deps {org.clojure/clojure {:mvn/version "1.10.1"}
        tensegritics/clojuredart
        {:git/url "git@github.com:tensegritics/ClojureDart.git"
         :sha "919aabc31d5379a06cab597f7c622750c701ec48"}}}

error

clj -M -m cljd.build compile
... lots of console output
Execution error at cljd.compiler/load-libs-info (compiler.cljc:121).
EOF while reading

Note: .clojuredart/libs-info.edn is empty

EDN file contents

{:clojure.main/message
 "Execution error at cljd.compiler/load-libs-info (compiler.cljc:121).\nEOF while reading\n",
 :clojure.main/triage
 {:clojure.error/class java.lang.RuntimeException,
  :clojure.error/line 121,
  :clojure.error/cause "EOF while reading",
  :clojure.error/symbol cljd.compiler/load-libs-info,
  :clojure.error/source "compiler.cljc",
  :clojure.error/phase :execution},
 :clojure.main/trace
 {:via
  [{:type clojure.lang.EdnReader$ReaderException,
    :message "java.lang.RuntimeException: EOF while reading",
    :at [clojure.lang.EdnReader read "EdnReader.java" 180]}
   {:type java.lang.RuntimeException,
    :message "EOF while reading",
    :at [clojure.lang.Util runtimeException "Util.java" 221]}],
  :trace
  [[clojure.lang.Util runtimeException "Util.java" 221]
   [clojure.lang.EdnReader read "EdnReader.java" 130]
   [clojure.lang.EdnReader read "EdnReader.java" 111]
   [clojure.edn$read invokeStatic "edn.clj" 35]
   [clojure.edn$read invokeStatic "edn.clj" 14]
   [clojure.edn$read invoke "edn.clj" 14]
   [cljd.compiler$load_libs_info invokeStatic "compiler.cljc" 121]
   [cljd.compiler$load_libs_info invoke "compiler.cljc" 119]
   [cljd.build$compile_cli invokeStatic "build.clj" 178]
   [cljd.build$compile_cli doInvoke "build.clj" 173]
   [clojure.lang.RestFn invoke "RestFn.java" 457]
   [cljd.build$_main invokeStatic "build.clj" 361]
   [cljd.build$_main doInvoke "build.clj" 342]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.core$apply invokeStatic "core.clj" 665]
   [clojure.main$main_opt invokeStatic "main.clj" 514]
   [clojure.main$main_opt invoke "main.clj" 510]
   [clojure.main$main invokeStatic "main.clj" 664]
   [clojure.main$main doInvoke "main.clj" 616]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.main main "main.java" 40]],
  :cause "EOF while reading"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment