Comments (5)
I'm not all that familiar with the nrepl features of figwheel and what it is supposed to give me of benefits as opposed to using the lighttable with cljs browser eval.
Once we do figure it out, we should probably add a section about Light Table on the figwheel wiki :-)
Here's what I did get something up and running though:
- Firstly I had to change to [org.omcljs/om "1.0.0-alpha23"] to get anything going. I also added [figwheel-sidecar "0.5.0-1"] as a dep, but not sure if that's needed.
- I also commented out the nrepl-port for figwheel
- Then from the command line I just did a plain old
lein repl
- From Light Table I choose to connect to a clojure remote, using the port lein nrepl assigned
- Connected no problemo
- To start the figwheelery:
- Open a editor/set syntax to clojure (should be possible to use instarepl, but I don't use it much so)
- Eval
(use 'figwheel-sidecar.repl-api)
- Eval
(start-figwheel!)
- To eval clojurescript
- Open your index.html or whatever that includes the compiled cljs (I did it with the internal LT browser for simplicity) -> Should get something in the console telling you that a figwheel connection is getting established
- Open another editor/set syntax to clojurescript
- Eval
(ns user.whatever (:require [hello-om.start-ui :as ui]))
- Eval stuff...
If I edit cljs files all workes as expected, the compiled js is loaded into the browser and so is then available for cljs evals in LT.
I'm still confused about piggieback, weasels and whatnot. But I'm not sure why you would ever need it from Light Table as it ships with it's own middleware that handles eval in either LT internally (very limited clojurescript version support), internal browser or external browser.
hope this helps.
from clojure.
Here's a screenshot of LT working with figwheel. I'll have a wiki page up soon:
from clojure.
Made https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-with-LightTable. Closing for now but can reopen if it doesn't work and you can give me steps like ones I listed on the wiki page
from clojure.
Curious if there's any way to make LT connect to an external figwheel REPL (not an internal figwheel browser)?
My goal is to onboard a couple people onto a ClojureScript project without throwing Clojure, Emacs/Vim, and Paredit at them all at the same time, but I'd still like them to have an in-editor REPL. For some reason when using the internal Figwheel REPL a couple Chrome APIs aren't working, and I can't see the dev console.
from clojure.
Unfortunately, I don't have enough exposure on the topic to be of use but perhaps @rundis or @cldwalker know something?
from clojure.
Related Issues (20)
- Automatic recompilation and load of file-based namespace HOT 1
- Explicit error if building a cljs plugin failed
- dosync is not indented like do HOT 3
- Evaling a set form throws a "... java.lang.Long cannot be cast to java.lang.Integer" exception HOT 9
- Nothing is displayed when evaling a form that uses the quote reader macro HOT 1
- multiple REPL connections on new lighttable version HOT 9
- inline plot support HOT 7
- Eval into a cljs React Native project
- better error messages HOT 21
- Tagged literals break Instarepl HOT 1
- Inline evaluation (Ctrl+Enter) fails on custom tagged literals.
- Instarepl throws javascript error HOT 1
- add new functions' names to codemirror HOT 3
- Clojure/Clojurescript smart indent is always 4 spaces HOT 6
- consider making inline results with pprint HOT 1
- Nothing is displayed when eval-ing simple expressions
- lighttable.nrepl.handler Does not conform to spec HOT 5
- Eval clojure in non supported File-types
- Add Proper Support for Boot
- java.net.MalformedURLException: unknown protocol: c
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clojure.