This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (1)
- # babashka (39)
- # babashka-sci-dev (59)
- # beginners (60)
- # calva (14)
- # circleci (1)
- # clj-kondo (16)
- # clj-on-windows (1)
- # clojure (95)
- # clojure-europe (5)
- # clojure-norway (2)
- # clojurescript (34)
- # conjure (2)
- # core-async (55)
- # datomic (4)
- # emacs (54)
- # holy-lambda (5)
- # hyperfiddle (2)
- # interop (4)
- # lsp (8)
- # malli (3)
- # nrepl (4)
- # off-topic (34)
- # polylith (5)
- # reitit (3)
- # releases (2)
- # shadow-cljs (85)
- # specter (2)
- # testing (8)
- # tools-deps (12)
How do I get
clj-kondo to stop trying to lint the
output.calva-repl file? I'm sure I messed something up, because I'm sure it's not default behavior
I would try with a minimal project and add things from the misbehaving project in and out to try find the culprit.
Dear Calva-friends, latest Calva is now https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.268 • Fix: https://github.com/BetterThanTomorrow/calva/issues/1683 • https://github.com/BetterThanTomorrow/calva/issues/1498 Thanks to @lilactown for finding the rather stupid limitation to hard require builds in shadow-cljs projects. 🙏 Thanks to @domagala.lukas for figuring out the proper way to reconcile lsp and nrepl providers. 🙏 Happy Clojure coding! ❤️
Hi, I am wondering how to evaluate some code snippet when I presse
ctrl+s to save the file. I would like to evaluate clip repl
reset function to restart components.
Hi there! In some thread it was mentioned an extension that lets you create commands that string together other commands. Maybe that would let you do this. So you would then
1. define a Custom REPL Snippet, with a
2. string together the command for saving and the command for executing that snippet.
I think the command for saving a file might be
workbench.action.files.save (consulting this list https://gist.github.com/skfarhat/4e88ef386c93b9dceb98121d9457edbf). And the command for evaluating that snippet would be
calva.runCustomREPLCommand with the
I have not tried this, but am quite curious if it works or not. 😃 All that said, doing
cmd+s ctrl+alt+space s isn't all that much either.
I have a set of :jvm-opts specified in my deps.edn file. However, when I create a REPL in Calva, these options aren't shown on the java invocation. Are these options actually being passed to the REPL JVM, or do I have to start an external REPL and connect to it to get the flags passed?
I think this should work so long as you’re selecting the alias that contains the jvm-opts when you jack-in. Here’s an example about using reveal with Calva, that uses :jvm-opts: https://calva.io/reveal/#tips-about-font-size
Are these options shown anywhere when the REPL is started? I'm not seeing them in the command line that starts the REPL. I'm just not certain whether this is an indicator or not.
:jvm-opts only work in an alias not at the top-level of your
deps.edn file @U0DTU8J83
(you didn't show your
deps.edn but I suspect that is your issue)
Depending on what JVM options you are setting, you may be able to tell via
(System/getProperties) which will show all of the
-D JVM options.
@U04V70XH6, you were correct - I fixed the location of the :jvm-opts, putting them in my :dev alias and now I'm getting the option in System/getProperties.