Created
July 30, 2025 14:36
-
-
Save jyn514/2ae5b11e607a41069d7792aaaee2a35b to your computer and use it in GitHub Desktop.
hiccup + SCI + clojure + graal syntax error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread "main" clojure.lang.ExceptionInfo: Syntax error compiling fn* at (0:0). {:type :sci/error, :line 1, :column 1, :message "Syntax error compiling fn* at (0:0).", :sci.impl/callstack #object[clojure.lang.Volatile 0x71bca854 {:status :ready, :val ({:ns #object[sci.lang.Namespace 0x373a6109 "user"], :file nil, :sci.impl/f-meta nil} {:ns #object[sci.lang.Namespace 0x373a6109 "user"], :file nil, :sci.impl/f-meta nil} {:ns #object[sci.lang.Namespace 0x373a6109 "user"], :file nil, :sci.impl/f-meta {:name eval, :doc "Evaluates the form data structure (not text!) and returns the result.", :arglists ([form]), :sci/built-in true, :ns #object[sci.lang.Namespace 0x1562e300 "clojure.core"]}} {:line 1, :column 1, :ns #object[sci.lang.Namespace 0x373a6109 "user"], :file nil} {:line 1, :column 1, :ns #object[sci.lang.Namespace 0x373a6109 "user"], :file nil, :sci.impl/f-meta {:ns #object[sci.lang.Namespace 0x32eff675 "hiccup2.core"], :name html, :macro true, :doc "Render Clojure data structures to a compiled representation of HTML. To turn\n the representation into a string, use clojure.core/str. Strings inside the\n macro are automatically HTML-escaped. To insert a string without it being\n escaped, use the [[raw]] function.\n\n A literal option map may be specified as the first argument. It accepts two\n keys that control how the HTML is outputted:\n\n `:mode`\n : One of `:html`, `:xhtml`, `:xml` or `:sgml` (defaults to `:xhtml`).\n Controls how tags are rendered.\n\n `:escape-strings?`\n : True if strings should be escaped (defaults to true).", :arglists ([options & content])}})}], :file nil} | |
at sci.impl.utils$rethrow_with_location_of_node.invokeStatic(utils.cljc:148) | |
at sci.impl.utils$rethrow_with_location_of_node.invoke(utils.cljc:98) | |
at sci.impl.utils$rethrow_with_location_of_node.invokeStatic(utils.cljc:99) | |
at sci.impl.utils$rethrow_with_location_of_node.invoke(utils.cljc:98) | |
at sci.impl.analyzer$analyze_call.invokeStatic(analyzer.cljc:1667) | |
at sci.impl.analyzer$analyze_call.invoke(analyzer.cljc:1495) | |
at sci.impl.analyzer$analyze.invokeStatic(analyzer.cljc:1854) | |
at sci.impl.analyzer$analyze.invoke(analyzer.cljc:1815) | |
at sci.impl.interpreter$eval_form_STAR_.invokeStatic(interpreter.cljc:38) | |
at sci.impl.interpreter$eval_form_STAR_.invoke(interpreter.cljc:16) | |
at sci.impl.interpreter$eval_form.invokeStatic(interpreter.cljc:64) | |
at sci.impl.interpreter$eval_form.invoke(interpreter.cljc:62) | |
at sci.impl.utils$eval.invokeStatic(utils.cljc:205) | |
at sci.impl.utils$eval.invoke(utils.cljc:204) | |
at sci.impl.namespaces$eval_STAR_.invokeStatic(namespaces.cljc:1117) | |
at sci.impl.namespaces$eval_STAR_.invoke(namespaces.cljc:1115) | |
at sci.lang.Var.invoke(lang.cljc:209) | |
at sci.impl.analyzer$return_call$reify__5930.eval(analyzer.cljc:1403) | |
at sci.impl.analyzer$return_call$reify__5930.eval(analyzer.cljc:1403) | |
at sci.impl.interpreter$eval_form_STAR_.invokeStatic(interpreter.cljc:44) | |
at sci.impl.interpreter$eval_form_STAR_.invoke(interpreter.cljc:16) | |
at sci.impl.interpreter$eval_form.invokeStatic(interpreter.cljc:64) | |
at sci.impl.interpreter$eval_form.invoke(interpreter.cljc:62) | |
at sci.core$eval_form.invokeStatic(core.cljc:350) | |
at sci.core$eval_form.invoke(core.cljc:343) | |
at flower.core$eval_form.invokeStatic(core.clj:108) | |
at flower.core$eval_form.invoke(core.clj:102) | |
at flower.core$seval.invokeStatic(core.clj:111) | |
at flower.core$seval.invoke(core.clj:110) | |
at flower.core$teval$fn__8518.invoke(core.clj:134) | |
at clojure.lang.AFn.applyToHelper(AFn.java:154) | |
at clojure.lang.AFn.applyTo(AFn.java:144) | |
at clojure.core$apply.invokeStatic(core.clj:667) | |
at clojure.core$apply.invoke(core.clj:662) | |
at instaparse.transform$hiccup_transform.invokeStatic(transform.clj:38) | |
at instaparse.transform$hiccup_transform.invoke(transform.clj:33) | |
at clojure.core$partial$fn__5927.invoke(core.clj:2641) | |
at clojure.core$map$fn__5954.invoke(core.clj:2770) | |
at clojure.lang.LazySeq.force(LazySeq.java:50) | |
at clojure.lang.LazySeq.realize(LazySeq.java:89) | |
at clojure.lang.LazySeq.seq(LazySeq.java:106) | |
at clojure.lang.RT.seq(RT.java:555) | |
at clojure.core$seq__5486.invokeStatic(core.clj:139) | |
at clojure.core$apply.invokeStatic(core.clj:662) | |
at clojure.core$apply.invoke(core.clj:662) | |
at instaparse.transform$hiccup_transform.invokeStatic(transform.clj:38) | |
at instaparse.transform$hiccup_transform.invoke(transform.clj:33) | |
at instaparse.transform$transform.invokeStatic(transform.clj:68) | |
at instaparse.transform$transform.invoke(transform.clj:48) | |
at flower.core$teval.invokeStatic(core.clj:128) | |
at flower.core$teval.invoke(core.clj:125) | |
at flower.core$render.invokeStatic(core.clj:143) | |
at flower.core$render.invoke(core.clj:137) | |
at flower.core$render_page.invokeStatic(core.clj:162) | |
at flower.core$render_page.invoke(core.clj:157) | |
at flower.core$render_page.invokeStatic(core.clj:159) | |
at flower.core$render_page.invoke(core.clj:157) | |
at clojure.lang.AFn.applyToHelper(AFn.java:154) | |
at clojure.lang.AFn.applyTo(AFn.java:144) | |
at clojure.core$apply.invokeStatic(core.clj:669) | |
at clojure.core$apply.invoke(core.clj:662) | |
at flower.core$map_json.invokeStatic(core.clj:300) | |
at flower.core$map_json.doInvoke(core.clj:292) | |
at clojure.lang.RestFn.invoke(RestFn.java:413) | |
at flower.core$_main.invokeStatic(core.clj:307) | |
at flower.core$_main.doInvoke(core.clj:303) | |
at clojure.lang.RestFn.applyTo(RestFn.java:140) | |
at flower.core.main(Unknown Source) | |
at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH) | |
Caused by: Syntax error compiling fn* at (0:0). | |
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7638) | |
at clojure.lang.Compiler.analyze(Compiler.java:7321) | |
at clojure.lang.Compiler.eval(Compiler.java:7697) | |
at clojure.lang.Compiler.eval(Compiler.java:7655) | |
at clojure.core$eval.invokeStatic(core.clj:3232) | |
at clojure.core$eval.invoke(core.clj:3228) | |
at hiccup.compiler$fn__458.invokeStatic(compiler.clj:318) | |
at hiccup.compiler$fn__458.invoke(compiler.clj:316) | |
at clojure.lang.MultiFn.invoke(MultiFn.java:229) | |
at hiccup.compiler$compile_seq$iter__500__504$fn__505.invoke(compiler.clj:378) | |
at clojure.lang.LazySeq.force(LazySeq.java:50) | |
at clojure.lang.LazySeq.realize(LazySeq.java:89) | |
at clojure.lang.LazySeq.seq(LazySeq.java:106) | |
at clojure.lang.RT.seq(RT.java:555) | |
at clojure.core$seq__5486.invokeStatic(core.clj:139) | |
at clojure.core$dorun.invokeStatic(core.clj:3141) | |
at clojure.core$doall.invokeStatic(core.clj:3156) | |
at clojure.core$doall.invoke(core.clj:3156) | |
at hiccup.compiler$compile_seq.invokeStatic(compiler.clj:376) | |
at hiccup.compiler$compile_seq.invoke(compiler.clj:373) | |
at hiccup.compiler$compile_html.invokeStatic(compiler.clj:406) | |
at hiccup.compiler$compile_html.doInvoke(compiler.clj:403) | |
at clojure.lang.RestFn.applyTo(RestFn.java:140) | |
at clojure.core$apply.invokeStatic(core.clj:667) | |
at clojure.core$apply.invoke(core.clj:662) | |
at hiccup.compiler$compile_html_with_bindings$step1__532.invoke(compiler.clj:433) | |
at hiccup.compiler$binding_STAR_.invokeStatic(compiler.clj:410) | |
at hiccup.compiler$binding_STAR_.invoke(compiler.clj:408) | |
at hiccup.compiler$compile_multi$fn__523.invoke(compiler.clj:416) | |
at clojure.core$map$fn__5954.invoke(core.clj:2770) | |
at clojure.lang.LazySeq.force(LazySeq.java:50) | |
at clojure.lang.LazySeq.realize(LazySeq.java:89) | |
at clojure.lang.LazySeq.seq(LazySeq.java:106) | |
at clojure.lang.RT.seq(RT.java:555) | |
at clojure.core$seq__5486.invokeStatic(core.clj:139) | |
at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:24) | |
at clojure.core.protocols$fn__8262.invokeStatic(protocols.clj:74) | |
at clojure.core.protocols$fn__8262.invoke(protocols.clj:74) | |
at clojure.core.protocols$fn__8203$G__8198__8216.invoke(protocols.clj:13) | |
at clojure.core$reduce.invokeStatic(core.clj:6965) | |
at clojure.core$into.invokeStatic(core.clj:7038) | |
at clojure.core$into.invoke(core.clj:7029) | |
at hiccup.compiler$compile_multi.invokeStatic(compiler.clj:417) | |
at hiccup.compiler$compile_multi.invoke(compiler.clj:413) | |
at hiccup.compiler$compile_html_with_bindings$step2__534.invoke(compiler.clj:434) | |
at hiccup.compiler$binding_STAR_.invokeStatic(compiler.clj:410) | |
at hiccup.compiler$binding_STAR_.invoke(compiler.clj:408) | |
at hiccup.compiler$compile_multi$fn__523.invoke(compiler.clj:416) | |
at clojure.core$map$fn__5954.invoke(core.clj:2770) | |
at clojure.lang.LazySeq.force(LazySeq.java:50) | |
at clojure.lang.LazySeq.realize(LazySeq.java:89) | |
at clojure.lang.LazySeq.seq(LazySeq.java:106) | |
at clojure.lang.RT.seq(RT.java:555) | |
at clojure.core$seq__5486.invokeStatic(core.clj:139) | |
at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:24) | |
at clojure.core.protocols$fn__8262.invokeStatic(protocols.clj:74) | |
at clojure.core.protocols$fn__8262.invoke(protocols.clj:74) | |
at clojure.core.protocols$fn__8203$G__8198__8216.invoke(protocols.clj:13) | |
at clojure.core$reduce.invokeStatic(core.clj:6965) | |
at clojure.core$into.invokeStatic(core.clj:7038) | |
at clojure.core$into.invoke(core.clj:7029) | |
at hiccup.compiler$compile_multi.invokeStatic(compiler.clj:417) | |
at hiccup.compiler$compile_multi.invoke(compiler.clj:413) | |
at hiccup.compiler$compile_html_with_bindings$step3__536.invoke(compiler.clj:435) | |
at hiccup.compiler$compile_html_with_bindings.invokeStatic(compiler.clj:436) | |
at hiccup.compiler$compile_html_with_bindings.doInvoke(compiler.clj:429) | |
at clojure.lang.RestFn.applyTo(RestFn.java:140) | |
at clojure.core$apply.invokeStatic(core.clj:669) | |
at clojure.core$apply.invoke(core.clj:662) | |
at hiccup2.core$html.invokeStatic(core.clj:31) | |
at hiccup2.core$html.doInvoke(core.clj:8) | |
at clojure.lang.RestFn.invoke(RestFn.java:448) | |
at clojure.lang.AFn.applyToHelper(AFn.java:160) | |
at clojure.lang.RestFn.applyTo(RestFn.java:135) | |
at clojure.core$apply.invokeStatic(core.clj:667) | |
at clojure.core$apply.invoke(core.clj:662) | |
at sci.lang.Var.applyTo(lang.cljc:252) | |
at clojure.core$apply.invokeStatic(core.clj:671) | |
at clojure.core$apply.invoke(core.clj:662) | |
at sci.impl.analyzer$analyze_call.invokeStatic(analyzer.cljc:1603) | |
... 64 more | |
Caused by: java.lang.UnsupportedOperationException: Crema | |
at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.unimplemented(VMError.java:195) | |
at org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk.ClassLoaderHelper.defineClass(Target_java_lang_ClassLoader.java:330) | |
at [email protected]/java.lang.ClassLoader.defineClass(ClassLoader.java:271) | |
at [email protected]/java.lang.ClassLoader.defineClass(ClassLoader.java:265) | |
at clojure.lang.DynamicClassLoader.defineClass(DynamicClassLoader.java:46) | |
at clojure.lang.Compiler$ObjExpr.getCompiledClass(Compiler.java:5503) | |
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:4633) | |
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7628) | |
... 143 more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment