mentat-collective / emmy-viewers

High-performance symbolic, 2D and 3D visual extensions to the Emmy computer algebra system.
https://emmy-viewers.mentat.org
MIT License
38 stars 7 forks source link

When creating a new project with the emmy-viewers template, I see NoSuchFileException #66

Closed danielmartincraig closed 1 year ago

danielmartincraig commented 1 year ago

I'm using clj installed via the linux-install script provided at https://clojure.org/guides/install_clojure. I see the following NoSuchFileException when attempting to create a new project with the emmy-viewers template.

Creating project from emmy-viewers/clerk in stickerbike
Execution error (NoSuchFileException) at sun.nio.fs.UnixException/translateToIOException (UnixException.java:92).
/home/danielcraig/.gitlibs/libs/io.github.mentat-collective/emmy-viewers/6cb2aecad64c8f968d27685c394ee8d75dd9c1f4/resources/emmy_viewers/clerk/src/custom.tmpl

Full report at:
/tmp/clojure-8583884930666379245.edn
danielcraig@slowpoke:~/Repos$ cat /tmp/clojure-8583884930666379245.edn
{:clojure.main/message
 "Execution error (NoSuchFileException) at sun.nio.fs.UnixException/translateToIOException (UnixException.java:92).\n/home/danielcraig/.gitlibs/libs/io.github.mentat-collective/emmy-viewers/6cb2aecad64c8f968d27685c394ee8d75dd9c1f4/resources/emmy_viewers/clerk/src/custom.tmpl\n",
 :clojure.main/triage
 {:clojure.error/class java.nio.file.NoSuchFileException,
  :clojure.error/line 92,
  :clojure.error/cause
  "/home/danielcraig/.gitlibs/libs/io.github.mentat-collective/emmy-viewers/6cb2aecad64c8f968d27685c394ee8d75dd9c1f4/resources/emmy_viewers/clerk/src/custom.tmpl",
  :clojure.error/symbol
  sun.nio.fs.UnixException/translateToIOException,
  :clojure.error/source "UnixException.java",
  :clojure.error/phase :execution},
 :clojure.main/trace
 {:via
  [{:type java.nio.file.NoSuchFileException,
    :message
    "/home/danielcraig/.gitlibs/libs/io.github.mentat-collective/emmy-viewers/6cb2aecad64c8f968d27685c394ee8d75dd9c1f4/resources/emmy_viewers/clerk/src/custom.tmpl",
    :at
    [sun.nio.fs.UnixException
     translateToIOException
     "UnixException.java"
     92]}],
  :trace
  [[sun.nio.fs.UnixException
    translateToIOException
    "UnixException.java"
    92]
   [sun.nio.fs.UnixException
    rethrowAsIOException
    "UnixException.java"
    111]
   [sun.nio.fs.UnixException
    rethrowAsIOException
    "UnixException.java"
    116]
   [sun.nio.fs.UnixCopyFile copy "UnixCopyFile.java" 548]
   [sun.nio.fs.UnixFileSystemProvider
    copy
    "UnixFileSystemProvider.java"
    258]
   [java.nio.file.Files copy "Files.java" 1295]
   [clojure.tools.build.util.file$copy_file invokeStatic "file.clj" 60]
   [clojure.tools.build.util.file$copy_file invoke "file.clj" 56]
   [clojure.tools.build.api$copy_file invokeStatic "api.clj" 87]
   [clojure.tools.build.api$copy_file invoke "api.clj" 75]
   [org.corfield.new.impl$copy_template_dir$fn__802
    invoke
    "impl.clj"
    120]
   [clojure.core$run_BANG_$fn__8880 invoke "core.clj" 7783]
   [clojure.core.protocols$iter_reduce invokeStatic "protocols.clj" 49]
   [clojure.core.protocols$fn__8230 invokeStatic "protocols.clj" 75]
   [clojure.core.protocols$fn__8230 invoke "protocols.clj" 75]
   [clojure.core.protocols$fn__8178$G__8173__8191
    invoke
    "protocols.clj"
    13]
   [clojure.core$reduce invokeStatic "core.clj" 6886]
   [clojure.core$run_BANG_ invokeStatic "core.clj" 7778]
   [clojure.core$run_BANG_ invoke "core.clj" 7778]
   [org.corfield.new.impl$copy_template_dir
    invokeStatic
    "impl.clj"
    118]
   [org.corfield.new.impl$copy_template_dir invoke "impl.clj" 88]
   [org.corfield.new$create$fn__860 invoke "new.clj" 79]
   [clojure.core$run_BANG_$fn__8880 invoke "core.clj" 7783]
   [clojure.lang.PersistentVector reduce "PersistentVector.java" 343]
   [clojure.core$reduce invokeStatic "core.clj" 6885]
   [clojure.core$run_BANG_ invokeStatic "core.clj" 7778]
   [clojure.core$run_BANG_ invoke "core.clj" 7778]
   [org.corfield.new$create invokeStatic "new.clj" 79]
   [org.corfield.new$create invoke "new.clj" 39]
   [clojure.lang.Var invoke "Var.java" 384]
   [clojure.run.exec$exec invokeStatic "exec.clj" 89]
   [clojure.run.exec$exec invoke "exec.clj" 78]
   [clojure.run.exec$_main$fn__220 invoke "exec.clj" 228]
   [clojure.run.exec$_main invokeStatic "exec.clj" 224]
   [clojure.run.exec$_main doInvoke "exec.clj" 192]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.core$apply invokeStatic "core.clj" 667]
   [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
  "/home/danielcraig/.gitlibs/libs/io.github.mentat-collective/emmy-viewers/6cb2aecad64c8f968d27685c394ee8d75dd9c1f4/resources/emmy_viewers/clerk/src/custom.tmpl"}}
sritchie commented 1 year ago

Thanks for the detailed report! I accidentally reverted a file in the template on my last commit... everything should be working and up to date now.