This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-04
Channels
- # announcements (13)
- # beginners (51)
- # boot (3)
- # calva (10)
- # cider (20)
- # clj-kondo (55)
- # cljs-dev (60)
- # clojure (99)
- # clojure-europe (6)
- # clojure-gamedev (9)
- # clojure-italy (19)
- # clojure-nl (7)
- # clojure-spec (20)
- # clojure-uk (42)
- # clojurescript (96)
- # clojurex (37)
- # clojutre (1)
- # cursive (37)
- # data-science (2)
- # datomic (15)
- # defnpodcast (9)
- # duct (7)
- # emacs (6)
- # events (9)
- # fulcro (124)
- # jackdaw (4)
- # jobs (4)
- # leiningen (9)
- # malli (7)
- # mount (3)
- # off-topic (109)
- # other-languages (8)
- # re-frame (39)
- # reagent (4)
- # reitit (6)
- # remote-jobs (2)
- # rewrite-clj (36)
- # ring (4)
- # shadow-cljs (16)
- # spacemacs (16)
- # tools-deps (91)
- # vim (8)
- # yada (2)
I'm having trouble jacking into Clojure CLI + shadow-cljs. I cloned the fulcro 3 template (https://github.com/fulcrologic/fulcro-template) and tried starting up CLI + shadow. I get a Calva says message "Jacking in..." but after several minutes, nothing happens. Is it timing out?
The terminal reports
> Executing task: clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.4"} cider/piggieback {:mvn/version "0.4.1"}}}' -A:dev -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware cider.piggieback/wrap-cljs-repl]" <
nREPL server started on port 34405 on host localhost -
I can launch CLI repl or shadow separately
I think Calva fails picking up when the nrepl port file is created. I haven't tried that template myself, so aren't familiar with how it is wired. It might be that you'll need to work with two separate vscode windows...
I was wondering if that was the problem. Is there a way to get Calva to create two separate repl environments? When I've tried to starting (jack in) a shadow repl after starting (jack in) a CLJ repl, the first one is killed
Currently two separate vscode windows is the only way. But it begs the question how to open the same folder in two separate windows for the same folder... Probably via workspaces.
@mark340 @pez The cause of the connection problem is that calva expects the port file for "clojure CLI + shadow" to be created in the .shadow-cljs subdirectory while in this project configuration (https://github.com/fulcrologic/fulcro-template) the port file is created in the project directory. I am not sure why.
Yes, I see this issue in my env as well. Curiously, starting shadow-cljs (only) from Calva creates those files while Clojure CLI + shadow-cljs does not.
I think we need to revisit the “Clojure CLI + shadow-cljs” Jack-In sequence. Maybe remove it even.
Anyway, there are a few things to this. Too long for a comment in this channel, so I whipped up a small Jack-In guide, which hopefully makes it clearer what is going on and why you need to use separate VS Code windows for this template project. • The Calva Jack-in Academy: https://calva.readthedocs.io/en/latest/jack-in-guide.html • Tips on how to actually open the same project in two separate windows: https://calva.readthedocs.io/en/latest/workspace-layouts.html#one-folder-two-windows