This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-14
Channels
- # adventofcode (12)
- # aleph (8)
- # announcements (6)
- # babashka (16)
- # beginners (217)
- # biff (7)
- # calva (30)
- # chlorine-clover (4)
- # cider (3)
- # clj-kondo (15)
- # cljdoc (6)
- # clojure (50)
- # clojure-europe (86)
- # clojure-finland (2)
- # clojure-nl (1)
- # clojure-norway (37)
- # clojure-uk (2)
- # clojurescript (8)
- # cursive (10)
- # datomic (13)
- # emacs (1)
- # fulcro (41)
- # helix (1)
- # humbleui (2)
- # joyride (7)
- # juxt (4)
- # lsp (19)
- # off-topic (47)
- # pathom (14)
- # polylith (5)
- # portal (7)
- # reagent (10)
- # releases (4)
- # sci (1)
- # scittle (18)
- # shadow-cljs (54)
- # test-check (2)
- # tools-deps (28)
For some reason the repl starts mixing up the colors, could someone suggest a fix?
This is probably clojure-lsp which isn't picking up that the file has changed from ”underneath” (e.g. som git activity). What I do is that I enter a character and undo it. Then clojure-lsp refreshes its tokenization.
I believe this is the old one I reported a few year ago
Also there is another one https://github.com/BetterThanTomorrow/calva/issues/761
there is a workaround for that
It's two different bugs with similar symptoms. See here for a workaround for the two issues pasted last in this thread: https://github.com/BetterThanTomorrow/calva/issues/761#issuecomment-769960585
I see that I already have that enabled. Going through the vscode addons atm to see if theres something else trying to color the code aswell
@U02CX2V8PJN We all have this problem. The only remedy I've found is this. https://clojurians.slack.com/archives/CBE668G4R/p1668427924951079?thread_ts=1668424143.215629&cid=CBE668G4R
You could disable semantic tokens to confirm that this is the problems. Personally I prefer the glitches over having that disabled.
Hopefully I'm not mistaken that this is a Calva thing but when I am using clojure.core/test
, it offers to autocomplete the body of deftest
for me. When I hit enter, it fills in the body but also wraps the whole deftest
in an extra set of parens. That is not to be expected right?
Output like this:
((deftest name-test
(testing "Context of the test assertions"
(is (= assertion-values)))) )
I get the same. I am guessing a bug here. For workaround you can type your hotkey for Calva Paredit: Splice Sexp
to remove the extra parens.
Cool, that's a new shortcut for me. Finally getting a hang of the structural editing and it is 👌
Splice is super helpful in so many cases. Good one to learn. It splices the current form contents into its parent. Or put more simply, it removes the innermost bracket/paren/quote pair surrounding the cursor.
I don’t know were this issue is, really. clojure-lsp provides that snippet. But I think it is VS Code that wraps it. Or something.
Okay, @U0ETXRFEW. I'll drop a line into #CPABC1H61 and maybe put in a bug report
Is none that from Calva? Only other likely source I can think of is Error Lens, but this screenshot was taken after disabling that and restarting.
Right, so I got the wrong picture in my head about ”inline”. (Which probably is the correct word for it, this was just me. 😀) Adding a screenshot to @U9A1RLFNV’s answer.
Is there a way to clear/refresh the Test Explorer? Seems to get filled up with stale entries when editing the names of tests.
It could be that Calva needs to implement some more of the API for this. I don't know, tbh. @U0K592YDP knows most about it. Unfortunately he's not working with Clojure these days, so it might be that we need to investigate this ourselves.