This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-01
Channels
- # announcements (53)
- # babashka (27)
- # beginners (103)
- # biff (1)
- # calva (21)
- # cider (5)
- # circleci (12)
- # clj-kondo (7)
- # cljfx (3)
- # cljsrn (9)
- # clojure (25)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-uk (21)
- # clojured (1)
- # clojurescript (49)
- # cursive (20)
- # datomic (33)
- # events (3)
- # fulcro (39)
- # graalvm (20)
- # graphql (2)
- # introduce-yourself (1)
- # jobs (14)
- # keechma (3)
- # lsp (34)
- # malli (18)
- # meander (15)
- # off-topic (30)
- # polylith (10)
- # re-frame (21)
- # releases (2)
- # remote-jobs (5)
- # sci (10)
- # shadow-cljs (16)
- # tools-deps (2)
- # vim (6)
I have an "sci" application that is also using "specter". Does "specter" work with GraalVM and "sci"? I'm getting the following when I execute the native application: Exception in thread "main" Syntax error macroexpanding clojure.core/let at (0:0). at clojure.lang.Compiler.checkSpecs(Compiler.java:6976) ... more clojure.lang stuff at com.rpl.specter.impl$closed_code.invokeStatic(impl.cljc:625) ... more com.rpl.specter and clojure.lang stuff at hmidl.semantics$get_access_levels.invokeStatic(semantics.clj:198) ... more hmidl stuff (i.e., My application) at clojure.lang.RestFn.applyTo(RestFn.java:137) at hmidl.core.main(Unknown Source) Caused by: java.io.FileNotFoundException: Could not locate clojure/spec/alpha__init.class, clojure/spec/alpha.clj or clojure/spec/alpha.cljc on classpath. at clojure.lang.RT.load(RT.java:462) at clojure.lang.RT.load(RT.java:424) at clojure.lang.Compiler.ensureMacroCheck(Compiler.java:6961) at clojure.lang.Compiler.checkSpecs(Compiler.java:6974) ... 53 more
I have tried this a long time ago, but there were some incompatibilities back then. Specter might need some special attention as it does some side-effecting stuff during macro-expansion.
I'm getting :
class clojure.lang.PersistentArrayMap cannot be cast to class java.lang.Number (clojure.lang.PersistentArrayMap is in unnamed module of loader 'app'; java.lang.Number is in module java.base of loader 'bootstrap')
with this updated gist:
https://gist.github.com/borkdude/f6abcb0ff4183df559345503cb9c621c
I don't have time now but with some extra effort, might be able to figure out what's happening...I've been addressing other issues, and just got back to this. Before I saw your new work on Specter, I had already removed Specter from my application, and coded a different solution. My application is working great as both a Linux and Windows native application. I need to look closer at the work you did for future reference.