I added a new dependency to my Clojurescript app, and I want to know if I can run a function, maybe something like (restart-figwheel) to restart Figwheel. I read you have to restart Figwheel to detect new dependencies.
From Cider, in Emacs, is there a way to restart Figwheel to detect new dependencies?
375 Views Asked by Brandon Olivier At
1
There are 1 best solutions below
Related Questions in EMACS
- How can I make 'emacsclient' open in native fullscreen every time I launch it from the terminal in macOS?
- emacsclient does not connect inside ubuntu container
- Emacs use .emacs by default instead .emacs.d/init.el
- Setting up Macaulay 2 on emacs
- org-mime add caption to exported images
- Use the same export attribute for all src-blocks
- Tags Development Tools
- Emacs 29.2 unable to find theme file
- How to automatically allow the execution of code action from HLS in emacs?
- Org-babel remote inline images with TRAMP not exporting in org export
- find and replace regex like that can deal with nested brackets
- Inheriting from variadic types messes up template member function indentation in Emacs
- Invoking org-store-link interactively, errors on calling org-man-store-link
- Disable session save in doom emacs
- How do you connect to a remote emacs server using Microsoft dev tunnels
Related Questions in CLOJURESCRIPT
- Counting items within indexed map
- Are there any way to treat Javascript methods like ClojureScript functions?
- What difference between syntax-quote in Clojure and syntax-quote in Clojurescript?
- Shadow-cljs requiring react-select Creatable component
- CSS File Import Fails when using Path in ClojureScript Project
- Best Practice for Storing Login Credentials in ClojureScript
- How do I apply a PostgreSQL function to a query using Clojure?
- Clojure/ClojureScript: How to plug in custom print implementation for EDN tag literals?
- Implementing a graph in clojurescript
- Clojure(Script) higher order function to accept only functions from certain namespace
- How can I stop my clojurescript app from blocking browser events while running?
- Reagent + Ring full stack Clojure + ClojureScript app receiving 403 `Invalid anti-forgery token`
- WebAssembly Image manipulation with ClojureScript
- How can I send an input in a page to another page with hyperfiddle Electric via using query url
- How to make stateful Clojure code pure without excessive repetition?
Related Questions in LEININGEN
- Mac OS X - Brew installed Leiningen permission error / wrong directory
- Looking for a Clojure/LISP equivalent to Scons
- Loading environment variables temporarily on nrepl start up
- lein deps fails with cljfx
- Function Namespace Conflicts in Clojure Project with Incanter
- Error loading a shared library when trying to run a Clojure project in NixOS
- How to set process name for Leiningen script so htop shows it as "lein" and not "java... "?
- What is wrong with my namespace declaration in this clojure project?
- OS Error 13 when running lein test in leiningen project clojure
- Leiningen unable to start a REPL: "Unable to resolve symbol: create in this context"
- Clojure in server plugin dev: calling classes that must be initialized after server startup
- Leiningen how to include dependency into result jar file
- how to define constants at compile time in clojure
- Calva Error "LSP classpath lookup failed when running `lein with-profile +test,+dev classpath`. "
- Releasing to AWS throws exception
Related Questions in FIGWHEEL
- Cannot get REPL prompt with figwheel-main and Clojure Tools
- Why this web application built with Clojure, ClojureSript, Figwheel, Lein is not been updated on the browser after editions on the source code?
- Figwheel / unable to declare a :ring-handler
- Clojurescript compiler options in leiningen
- How to create a multi-page application with Figwheel and Leiningen?
- How to resolve Uncaught TypeError: clojure is undefined
- CLJS Uncaught TypeError: Cannot read property 'call' of undefined
- Cannot get Leiningen commands to work with figwheel
- Figwheel reloadable code with atom as local (lexical) state?
- Failed to compile in a 'lein new figwheel foo -- --reagent'
- Including JS files compiled using Figwheel to Uberjar built
- Is there an easier way to use BOTH clj + cljs REPLs at the same time from emacs/cider?
- How to get updated app on reload in Figwheel?
- How do I tell figwheel to start and connect to Google Chrome instead of Firefox?
- Reagent configuration for multi-page applications
Related Questions in CLJSBUILD
- $jscomp not defined in code loaded for clojurescript and reagent
- How to place Clojurescript npm-deps in production setup?
- lein cljsbuild fails with untraceable error. How do you troubleshoot cljsbuild errors?
- lein cljsbuild gives "Could not write JavaScript nil" error
- Can't Use NodeJS Twitter Library in ClojureScript 1.8 Lein Project
- How to define target env in compile time while building .cljs?
- :npm-deps fails "node" not found
- How to trigger compile & reload in a cljs figwheel and cljsbuild project on webpack bundle update?
- Clojurescript Build with Modules - Constants Table Crashing
- 'a is undefined' when compiling a cljs prj with an NPM module under :prod profile
- Using webpack compiled library as external in CLJS
- After upgrading Clojurescript '1.9.494' getting JSC_PARSE_ERROR
- From Cider, in Emacs, is there a way to restart Figwheel to detect new dependencies?
- lein figwheel vs lein cljsbuild auto
- Slow loading of cljsbuild in Clojure
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?
At this time, I don't think you can do this. You need to quit your current figwheel session and restart in order to pick up new dependencies added to your :dependencies in your project.clj file. In fact, the figwheel docs also recommend running lein clean before you restart figwheel to be sure you don't end up with some old code.
I think this functionality is on the roadmap, but is not a high priority. There is considerable complexity in being able to have this functionality work reliably - especially if you add in the complexity of different repl environments (such as using piggyback, and cider with figwheel).
Note that this limitaiton is just with :dependency items in the project.clj. You can add :require lines in your cljs files dynamically and have them picked up (asusming the library is already in the dependencies list of course).
I suspect part of the compicaiton is ensuring the classpath is updated and that all processes already running which use the classpath are somehow updated and making sure all loaded classes are reloaded in case the dependency changes the dependencies of those loaded classes to keep things consistent.