This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-15
Channels
- # architecture (2)
- # beginners (16)
- # boot (2)
- # cider (4)
- # clara (6)
- # cljs-dev (78)
- # cljsrn (3)
- # clojure (158)
- # clojure-austin (1)
- # clojure-belgium (1)
- # clojure-dusseldorf (19)
- # clojure-italy (8)
- # clojure-russia (3)
- # clojure-spec (77)
- # clojure-uk (61)
- # clojurescript (341)
- # cursive (9)
- # data-science (12)
- # datomic (18)
- # emacs (9)
- # fulcro (109)
- # hoplon (10)
- # juxt (2)
- # leiningen (2)
- # lumo (31)
- # off-topic (1)
- # om (4)
- # onyx (40)
- # parinfer (17)
- # re-frame (36)
- # reagent (19)
- # spacemacs (10)
- # vim (60)
- # yada (20)
The frustrating thing is that it only works with the figwheel template... any other template/project and things seem to go south
vim-figwheel also seems to require that it is loaded after vim-fireplace... which pathogen does not accomplish:disappointed:
Yeah, it should probably move https://github.com/markwoodhall/vim-figwheel/blob/master/plugin/figwheel.vim#L6-L9
I appreciate your help here... I am trying to track down the root cause here so I can submit PRs to other templates like chestnut and luminus so I don't have to deal with this as much anymore
Thanks @dominicm ... the JS-Workshop project I linked too is another puzzler -- especially since it is buy yogthos who is normally great at making stuff just work
@bfast Piggieback (figwheel-sidecar.system/repl-env (:figwheel-system reloaded.repl/system) nil)
Explanation: chestnut reached into the (internal?) api of figwheel, and moved the system. So the repl-env
function no longer works. So this pulls it out of where they moved the figwheel system.
@bfast > lein new reagent-frontend reddit-viewer > cd reddit-viewer > lein figwheel This how I do the js workshop?
I tried your piggieback command with chestnut... I got a NPE... When you launch "lein repl" in a chestnut project figwheel auto starts... so the timing may be off
@bfast Sorry, I should have been more precise.
lein repl
user=> (go)
user=> (cljs-repl) ; this may be optional
~>
Then do the :Piggieback
@bfast Regarding JS-Workshop: For whatever reason, figwheel doesn't write the .nrepl-port
file, so fireplace can't auto-connect. So you have to do: :Connect
manually, then scope the connection. From there, the normal figwheel piggieback works: :Piggieback (figwheel-sidecar.repl-api/repl-env)
No problem. I've been through the pain of understanding all this crap 🙂. So I don't mind sharing
Ok -- I guess I am having problems once I connect to the figwheel repl... when I try cpp on an expression I get E605: Exception not caught: Fireplace: class java.lang.IllegalStateException... so I will keep investigating
https://asciinema.org/a/uajGXPnydtrsbaQieDbPPf9Za imperfect run-through
I think the problem is something with my environment... I don't need to do the .clj piggieback with the figwheel-template
That might just be because vim-fireplace is doing something with rhino on your behalf, but I'm not certain. You should always need to do the Piggieback
I need to do piggieback, but I can successfully do it in a cljs file in figwheel-template
oh interesting. Maybe Piggieback does work in a .cljs file, maybe it's something else... so now I am over-cautious and always do it in the .clj file 😛
I greatly appreciate your help... but i need to get back to work... I'll be online trying to debug this after work this week... this is driving me bonkers
Ok -- I don't have the ":Lein" command ... but I tried just running lein figwheel like you did and I was able to piggieback in and send an alert