This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-18
Channels
- # announcements (5)
- # aws (4)
- # babashka (30)
- # beginners (90)
- # calva (31)
- # clj-on-windows (16)
- # clojure (110)
- # clojure-dev (10)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-norway (20)
- # clojure-spec (25)
- # clojure-uk (15)
- # clojured (2)
- # clojurescript (12)
- # code-reviews (2)
- # community-development (3)
- # conjure (14)
- # datomic (15)
- # defnpodcast (2)
- # events (1)
- # fulcro (17)
- # graalvm (8)
- # gratitude (1)
- # introduce-yourself (2)
- # jobs-discuss (7)
- # kaocha (6)
- # lsp (9)
- # luminus (5)
- # nextjournal (7)
- # observability (9)
- # off-topic (71)
- # portal (5)
- # practicalli (1)
- # rdf (21)
- # re-frame (15)
- # releases (1)
- # shadow-cljs (24)
- # testing (7)
- # tools-build (13)
- # tools-deps (14)
- # xtdb (7)
good grief, enabling strict null checks is so painful
yeah, there are a lot of places in the codebase that can potentially explode, even though most never will. time to rewatch “maybe not” 🙂
Would there be any setting or extension for VSCode that converts short form class names into long form one?
For example
[:div.flex.items.center “Hello”]
into
[:div {:class “flex items-center”} “Hello]
There's an extension called Emmet that does something similar for HTML, but can't find a CLJS equivalent (hoping calva supports?)
I have a (probably seriously flawed) requirement to support IE11 due to its continued use in the UK NHS.
Sorry for nagging. but please use threads to keep your question together. See the pinned channel item about this.
…which I think is possible provided I freeze shadow-cljs at a version round November 2021. To do that I need to start the REPL off with ‘npx shadow-cljs -d cider/cider-nrepl:0.26.0 watch :app’ rather than the current 0.27.0. I can do that by downgrading Calva, I know.
I have tried the :es5 option, but some goog es6 code was still getting through in the project. Very difficult to discover why.
But is there a parameter I can change that will allow me to patch in cider-nrepl-0.26.0 withoutt having to downgrade Calva too?
There is a setting: calva.jackInDependencyVersions
. You can also just start shadow the way you suggested and instead of jack-in, use Connect to a running REPL.
Sorry for the delay - are there any docs on the values I would have to patch in to this calva.jackInDependencyVersions setting? I can’t find any mention of it in Calva Settings or in http://calva.io docs?
If you autocomplete the setting in the settings editor it will fill in the default values. Does that help you?
Ah yes… such a clever editor. My problem is I grew up in an age when editors were mostly dumb!
When I press backspace, I get a "command 'paredit.deleteBackward' not found
error. Anyone else get this? How did you fix it?
I think it was a clash with this extension: Name: Paredit Id: clptn.code-paredit Description: Paredit for VS Code Version: 0.1.1 Publisher: clptn VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=clptn.code-paredit
Is it possible that java processes started with calva’s jack-in keep sticking around? I “disconnected from the REPL” in my project, and even closed the VS Code window, but the JVM for leiningen + the one for my repl are still running…
It's been reported to happen on Linux. Are you using that? In any case, the workarounds for now include: 1. Start the repl in a terminal then connect the repl from Calva. (There's a command Copy Jack-in Command Line to Clipboard to ensure you still get Calva's dependencies injected. 2. Remember to kill the Jack-in process manually (`ctrl+c` in the Jack-in terminal).
Running macOS, not sure if it happens only with leiningen or also with deps.edn projects… Thanks, will keep an eye on that!
OK, when disconnecting, I see java.net.SocketException: Socket closed
stacktraces in the Jack-in terminal and I never realised that the process is still running and can be quit with ctrl+c
. Good to know!
I also started noticing this exact behaviour on Linux recently (few weeks, months). I disregarded it initially but this week I realised it was an issue. wanted to get some time to see what was the issue
It probably isn't about the project type. I think it is a VS Code issue. They've beeen developing the terminal's behaviour quite a lot lately and I think the pseudo terminals might need some special attention from them. And since very long we have a hack in Calva dealing with zombie jack-in processes on Windows.