This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-12
Channels
- # adventofcode (1)
- # announcements (1)
- # atom-editor (4)
- # aws (4)
- # babashka (7)
- # beginners (46)
- # biff (14)
- # calva (11)
- # cljdoc (2)
- # clojure (78)
- # clojure-art (1)
- # clojure-austin (1)
- # clojure-europe (50)
- # clojure-nl (2)
- # clojure-norway (22)
- # clojure-spec (2)
- # clojure-uk (2)
- # clojurescript (72)
- # conjure (6)
- # core-typed (6)
- # eastwood (4)
- # events (1)
- # figwheel-main (11)
- # fulcro (1)
- # guix (1)
- # helix (13)
- # jobs (2)
- # jobs-discuss (4)
- # kaocha (2)
- # malli (5)
- # off-topic (7)
- # pathom (22)
- # pedestal (9)
- # re-frame (29)
- # reagent (7)
- # releases (2)
- # remote-jobs (1)
- # rewrite-clj (12)
- # shadow-cljs (44)
- # sql (13)
- # squint (2)
- # xtdb (17)
I'm migrating a large project from figwheel to figwheel-main. Still a very, very long way to go, but I have a question: figwheel-main seems to start on its own, plugging itself into "lein repl" somehow (not sure how). But I would like to prevent it from doing that: I want to start the clj REPL, and then start figwheel-main through the API (figwheel.main.api/start), with the full configuration supplied there. How do I prevent it from starting sooner than that?
@jrychter It doesn't start on its own for me (when doing "lein repl"). You can try with the demo project: https://github.com/bhauman/flappy-bird-demo-new
Hmm, that's intriguing. Indeed it doesn't start in the flappy-bird-demo-new project, but it does for me. I have to figure out what in project.clj might cause it to start.
Got it! Rather silly: it was a :init entry in :repl-options elsewhere in project.clj.
Moving forward, I think, but…
[Figwheel] Compiling build dev to "target/public/cljs-out/dev-main.js"
[Figwheel] Successfully compiled build dev to "target/public/cljs-out/dev-main.js" in 5.266 seconds.
[Figwheel] Watching paths: ("src/cljs" "src/cljc" "env/dev/cljs" "test/cljc") to compile build - dev
[Figwheel:SEVERE] Can't obtain class com.sun.jna.Pointer
Execution error (ExceptionInInitializerError) at com.sun.jna.Native/initIDs (Native.java:-2).
Exception java.lang.UnsatisfiedLinkError: Can't obtain class com.sun.jna.Pointer [in thread "nREPL-session-f7636e87-9d5b-4fc7-9d6d-815e5b1c9053"]
M1 Mac, perhaps? Are you using the latest version of figwheel-main? The file watcher was updated a while back to avoid problems on various OS/chipsets with the legacy file watcher @jrychter
Yes, M1 Mac, but this particular problem went away, I think when I removed this line :nrepl-middleware [cider.piggieback/wrap-cljs-repl]
Cool. Glad you got it figured out.
The insistence on pre-defined output paths is causing me major headaches… It's going to be even more work than I thought to migrate to figwheel-main.