I'm working with a basic ReactNative app using Emacs with Cider and ShadowCLJS. I can develop with the REPL pretty consistently but as soon as I accidentally save a file that has a syntax error in it then I lose communication to the REPL. Anything I type results in a delay followed by "REPL command timed out". The only way I have found to fix it is to restart the emulator with npx react-native run-android. But then I lose all the state that I had in the REPL.
Often seeing "REPL command timed out" in Cider with shadow-cljs and React Native. Must restart emulator to fix
291 Views Asked by Eric Ihli At
1
There are 1 best solutions below
Related Questions in REACT-NATIVE
- ussd reader in Recket Native module
- I can't make TextInput to auto expand properly in Android
- expo config plugin use import instead of require
- Custom Sound for Expo Push Notifications Only Works in Foreground
- run RTK dispatch on gesture start with React Native
- Should I set Back-End for my React Native application?
- using infoPlist in app.json for expo project seems to not be working
- Anyone have success configuring react-native-home-indicator?
- KeyboardAvoidingView makes a messy the flexbox
- I am getting lots of errors when building react native app in Xcode
- Search and highlight text of current text in PDFKit Swift
- Flatlist Sometimes Capped at 10 Items Bug
- Is there any way to page transition in react native (stack navigation)
- Screen inside Stack.Navigator not visible in React-Native
- React Native stopwatch implementation slow on iOS
Related Questions in CIDER
- Leiningen unable to start a REPL: "Unable to resolve symbol: create in this context"
- AirPlay connectivity with pyatv, not authenticated and no device detected
- Leiningen not finding extra test files (CIDER does)
- Why is "shadow-cljs cljs-repl app" still working while cider-jack-in-cljs is retrieving an error?
- How to make the connection between Emacs, Cider, and shadow-cljs be less repetitive per project?
- When using cider-find-var, how to make it jump to the definition on the original file instead of going to the output of lein install on maven folder?
- Why I can start CIDER's Clojure REPL without a project (no error message) but starting CIDER's clojureScript REPL without a project returns an error?
- Is there a way to store and retrieve the history of shadow-cljs' REPL over different sessions? How to use commands used in previous sessions?
- Although CIDER works without projects and the Clojure project is successfully built, why I can't bring both things together?
- While developing Clojure, is running the dev environment with npm incompatible with Emacs Cider?
- What is the benefit of having a Clojure project before starting the REPL? Why Cider keeps asking and nudging the user about it?
- How to load this Clojure project in my cider REPL? Why I am receiving the message "The clojure executable isn’t on your ‘exec-path’" (NixOS)?
- calva - how to stop the repl?
- Cider: how to run a comand on startup?
- How to handle interpendency between multiple files in cider?
Related Questions in SHADOW-CLJS
- Shadow-cljs requiring react-select Creatable component
- How can I stop my clojurescript app from blocking browser events while running?
- How to add delays between shadow-cljs auto builds
- How can I implement kafka consumers in cljs app?
- How to import npm pacakge from clojurescript?
- Leaflet React Markercluster - packages not working in ClojureScript
- How to import a shadow-cljs project into another shadow-cljs project with a different configuration
- WalletConnect v2.0 library integration issues with shadow-cljs
- Translating and importing Joy UI dark mode to ClojureScript
- How to explain this arrangement for :cljsbuild on a Clojure/ClojureScript project? And how to extend it for Continuous Deployment?
- Is there any difference on how to declare a ClojureScript dependency on shadow-cljs.edn file?
- Why does updating my nested Reagent component not update it?
- PivotTableUI in clojurescript from react-pivottable on change interface not render new status
- How to avoid duplication of dependency declaration in a Clojure/ClojureScript project?
- In a Clojure/ClojureScript project, what are the advantages of declaring dependencies on a `deps.edn` file instead of using `shadow-cljs.edn`?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This could be a number of different things.
It might related to the live-reloading that Metro (or Expo) provides. Press Ctrl-M (Cmd-M on Mac) in the emulator to bring up the options to turn off Fast Refresh.
https://facebook.github.io/react-native/docs/fast-refresh
https://github.com/thheller/shadow-cljs/issues/469
If you're still getting this error even after disabling Fast Refresh, it might be because ReactNative doesn't cleanly disconnect old websockets when reloading. Here's a comment from the creator of shadow-cljs.
I found a work-around using ReactNative's AppState and the reference to the websocket from the shadow-cljs dev namespace.
https://facebook.github.io/react-native/docs/appstate.html
https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/cljs/devtools/client/react_native.cljs