This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-27
Channels
- # adventofcode (1)
- # announcements (16)
- # babashka (16)
- # beginners (59)
- # calva (13)
- # clj-kondo (7)
- # clj-on-windows (3)
- # cljdoc (5)
- # clojure (85)
- # clojure-dev (5)
- # clojure-europe (4)
- # clojured (3)
- # clojurescript (87)
- # cursive (12)
- # emacs (4)
- # fulcro (15)
- # gratitude (1)
- # introduce-yourself (4)
- # malli (7)
- # off-topic (5)
- # polylith (6)
- # re-frame (15)
- # reagent (2)
- # shadow-cljs (5)
- # tools-deps (6)
- # web-security (2)
- # xtdb (5)
I have two questions, but only one here (companion question is on #clojurescript channel).
When I run clj -M --main cljs.main
, Clojure on the JVM creates a repl in a firefox browser instance, but does not present a repl prompt at the terminal. I mention this only to show the minimum necessary to get a browser repl loaded whether or not accessible.
Calva uses cider.piggieback middleware on a JVM repl. Once cider.piggieback establishes the browser repl, when I send say (+ 1 1) from the repl prompt, does it go to the cider.piggieback middleware first and then get passed to the browser repl, or does it go direct to the browser repl?
I’m not sure, but you might find the answer by looking at the piggieback source and the nrepl docs. Piggieback is nrepl middleware. https://nrepl.org/nrepl/design/middleware.html https://github.com/nrepl/piggieback
@brandon.ringe: I think this should be added to Clava docs? WDYT? I do have a question (probably more VSCode related) : Can these settings be done on a per project ? I would like to have debugging and logging options enabled only for project-x when I open it, not all projects.
.Calva JVM debugging options
[source,json]
--
# See docs here and
"calva.jackInEnv": {
"JAVA_TOOL_OPTIONS": "${env:JAVA_TOOL_OPTIONS} -Dorg.slf4j.simpleLogger.defaultLogLevel=TRACE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7896"
},
--
If you think this is something that would benefit others, I think it should be added to the docs.
I think you can set per project/workspace settings in a .vscode
directory in the project.
thanks, I think so - sometimes you need to be able to debug your clojure app and it's not always obvious how to do that
I updated the PR https://github.com/BetterThanTomorrow/calva/pull/1446