Ugly error on `cake run`
srid opened this issue · comments
Need something friendlier (why would anyone want to run a directory?)
$ cake run error evaluating: ((binding [*command-line-args* args] (load-file script))) java.lang.RuntimeException: java.io.FileNotFoundException: /Users/sridharr/as/stackato-dashboard (No such file or directory) at clojure.lang.LazySeq.sval (LazySeq.java:47) clojure.lang.LazySeq.seq (LazySeq.java:56) clojure.lang.RT.seq (RT.java:450) clojure.core$seq.invoke (core.clj:122) clojure.core$dorun.invoke (core.clj:2450) clojure.core$doall.invoke (core.clj:2465) cake.task$run_actions.invoke (task.clj:153) cake.task$run_task$fn__685.invoke (task.clj:185) cake.task$run_task.invoke (task.clj:182) cake.task$run_task.invoke (task.clj:175) cake.main$process_command.invoke (main.clj:25) cake.server$create$fn__3323.invoke (server.clj:70) cake.utils.server_socket$accept_fn$fn__3060$fn__3063.invoke (server_socket.clj:39) cake.utils.server_socket$accept_fn$fn__3060.invoke (server_socket.clj:38) clojure.lang.AFn.run (AFn.java:24) java.lang.Thread.run (Thread.java:680) Caused by: java.io.FileNotFoundException: /Users/sridharr/as/stackato-dashboard (No such file or directory) at java.io.FileInputStream.open (FileInputStream.java:-2) java.io.FileInputStream. (FileInputStream.java:120) java.io.FileInputStream. (FileInputStream.java:79) clojure.lang.Compiler.loadFile (Compiler.java:5817) clojure.lang.RT$3.invoke (RT.java:296) bake3354$eval337$fn__338.invoke (NO_SOURCE_FILE:0) clojure.lang.AFn.applyToHelper (AFn.java:167) clojure.lang.AFn.applyTo (AFn.java:151) clojure.core$apply.invoke (core.clj:540) clojure.core$eval325$fn__326.invoke (NO_SOURCE_FILE:0) sun.reflect.NativeMethodAccessorImpl.invoke0 (NativeMethodAccessorImpl.java:-2) sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke (Method.java:597) clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:90) clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28) classlojure$eval_in$fn__1114.invoke (classlojure.clj:59) classlojure$eval_in.doInvoke (classlojure.clj:52) clojure.lang.RestFn.applyTo (RestFn.java:143) clojure.core$apply.doInvoke (core.clj:548) clojure.lang.RestFn.invoke (RestFn.java:534) cake.project$project_eval.invoke (project.clj:114) cake.tasks.eval$task_run2703.invoke (eval.clj:36) clojure.lang.Var.invoke (Var.java:365) cake.task$run_actions$iter__660__664$fn__665$fn__666.invoke (task.clj:154) cake.task$run_actions$iter__660__664$fn__665.invoke (task.clj:153) clojure.lang.LazySeq.sval (LazySeq.java:42) clojure.lang.LazySeq.seq (LazySeq.java:56) clojure.lang.RT.seq (RT.java:450) clojure.core$seq.invoke (core.clj:122) clojure.core$dorun.invoke (core.clj:2450) clojure.core$doall.invoke (core.clj:2465) cake.task$run_actions.invoke (task.clj:153) cake.task$run_task$fn__685.invoke (task.clj:185) cake.task$run_task.invoke (task.clj:182) cake.task$run_task.invoke (task.clj:175) cake.main$process_command.invoke (main.clj:25) cake.server$create$fn__3323.invoke (server.clj:70) cake.utils.server_socket$accept_fn$fn__3060$fn__3063.invoke (server_socket.clj:39) cake.utils.server_socket$accept_fn$fn__3060.invoke (server_socket.clj:38) clojure.lang.AFn.run (AFn.java:24) java.lang.Thread.run (Thread.java:680)
What version of cake are you using? I get an entirely different error when I run that command:
raynes:cake anthony$ cake run
/Users/anthony/bin/cake:569:in `expand_path': can't convert nil into String (TypeError)
from /Users/anthony/bin/cake:569
This is running off of the current develop version of cake.
I get the same as srid with 0.6.3.