This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-10
Channels
- # adventofcode (76)
- # announcements (7)
- # aws (3)
- # babashka (75)
- # beginners (25)
- # calva (37)
- # cider (9)
- # clara (4)
- # clj-kondo (17)
- # cljsrn (1)
- # clojure (106)
- # clojure-europe (4)
- # clojure-india (2)
- # clojure-italy (12)
- # clojure-nl (27)
- # clojure-spec (33)
- # clojure-uk (20)
- # clojurescript (103)
- # clojutre (3)
- # core-async (1)
- # cryogen (10)
- # cursive (24)
- # datomic (113)
- # dirac (5)
- # emacs (12)
- # events (4)
- # fulcro (64)
- # garden (5)
- # jobs (1)
- # kaocha (5)
- # luminus (2)
- # malli (14)
- # off-topic (53)
- # planck (11)
- # re-frame (9)
- # reagent (16)
- # reitit (26)
- # remote-jobs (2)
- # shadow-cljs (137)
- # spacemacs (34)
@stefan.toubia is this with a release vsix, or with a dev build?
2.0.66, I could only reproduce it inconsistently. I tried to jack-in, evaluate something to repl window, close repl window and I got it to repeat only once, I didn’t look too closely.
Please file an issue. This is probably going to be tricky to track down. Maybe something crashes in the event handler that sets the replWindow
context.
New release going out a bit later today. 😃 I need to test it a bit more and day-time-work is not letting me.
Is there a way to change the repl text colours? Especially println an ./pprint output
@dennisa In case you weren't aware, I think he was referring to the VS Code theme. You can press ctrl+p, ctrl+t
and select a theme.
I've found the theme json. does anyone know what parameters is responsible for print and pretty print (they are different colours ) in the REPL?
Dear Calva-friends. A new version is out on the Marketplace, v2.0.67. It sports Markdown docs hovers and an option to add docs to the parameter hint hover. Both added by @stefan.toubia. See: https://github.com/BetterThanTomorrow/calva/pull/503

I fear I may be missing something very obvious, so please forgive what may be a silly question. I’m just getting started with Calva and trying to get it working with an app built with Figwheel Main. Unfortunately I’m falling at the first hurdle.
To avoid any issues caused by weirdnesses with my existing app, I’m trying to get it working with a “bare” app created with the Figwheel Main Template as so:
clojure -A:new electron-app paulbutcher/myapp
I jack-in using the project type “Clojure CLI + Figwheel Main” and select the :fig
and :build
aliases. This seems to start OK: I can see the output I would expect in the Terminal pane, and the browser opens and shows the app. But…
• The jack-in does’t seem to finish (I still see “Launching REPL using Clojure CLI + Figwheel Main” in the status bar.
• If I open core.cljs
hovering over a name gives the tooltip “Please connect to a REPL to retrieve information”, and
• Running “’Calva: Load Current File and Dependencies” gives the error “Command ‘Calva: Load Current File and Dependencies’ is not enabled in the current context.”
What am I missing?
(Should also fix the problem with cursor movement failing in non-clojure files when switching to and frm the REPL window.)
@paulbutcher try without selecting any aliases.
Ah! That seems to have worked (and it then asked me which alias I wanted to run, so I selected :dev
, which seemed to work)
I’m somewhat confused though - does jack-in “know” to use the :fig
alias?
Jack-in doesn’t need the fig
alias. If I remember correctly, that alias does not provide the main entry point that Calva needs.
I am sorry for the confusion. I should probably mention this about deps aliases somewhere…
So it “knew” somehow not to offer the :fig
or :min
aliases?
It just offered :dev
and :test
?
So when I run jack-in, it says “Pick any aliases to launch with” and offers four (`:fig`, :build
, :min
and :test
)
After jack-in has finished, it then says: “Please select which builds to start” and offers (`dev` and test
)
Ah! it’s working that out from the existence of test.cljs.edn
and dev.cljs.edn
?
Yes. Calva does not know if the alias will work or not, so it offers to launch with them. And yes, it picks up the builds from those files. You can start both builds and then Calva will ask which one to connect. You probably want to connect to :dev
.
Gotcha. So does that mean that Calva can’t connect to multiple builds? FWIW the app I’m really trying to work with is an Electron app which has both a “Main” and an “Renderer” process. I guess I’ll need to decide which to connect to (depending on which I’m working on)?
(it’s configured to use Figwheel Main’s “extra mains” functionality to start both simultaneously)
You can only be connected to one build at the time. In the status bar you see which one is connected. And you can click that indicator to switch connection.
Ah cool - I’ll see if I can get that working 👍. Thanks!
Let me know how you fare. I think most people do not use that feature so it is a bit untested.
Yeah - I’m aware that I’m playing in slightly uncharted territory!
(would probably be easier to learn Calva on something more run of the mill, but hey - in for a penny 😜)
You’ve got me over my immediate hurdle, so thanks. I may have followup questions later 😀