This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-24
Channels
- # announcements (5)
- # aws (24)
- # babashka (41)
- # beginners (130)
- # bristol-clojurians (2)
- # calva (39)
- # chlorine-clover (64)
- # cider (30)
- # clojure (202)
- # clojure-belgium (1)
- # clojure-dev (99)
- # clojure-europe (5)
- # clojure-hungary (4)
- # clojure-italy (10)
- # clojure-losangeles (8)
- # clojure-nl (11)
- # clojure-norway (6)
- # clojure-spec (7)
- # clojure-uk (12)
- # clojurescript (52)
- # core-typed (26)
- # cursive (19)
- # data-science (19)
- # datomic (19)
- # duct (10)
- # emacs (17)
- # fulcro (22)
- # graalvm (11)
- # jobs (3)
- # kaocha (28)
- # leiningen (6)
- # lumo (2)
- # malli (10)
- # nrepl (2)
- # off-topic (23)
- # pathom (2)
- # pedestal (7)
- # re-frame (3)
- # reagent (30)
- # reitit (2)
- # remote-jobs (2)
- # shadow-cljs (77)
- # sql (10)
- # test-check (22)
- # tools-deps (37)
- # vscode (1)
- # yada (3)
When trying to migrate from duct/core "0.7.0
" to "0.8.0
", I get an error when launching repl
in cider
- "Syntax error (FileNotFoundException) compiling at (repl.clj:1:1). Could not locate hawk/core__init.class, hawk/core.clj or hawk/core.cljc on classpath."
If i manually include hawk
dependency in project.clj
, then it works.
i.e. hawk is considered a dev dependency and, so to avoid cluttering up your production builds with hawk, it's defined as a "provided" dependency - i.e. one that you must include yourself (presumably as a dev dependency).
Ah! I see. was not mentioned anywhere, so I was not sure if there was something in my setup causing the error. Thanks for pointing it out. Cheers
This needs to be added in the new lein template. As well as the new core version. That will prevent this issue for new users at least
Apparently this has already been added. But there hasn't been a release for the new template. https://github.com/duct-framework/duct/blob/16b739e2e1ce92ac1060ccd907a35b4c2bb1ef56/lein-template/resources/leiningen/new/duct/base/project.clj#L24
Maybe @U0BKWMG5B could consider making a new release so other people won't bump into this issue?
I've noticed some strange behavior occasionally, and I'm wondering if anyone else has hit something like this. For note, I'm on duct.core 0.6.2
; but I've noticed that somehow an init-key
, that returns a reify
'd protocol, ends up being nil
, and then subsequent calls to those protocol methods end up failing with No implementation of method: -foo ... found for class: nil
. Does any of this (or some impl detail of reify
) ring a bell to anyone?
I haven’t noticed anything like that.