This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-02
Channels
- # announcements (2)
- # babashka (10)
- # beginners (61)
- # calva (17)
- # cider (27)
- # clj-kondo (14)
- # clojure (230)
- # clojure-austin (4)
- # clojure-europe (17)
- # clojure-france (6)
- # clojure-hungary (3)
- # clojure-norway (30)
- # clojure-sweden (9)
- # clojure-uk (2)
- # clojurescript (58)
- # conjure (11)
- # core-async (7)
- # cursive (74)
- # datalog (2)
- # datomic (15)
- # events (8)
- # figwheel-main (5)
- # fulcro (2)
- # graalvm (23)
- # graphql (2)
- # helix (17)
- # humbleui (2)
- # jobs (2)
- # kaocha (6)
- # lsp (19)
- # malli (7)
- # nbb (51)
- # off-topic (33)
- # pathom (26)
- # pedestal (2)
- # polylith (1)
- # portal (4)
- # re-frame (17)
- # react (3)
- # reitit (5)
- # releases (2)
- # remote-jobs (2)
- # shadow-cljs (18)
- # sql (65)
- # tools-deps (8)
- # xtdb (28)
Weird issue with coloring:
If I have a defn
with a docstring and a 1-character argument...
(defn foo
"docstring"
[x])
... the argument vector displays a white background with black text for all dark themes, or either black or grey background with white text for all light themes.
Anyone else with this problem? Any clue what could be causing it?
Correction: Only happens specifically with the symbol x
(or maybe x
and some not yet determined other chars). Since "\x"
is an invalid string, I'm thinking something to do with string escaping somewhere in Calva or its deps?Goes away if if I add more chars to var, add space inside vector, move vector to same line as docstring, or remove docstring. I checked it out with the Scopes Inspector, but that shows the same scopes as normal, and even lists the correct fg/bg colors, making no mention of white or black colors.
I doubt Calva has anything to do with this. As always, I could be wrong. Can you run an Extension Bisect and see what it gives?
Great tip! Thanks.
Caused by Todo Tree, which apparently was seeing [ ]
and [x]
as checkbox representations of todos.
---
But I was also able to use Extension Bisect it to figure out that Calva has been causing me this error:
[Extension Host] (node:350285) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `code --trace-deprecation ...` to show where the warning was created)
The suggested code --trace-deprecation
has never worked on my system, but the Bisect pointed the finger clearly at Calva.
We've had that with Calva from day one 😃 Never figured it out. If you do, please feel invited to PR it!
On Arch, the flag does nothing. 😞 But when you have a chance, just try starting Code from command line with that flag added, and see if it points to anything useful.
I don't know what the actual security issue is, but when something is deprecated for security reasons, its usually a good idea to raise it above "it bothers me". 😄