GithubHelp home page GithubHelp logo

Comments (5)

rundis avatar rundis commented on September 22, 2024

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.

cldwalker avatar cldwalker commented on September 22, 2024

Here's a screenshot of LT working with figwheel. I'll have a wiki page up soon:

screen shot 2016-01-23 at 7 44 57 pm

from clojure.

cldwalker avatar cldwalker commented on September 22, 2024

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.

jiangts avatar jiangts commented on September 22, 2024

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.

sbauer322 avatar sbauer322 commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.