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
289 Views Asked by Eric Ihli At
1
There are 1 best solutions below
Related Questions in REACT-NATIVE
- React Native: detect if UIVisualEffectView is supported
- Prevent Chrome debugger from stealing focus in React Native
- React-native upload image to amazons s3
- react-native update NavigatorIOS component's props
- promise – can't find variable process
- Using React Native within existing iOS app for some views only
- What is a good approach to building and distributing a React Native iOS component that extends iOS functionality?
- error in xcode 6 "is not registered as a URL scheme. Please add it in your Info.plist"
- DeviceEventEmitter stops emitting events to application when screen locked
- How to rename react-native entry file (index.ios.js)
- react-native component lifecycle methods not firing on navigation
- How to use comments in React
- react-native propagate changes in props through ListView and Navigator
- How do i use the iOS shake gesture with react native?
- TouchableHighlight won't accept press events while keyboard is open
Related Questions in CIDER
- emacs cider clear REPL buffer
- "Not an nREPL dict" using cider-auto-test-mode
- Running cider-jack-in in emacs
- How to jump to clojure.lang java source?
- keep *nrepl* buffer in cider when jvm terminates
- How to terminate the process in cider-repl?
- Default namespace is not evaluated when stating lein repl?
- Get pretty-printed result in Cider-evaluated expression in Emacs
- Trouble setting up Figwheel REPL within CIDER
- clojure cider on catalina The lein executable isn’t on your ‘exec-path’
- clojure ubergraph compiling error - 'namespace 'ubergraph.core' not found
- How Do I Alias Alembic Provided Dependencies?
- Opening leiningen project in emacs/cider raises classpath error
- What is the difference between a "hard minimum" and a "soft minimum"?
- 'cider-jack-in' run clojure instead leiningen without a clojure project
Related Questions in SHADOW-CLJS
- TypeError: $jscomp$generator$this.send is not a function
- Require aws-amplify v.3 Amplify and Auth classes in clojurescript/reagent shadow-cljs app
- How to write frontend (reagent) and backend (express.js) applications in a same clojurescript setup?
- React.createElement: type is invalid using react-bootstrap in ClojureScript
- Clojurescript repl trying to invoke Clojure function from the Transit library
- Shadow SLJS not detecting file changes through Docker mount
- PivotTableUI in clojurescript from react-pivottable on change interface not render new status
- Why does updating my nested Reagent component not update it?
- 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?
- How to properly setup shadow-cljs for hot reload?
- Emacs Cider with Shadow-cljs browser settings on Windows wsl2 hot code reload
- how to rerender reagent ui with react 18 and shadow-cljs reload?
- Error: Electron failed to install correctly - shadow-cljs - failed to load module$node_modules$electron$index
- How to use Reanimated "worklet" directive in ClojureScript?
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 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