This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-27
Channels
- # announcements (2)
- # beginners (69)
- # boot (2)
- # calva (15)
- # cider (4)
- # cljs-dev (8)
- # cljsrn (1)
- # clojure (38)
- # clojure-spec (2)
- # clojure-uk (6)
- # clojurescript (6)
- # cursive (12)
- # data-science (1)
- # datomic (6)
- # emacs (10)
- # figwheel-main (12)
- # fulcro (41)
- # nrepl (1)
- # re-frame (16)
- # reitit (1)
- # shadow-cljs (6)
- # spacemacs (2)
- # speculative (1)
- # test-check (9)
@jkr.sw have you tried running through this guide: https://figwheel.org/docs/vim.html
it seems like with figwheel.main vim-fireplace isn't able to connect to the right repl on its own.. so you need to do so explicitly with something like :Piggieback (figwheel.main.api/repl-env "dev")
I've seen the guide, right now I can't see anything I'm doing differently. I guess I'll try it with a fresh project from scratch tomorrow.
Hmm right.. the same in my case. I only get the out/ dir when I connect via piggieback. But it's not causing an issue in my project..
@jkr.sw fireplace will use nashorn if you try and evaluate without being connected, and that will cause a write to out
.
I don't think nashorn is involved, at least I don't get any "nashorn_code_cache" directory and I am making sure to connect with Piggieback before evaluating anything. From my tests it seems whenever any "require" is evaluated via fireplace/Piggieback, the required code goes into "out", but if I do the same require from a non-piggiebacked cljs repl, it goes into :target-dir as expected. I haven't found out what could be causing this difference. Piggieback is definitely connected to the same browser though, I can access the same vars and everything. With the old lein-figwheel I don't get this problem. A funny workaround that I found is symlinking the "out" directory to the :target-dir, after doing that everything runs fine both with or without Piggieback 🙂
Ah I think I figured it out. Doing :Piggieback (figwheel.main.api/repl-env "my-build")
passes :output-dir to cider.piggieback/cljs-repl
as part of the repl-env arg, but cljs-repl is not looking for it there.
I filed it as an issue for figwheel-main, hope it's understandable, I had a hard time formulating it https://github.com/bhauman/figwheel-main/issues/145