We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(osx 12.2.1, babashka 0.80)
I created a little tarball (this assumes that it gets untarred in the /tmp directory:
foo.tar.gz
to demonstrate getting this stack trace:
$ bb -cp . foo.clj Testing time-test ERROR in (local-time-from-args-works) (/tmp/foo/time_test.clj:) expected: (= "something" (target-instant "cst" "2022-05-05" "07:55:52,769")) actual: java.lang.ClassCastException: java.time.ZoneRegion cannot be cast to java.time.format.DateTimeFormatter at sci.impl.Reflector.boxArg (Reflector.java:557) sci.impl.Reflector.boxArgs (Reflector.java:590) sci.impl.Reflector.invokeMatchingMethod (Reflector.java:137) sci.impl.Reflector.invokeStaticMethod (Reflector.java:337) sci.impl.interop$invoke_static_method.invokeStatic (interop.cljc:60) sci.impl.evaluator$eval_static_method_invocation.invokeStatic (evaluator.cljc:150) sci.impl.analyzer$analyze_dot$reify__9360.eval (analyzer.cljc:833) sci.impl.evaluator$eval_let$fn__7086.invoke (evaluator.cljc:65) sci.impl.evaluator$eval_let.invokeStatic (evaluator.cljc:56) sci.impl.analyzer$analyze_let_STAR_$reify__9247.eval (analyzer.cljc:503) sci.impl.fns$fun$arity_3__7915.invoke (fns.cljc:108) sci.impl.vars.SciVar.invoke (vars.cljc:329) sci.impl.analyzer$return_call$reify__9583.eval (analyzer.cljc:1180) sci.impl.analyzer$return_if$reify__9296.eval (analyzer.cljc:667) sci.impl.analyzer$return_if$reify__9296.eval (analyzer.cljc:668) sci.impl.evaluator$eval_let$fn__7086.invoke (evaluator.cljc:65) sci.impl.evaluator$eval_let.invokeStatic (evaluator.cljc:56) sci.impl.analyzer$analyze_let_STAR_$reify__9247.eval (analyzer.cljc:503) sci.impl.fns$fun$arity_0__7390.doInvoke (fns.cljc:83) clojure.lang.RestFn.invoke (RestFn.java:436) sci.impl.vars.SciVar.invoke (vars.cljc:329) sci.impl.analyzer$return_call$reify__9583.eval (analyzer.cljc:1180) sci.impl.analyzer$return_call$reify__9579.eval (analyzer.cljc:1180) sci.impl.evaluator$eval_let$fn__7086.invoke (evaluator.cljc:65) sci.impl.evaluator$eval_let.invokeStatic (evaluator.cljc:56) sci.impl.analyzer$analyze_let_STAR_$reify__9247.eval (analyzer.cljc:503) sci.impl.evaluator$eval_try.invokeStatic (evaluator.cljc:125) sci.impl.analyzer$analyze_try$reify__9330.eval (analyzer.cljc:758) sci.impl.analyzer$return_do$reify__8610.eval (analyzer.cljc:136) sci.impl.fns$fun$arity_0__7894.invoke (fns.cljc:105) sci.impl.namespaces$sci_with_redefs_fn.invokeStatic (namespaces.cljc:698) sci.impl.namespaces$sci_with_redefs_fn.invoke (namespaces.cljc:689) sci.impl.vars.SciVar.invoke (vars.cljc:327) sci.impl.analyzer$return_call$reify__9579.eval (analyzer.cljc:1180) sci.impl.fns$fun$arity_0__7894.invoke (fns.cljc:105) babashka.impl.clojure.test$test_var_impl$fn__34602.invoke (test.clj:719) babashka.impl.clojure.test$test_var_impl.invokeStatic (test.clj:719) babashka.impl.clojure.test$test_var_impl.invoke (test.clj:710) sci.impl.vars.SciVar.invoke (vars.cljc:325) babashka.impl.clojure.test$test_vars$fn__34639$fn__34644.invoke (test.clj:742) babashka.impl.clojure.test$default_fixture.invokeStatic (test.clj:689) babashka.impl.clojure.test$default_fixture.invoke (test.clj:685) babashka.impl.clojure.test$test_vars$fn__34639.invoke (test.clj:742) babashka.impl.clojure.test$default_fixture.invokeStatic (test.clj:689) babashka.impl.clojure.test$default_fixture.invoke (test.clj:685) babashka.impl.clojure.test$test_vars.invokeStatic (test.clj:738) babashka.impl.clojure.test$test_all_vars.invokeStatic (test.clj:745) babashka.impl.clojure.test$test_ns.invokeStatic (test.clj:767) babashka.impl.clojure.test$run_tests$fn__34659.invoke (test.clj:784) clojure.core$map$fn__5935.invoke (core.clj:2772) clojure.lang.LazySeq.sval (LazySeq.java:42) clojure.lang.LazySeq.seq (LazySeq.java:51) clojure.lang.Cons.next (Cons.java:39) clojure.lang.RT.boundedLength (RT.java:1790) clojure.lang.RestFn.applyTo (RestFn.java:130) clojure.core$apply.invokeStatic (core.clj:669) babashka.impl.clojure.test$run_tests.invokeStatic (test.clj:777) babashka.impl.clojure.test$run_tests.doInvoke (test.clj:777) clojure.lang.RestFn.applyTo (RestFn.java:139) clojure.core$apply.invokeStatic (core.clj:669) babashka.impl.test$contextualize$fn__34670.doInvoke (test.clj:7) clojure.lang.RestFn.invoke (RestFn.java:408) sci.impl.vars.SciVar.invoke (vars.cljc:325) sci.impl.analyzer$return_call$reify__9575.eval (analyzer.cljc:1180) sci.impl.evaluator$eval_let.invokeStatic (evaluator.cljc:74) sci.impl.analyzer$analyze_let_STAR_$reify__9247.eval (analyzer.cljc:503) sci.impl.interpreter$eval_form.invokeStatic (interpreter.cljc:39) sci.impl.interpreter$eval_string_STAR_.invokeStatic (interpreter.cljc:61) sci.core$eval_string_STAR_.invokeStatic (core.cljc:237) babashka.main$exec$fn__35890$fn__35891.invoke (main.clj:902) babashka.main$exec$fn__35890.invoke (main.clj:902) babashka.main$exec.invokeStatic (main.clj:892) babashka.main$main.invokeStatic (main.clj:992) babashka.main$main.doInvoke (main.clj:967) clojure.lang.RestFn.applyTo (RestFn.java:137) clojure.core$apply.invokeStatic (core.clj:667) babashka.main$_main.invokeStatic (main.clj:1025) babashka.main$_main.doInvoke (main.clj:1017) clojure.lang.RestFn.applyTo (RestFn.java:137) babashka.main.main (:-1) Ran 1 tests containing 2 assertions. 0 failures, 1 errors. {:test 1, :pass 1, :fail 0, :error 1, :type :summary}
expected behavior: I would have expected to see time_test and commands.time in the stacktrace somewhere, pointing to this line (17) in commands.time:
time_test
commands.time
local-time (LocalTime/parse time tz)
Perhaps because of the load-file it isn't possible, but @borkdude asked me to submit an issue, so here it is :) Hope this helps.
load-file
The text was updated successfully, but these errors were encountered:
No branches or pull requests
(osx 12.2.1, babashka 0.80)
I created a little tarball (this assumes that it gets untarred in the /tmp directory:
foo.tar.gz
to demonstrate getting this stack trace:
expected behavior: I would have expected to see
time_test
andcommands.time
in the stacktrace somewhere, pointing to this line (17) incommands.time
:Perhaps because of the
load-file
it isn't possible, but @borkdude asked me to submit an issue, so here it is :) Hope this helps.The text was updated successfully, but these errors were encountered: