This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-13
Channels
- # announcements (1)
- # babashka (28)
- # beginners (49)
- # calva (34)
- # cider (8)
- # clj-kondo (7)
- # clojure (114)
- # clojure-austin (1)
- # clojure-denver (15)
- # clojure-europe (8)
- # clojure-norway (3)
- # clojurescript (83)
- # datahike (1)
- # datomic (5)
- # emacs (6)
- # events (1)
- # helix (11)
- # honeysql (2)
- # hyperfiddle (95)
- # jackdaw (1)
- # jobs-discuss (6)
- # kaocha (5)
- # lsp (15)
- # malli (3)
- # off-topic (171)
- # polylith (17)
- # re-frame (18)
- # releases (1)
- # ring (3)
- # sql (7)
Dear Calva friends, https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.377
• https://github.com/BetterThanTomorrow/calva/issues/2245
Thanks @craig373 for pointing this out and for helping with figuring out a behaviour to aim for. 🙏 ❤️
Is it just me or are all rich comments now executed in the user ns?
my vscode calva seemed to break this morning after a vs code reboot. Primarily my comments don’t eval and i get sent back to user namespace. is this the fix for my problems?
The workaround is to repeat (ns …)
at the start of the comment block
is that a temporary work around? i’d rather just use an old version of calva myself for the time being.
I think so, although I wasn’t part of the design for this change 😅
no problem @U0ETXRFEW. there is an easy work around
So, I broke rich comments with v2.0.377. I’m sorry about that! I’ll fix it tonight. Workaround is to have an in-ns or ns form at the start of the comment. Or downgrade to 376 for now.
https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.378 • Fix: https://github.com/BetterThanTomorrow/calva/issues/2249 Again, super sorry for the inconvenience! 😢 I don’t know how I could miss that test case…
Thanks for the timely fix: about 30 minutes after you released this, I needed to do some debugging on production via the from Calva/Portal and ran into the RCF bug, so a quick update and reload and I was back in debugging business!
Not sure if this is related, but all my evals for the latest version (2.0.381) seem to be in the user ns, regardless of what file I'm in
Oh, no idea what could be up there, @U1G869VNV. Can you try with some previous versions and see if it is any different?
So I tried all versions after 2.0.376, and none of them seem to work for me. 2.0.376 is the first one that works for me.
Ohh, the cause seems to be related to how complex the ns declaration is: (ns portal.runtime)
works as expected, but (ns ^:no-doc portal.runtime)
will always eval my code in the user ns.
Thanks. I thought I had covered that case, but obviously not. Will fix. Please file an issue.
I looks like the nsCheckCursor should already be skipping metadata https://github.com/BetterThanTomorrow/calva/blob/published/src/util/ns-form.ts#L41 :thinking_face:
Calva treats metadata + symbol as one "thing": if you have (defn ^:foo ^:bar x[])
go back and forth by a single sexp, you'll see it treats ^:foo ^:bar x
as a single sexp.
(which it is)
I think if it went forward two sexp's and then backward to whitespace instead of forward to whitespace after one sexp (line 42), that might work? Ah, no, that's just skipping whitespace back or forward isn't it... my bad...
Not sure, I've gotten spoiled with non-stateful code that I'm a little lost with the mutable cursors here 😂
I couldn't figure out how to get it working, but https://github.com/djblue/calva/commit/ca8cf2fbd56c915076f70c05fbcac2a258ab7c2b is an example for reproducing https://github.com/BetterThanTomorrow/calva/issues/2266.
I have it fixed in my local build. I’ve tripped myself up a bit with the cursor semantics around meta data I’ve invented… I’m considering if I should fix that too or just plaster this case up. Whatever I choose to do, fix should be out tonight.
I pulled in the latest and everything is working for me, thanks for the quick fix! ❤️
https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.378 • Fix: https://github.com/BetterThanTomorrow/calva/issues/2249 Again, super sorry for the inconvenience! 😢 I don’t know how I could miss that test case…