This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-05
Channels
- # adventofcode (89)
- # announcements (9)
- # babashka (11)
- # beginners (8)
- # biff (5)
- # calva (4)
- # cherry (121)
- # clara (15)
- # clerk (16)
- # clj-kondo (20)
- # clj-otel (2)
- # cljdoc (20)
- # clojure (84)
- # clojure-austin (1)
- # clojure-bay-area (3)
- # clojure-berlin (1)
- # clojure-czech (2)
- # clojure-europe (59)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-poland (1)
- # clojure-uk (15)
- # cursive (16)
- # datomic (46)
- # events (3)
- # fulcro (85)
- # graalvm (20)
- # hyperfiddle (11)
- # improve-getting-started (1)
- # lsp (7)
- # off-topic (48)
- # overtone (8)
- # podcasts-discuss (4)
- # re-frame (31)
- # releases (1)
- # ring (12)
- # sci (13)
- # shadow-cljs (8)
- # specter (3)
- # squint (26)
- # xtdb (5)
- # yamlscript (6)
I'm having what seem to be random build failures using SCI with shadow-cljs. The weird things is that just re-running the build (even just forcing a re-compile) often resolves the issue. I don't know where to even begin to try and debug this.
[:main] Build failure:
------ ERROR -------------------------------------------------------------------
File: jar:file:/Users/filip/.m2/repository/org/babashka/sci/0.8.41/sci-0.8.41.jar!/sci/core.cljc
failed to require macro-ns "sci.core", it was required by "sci.core"
Error in phase :compile-syntax-check
RuntimeException: No such var: opts/init
[:main] Build failure:
------ ERROR -------------------------------------------------------------------
File: jar:file:/Users/filip/.m2/repository/org/babashka/sci/0.8.41/sci-0.8.41.jar!/sci/impl/analyzer.cljc:1:1
--------------------------------------------------------------------------------
1 | (ns sci.impl.analyzer
-------^------------------------------------------------------------------------
Invalid :refer, macro sci.impl.analyzer/gen-return-binding-call does not exist
--------------------------------------------------------------------------------
2 | {:no-doc true
3 | :clj-kondo/config '{:linters {:unresolved-symbol {:exclude [ctx this bindings]}}}}
4 | (:refer-clojure :exclude [destructure macroexpand macroexpand-all macroexpand-1])
5 | (:require
--------------------------------------------------------------------------------
1 | (ns sci.impl.analyzer
-------^------------------------------------------------------------------------
Invalid :refer, macro sci.impl.analyzer/gen-return-recur does not exist
--------------------------------------------------------------------------------
@U02E9K53C9L repro welcome. could this be a caching issue? delete .shadow-cljs
in doubt. also, are you perhaps using a user.clj
?
I saw that, but am not using user.clj
. So it seems deleting .shadow.cljs
does resolve the issue – the build compiles every time after I delete it. But the next build (without delete) reproduces the issue.
I’m using shadow with sci in several projects but never saw this. Is your project public ?
It was user.clj
, just through Calva's https://calva.io/connect-sequences/#settings-for-adding-custom-sequences. I must have been requiring nses that depend on the nses that use sci.core
.