This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-10
Channels
- # aws (39)
- # babashka (4)
- # beginners (5)
- # biff (25)
- # cider (14)
- # clj-on-windows (40)
- # clojure-europe (36)
- # clojure-gamedev (1)
- # clojure-losangeles (4)
- # clojure-norway (51)
- # clojure-spec (5)
- # clojure-uk (2)
- # clojurescript (2)
- # clr (176)
- # data-science (10)
- # datalevin (17)
- # datomic (7)
- # deps-new (4)
- # docs (3)
- # emacs (12)
- # figwheel (3)
- # figwheel-main (5)
- # hyperfiddle (20)
- # instaparse (3)
- # introduce-yourself (8)
- # lsp (66)
- # malli (43)
- # off-topic (4)
- # rdf (11)
- # reagent (5)
- # releases (2)
- # sci (11)
- # shadow-cljs (24)
- # slack-help (2)
- # specter (7)
- # tools-deps (3)
- # xtdb (48)
I'm currently stuck with figwheel - not figwheel-main - at my work project, and I'm having an issue running the REPL. I asked in #figwheel a week ago and got no replies.
So, I'm sorry if it's off-topic to ask here, but I'm unsure of where else to ask.
When I run lein figwheel my-profile
int he terminal, I get the following error (part of a long, long stacktrace):
Caused by: java.lang.UnsatisfiedLinkError: /private/var/folders/k4/6_gfzwc524xfk3r_blf6qqm80000gn/T/jna5990386747980808100.tmp: dlopen(/private/var/folders/k4/6_gfzwc524xfk3r_blf6qqm80000gn/T/jna5990386747980808100.tmp, 0x0001): tried: '/private/var/folders/k4/6_gfzwc524xfk3r_blf6qqm80000gn/T/jna5990386747980808100.tmp' (fat file, but missing compatible architecture (have (unknown,i386,x86_64), need (arm64e)))
I assume it's to do with a version mismatch of Java and my M1 Mac - the process is running a non-M1 version (unknown,i386,x86_64)
and needs a M1-compatible version (arm64e)
. Thing is, I've only installed openjdk20 of the latter kind:
% file $(brew --prefix openjdk)/bin/java
/opt/homebrew/opt/openjdk/bin/java: Mach-O 64-bit executable arm64
So I'm a bit stuck. I'm even unsure how to figure out where exactly a wrong version is referenced.Ahhhh... Is it because the old figwheel still uses the Hawk watcher? I saw a thread where @seancorfield noted that this was a problem with M1 macs in figwheel-main.
Looks like it! Adding
figwheel {:hawk-options {:watcher :polling}
to the project.clj
seems to fix the problem.
But it's already working for my coworkers who are on M1 machines. I wonder if they've somehow installed X86 versions of Java and are running those when doing lein figwheel my-profile
. I'll have to ask them.
Thanks for rubber ducking, everyone 😅Yeah. Sounds about right. I’d recommend trying to move to figwheel-main. I did it for a bunch of projects at one point and don’t think it was too much trouble.
Ahhhh... Is it because the old figwheel still uses the Hawk watcher? I saw a thread where @seancorfield noted that this was a problem with M1 macs in figwheel-main.