This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-23
Channels
- # announcements (3)
- # aws (2)
- # babashka (31)
- # beginners (14)
- # calva (14)
- # cider (4)
- # clj-kondo (1)
- # clojure (24)
- # clojure-europe (18)
- # clojure-gamedev (4)
- # clojure-nl (3)
- # clojure-norway (23)
- # clojurescript (24)
- # core-typed (23)
- # data-science (9)
- # datomic (1)
- # emacs (15)
- # events (4)
- # gratitude (3)
- # introduce-yourself (1)
- # leiningen (9)
- # lsp (65)
- # membrane (39)
- # music (1)
- # nbb (1)
- # obb (8)
- # reitit (17)
- # releases (1)
- # tree-sitter (2)
- # vim (28)
- # xtdb (3)
Just tested Calva with one of my re-frame
exercise and everything works like charm.
I'm falling in love with Calva. 🙂
... and I have alt+j
in my muscle memory, therefore:
{
"key": "alt+j",
"command": "calva.runCustomREPLCommand",
"when": "calva:connected && calva:keybindingsEnabled && editorLangId == 'clojure'",
"args": {
"ns": "user",
"snippet": "(integrant.repl/reset)",
}
},
Except one thing. If I start the the shadow-cljs build, and then connect to the shadow-cljs repl using:
"calva.replConnectSequences": [
{
"name": "backend + frontend",
"projectType": "shadow-cljs",
"cljsType": "shadow-cljs",
"menuSelections": {
"cljsLaunchBuilds": [
":app"
],
"cljsDefaultBuild": ":app"
}
},
... I can see in the console (terminal in which I started shadow-cljs), the clojurescript related log messages.
But how do I see the clojure related log messages? Is the only way to configure the clojure backend logging to a file and then tail
that file?I mean if I have a logback configuration that echoes log messages to console:
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>
%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
</Pattern>
</encoder>
</appender>
I was noticing something similar a while ago: ClojureScript logs printing okay, but Clojure log calls producing nothing. I think what happened is the shadow-cljs server instance had become detached from my terminal. When I found and killed that server process and started everything up again, I had both logs displaying again in the same terminal.
Thanks, @UTFAPNRPT. That explains why I have seen it both working and not working. 😃
Ah, so, it is possible to have both backend and frontend logs displaying in the same terminal! I must investigate this a bit myself as well.
Damn. It actually works like that. Good!
So. I have been testing Calva in quite a few use-cases now and written three blog posts regarding those customizations. And now I finally have pretty good confidentiality that I can do everything using VSCode/Calva that I could previously do with IntelliJ/Cursive.
Did you mean to say ‘confidence’? 🙂 Since you are publishing all this in blog posts, you aren’t really being confidential, which is good for all of us that benefit from reading your posts.
Lost in translation. 😀