3 ms·
I love the JVM repl experience from Cursive and emacs. But I've never come close to it from ClojureScript for browser development. Can you describe your repl ca
by dustingetz 10y ago
I love the JVM repl experience from Cursive and emacs. But I've never come close to it from ClojureScript for browser development. Can you describe your repl capabilities and dump some links? (I am looking for a real repl experience like on JVM where the IDE is hooked into the repl and forms can be sent across individually and the app can be built up piecemeal without restarts. If this isn't what I want, tell me what I want. Figwheel doesn't seem to be it.)
- swannodette 10y agoI don't understand. The Figwheel REPL does exactly that + hot loading. I use Figwheel with Cursive - works great.
- dustingetz 10y agoCan you post a short video of your workflow? It might help a lot of people
- delegate 10y agoI'm not sure if this is the 'right' way to do it, but here's how I do it with Cursive (should also work with other editors): 1. In project.clj, add the nrepl port for figwheel: :figwheel { :nrepl-port 7002 } 2. Start figwheel with `lein figwheel` and open the page in the browser 4. In IntelliJ, Create a new Clojure REPL -> Remote, pick "Connect to server" and enter "localhost" and 7002 for port. 5. Start the REPL, it should connect to the figwheel repl, then type (cljs) and you should be in the ClojureScript repl. 6. Test that it works: (js/alert "Hello")
- unlogic 10y agoIn Emacs, you can use CIDER together with ClojureScript. By following these instructions[0] I was able to get the combined Figwheel+REPL functionality. [0] https://cider.readthedocs.io/en/latest/up_and_running/#using-the-figwheel-repl-leiningen-only https://cider.readthedocs.io/en/latest/up_and_running/#using...