This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-20
Channels
- # announcements (3)
- # babashka (74)
- # beginners (45)
- # biff (3)
- # calva (10)
- # cherry (1)
- # clojure (7)
- # clojure-austin (4)
- # clojure-europe (50)
- # clojure-losangeles (1)
- # clojure-nl (1)
- # clojure-norway (22)
- # clojure-uk (3)
- # cursive (14)
- # data-science (2)
- # datomic (1)
- # emacs (3)
- # events (5)
- # fulcro (13)
- # holy-lambda (64)
- # hyperfiddle (67)
- # introduce-yourself (1)
- # lsp (5)
- # off-topic (1)
- # rdf (1)
- # re-frame (5)
- # reitit (4)
- # releases (3)
- # shadow-cljs (89)
- # spacemacs (4)
- # squint (5)
- # timbre (9)
- # tools-deps (2)
I’m having some issues connecting my shadow-repl to expo react native.
In my terminal window launching expo (dev build or go app, IOS or Android) I get ERROR shadow-cljs watch for build :native not running!
The result is that expo’s garbage hot reload works and the good one shadow gives me doesn’t. I’ve attached screenshots of the stack available on simulator.
The error I don’t get is the shadow-cljs - remote-error {"isTrusted": false …}
. I get that error and others like Stale Output!
as expected when I C-c my shadow watch terminal. It appears like on some real level the shadow connection is being observed. I’m available to help anyone who is interested in helping me. CHEERS!
I think you’re right.
No dice. I deleted my .shadow-cljs, and my build files, launched my native build and I’m getting the same error. Did I miss the point?
Oh, we are definitely talking about 2 different things
but that won't work if there is a zombie process which you can't connect to anymore because you deleted the files
so I killed all java processes, started my shadow watch, ran my expo development build and I’m getting the no connection error.
This was expected behavior for me. My wires were crossed, because I often build my browser and native builds at the same time through a npm run script.
I’ve done both the go app and a dev build, ios and android simulator. ATM it’s a dev build on ios
you can do that via shadow-cljs watch native node
, it should not be 2 separate shadow-cljs
commands in case you are doing that
does it give you any indication what host it tried to connect to? an ip or something?
It does not. I’ve given you all the errors I’m getting. It’s surprisingly thin, just a singular log line and the stack on the simulator
I get “sahdow-cljs watch for build :native not running!”
I follow you
I get that error when I expect to, i.e. after I C-c my build.
I’m sorry. I’m not the most graceful online. I’m not trying to be bad at this.
› Installing on iPhone SE (3rd generation)
› Opening on iPhone SE (3rd generation) (net.drilling)
› Opening
› Opening the iOS simulator, this might take a moment.
› Logs for your project will appear below. Press Ctrl+C to exit.
iOS Bundled 4255ms (index.js)
LOG debug
LOG start
LOG shadow-cljs #3 ready!
ERROR shadow-cljs watch for build :native not running!
What log?
➜ shadow-cljs watch app/native
shadow-cljs - config: /Users/pat/fjck/shadow-cljs.edn
shadow-cljs - socket connect failed, server process dead?
shadow-cljs - starting via “clojure”
shadow-cljs - HTTP server available at http://localhost:5308
shadow-cljs - HTTP server available at http://localhost:5309
shadow-cljs - server version: 2.27.4 running at http://localhost:9630
shadow-cljs - nREPL server started on port 5310
shadow-cljs - watching build :app/native
[:app/native] Configuring build.
[:app/native] Compiling ...
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[:app/native] Build completed. (182 files, 0 compiled, 0 warnings, 3.66s)
Am I supposed to report back something specific?
It’s loaded with the shadow error in question in a popup on the bottom.
yes sir
2, I’ve got “#1 JVM Clojure” and “#5 - build: native”
I did.
app/native
yes sir
Oooof, It didn’t cause issues for tests or the browser version.
man, I feel I should know that.
I don't have an immediate guess why its a problem in expo, but I mean now that we found it its pretty obvious 😛
Well, I really enjoy your tool. It doesn’t give me issues like this. Most everyday it just helps me work. So thanks for this and shadow.
CONFIRMED: namespaced build id caused hot reload to break in expo. Thanks @U05224H0W