This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-17
Channels
- # beginners (42)
- # cider (1)
- # cljs-dev (20)
- # clojure (73)
- # clojure-italy (8)
- # clojure-nl (53)
- # clojure-spec (11)
- # clojure-uk (88)
- # clojurescript (170)
- # clojutre (6)
- # core-async (26)
- # css (2)
- # cursive (13)
- # data-science (10)
- # datomic (15)
- # editors (3)
- # figwheel (28)
- # figwheel-main (67)
- # fulcro (57)
- # graphql (2)
- # immutant (2)
- # jobs (1)
- # jvm (4)
- # lein-figwheel (3)
- # leiningen (1)
- # off-topic (5)
- # pedestal (28)
- # re-frame (86)
- # reagent (18)
- # reitit (8)
- # ring (3)
- # ring-swagger (2)
- # shadow-cljs (78)
- # spacemacs (10)
- # specter (12)
- # tools-deps (32)
- # vim (3)
I’m trying to add swagger docs to my endpoints in a project using fig wheel. When I run figwheel from the command line it works. But, if I use figwheel in the cursive repl as documented here: https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL I get this error
any idea what is causing this? I’m having trouble identifying the right part of the stacktrace to investigate.
So the issue seems to be that lein figwheel dev is using lein-figwheel plugin vs start-figwheel! is using figwheel_sidecar
@lumpy a common mistake when using sidecar is not having an environment that matches your figwheel environment
you often need to make sure that you have your cljs source code on the classpath as well as the same dependencies that you have when you run lein figwheel
I guess I don’t know how lein figwheel would get access to dependencies that sidecar doesn’t all are managed through project.clj
@lumpy well I know for sure that lein figwheel
adds the :source-paths
from your cljs builds to the classpath.
so to start you could add your cljs :source-paths
to the top level :source-paths
and see if that makes a difference
hmm, those are already the same, actually top level had “script” added where cljs didn’t have that
anyway a different selection of dependencies can sometimes shuffle the resulting transitive dependencies to the point where you have a conflict
but the less magic from lein and plugins can make things more understandable, but less easy at first
I don’t think it’s using lein since the use clojure main in normal JVM process
is selected