This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # adventofcode (95)
- # announcements (22)
- # aws (2)
- # babashka (14)
- # beginners (133)
- # bristol-clojurians (2)
- # calva (43)
- # cider (11)
- # clj-kondo (82)
- # cljsrn (20)
- # clojure (100)
- # clojure-europe (12)
- # clojure-italy (9)
- # clojure-nl (7)
- # clojure-poland (1)
- # clojure-spec (4)
- # clojure-uk (105)
- # clojurescript (42)
- # cryogen (1)
- # cursive (6)
- # data-science (1)
- # datomic (5)
- # euroclojure (2)
- # figwheel (4)
- # fulcro (4)
- # garden (1)
- # graphql (3)
- # hoplon (4)
- # jobs (1)
- # joker (3)
- # luminus (4)
- # malli (15)
- # off-topic (129)
- # pathom (10)
- # re-frame (43)
- # reagent (7)
- # reitit (3)
- # shadow-cljs (31)
- # vim (6)
- # yada (39)
hey - does "peek definition" work for cljs? i'm struggling to make it work - or i'm missing something
@pez the test resutls above is for a Windows 10 machine. I can try on a Mac at home if you really need it.
@dennisa, it’s fine. I am using Mac. The implementation is different between the two, so it is good you can test on Windows once there is something to test. Help me remember by adding an issue about it.
@teawaterwire yes, it is supposed to work for cljs. Two questions: 1. Have you evaluated the file? 2. How did you connect Calva to the project?
hi (sorry for the delay)
1. i didn't evaluate the file
2. i'm running
shadow server and
shadow watch app then connecting via "connect with existing REPL"
Try letting Calva start the repl for you (aka Jack in). If that works, then the problem is that the project does not have the dependencies Calva needs.
oh yeah it works indeed! when jacking-in i saw it downloaded cider stuff so i guess these are the deps missing
Great. You can read some about jack-in and connect here: https://calva.readthedocs.io/en/latest/connect.html
And if you really want to figure out jack-in: https://calva.readthedocs.io/en/latest/jack-in-guide.html 😃
Hello all, I’ve really enjoyed using Calva with VSCode, just the inline REPL evaluation makes is worth it. Awesome.
I’ve set one by starting a REPL at the terminal e.g.
MY_ENV=hello lein repl and then using the “connect to a running REPL” but wondering if there’s something for a project/Jack-in REPL
Glad Calva brings enjoyment, @ilyab ! There is a JackInEnv setting. See if it does what you want it to do.
This should be built from the exact same sources. Can you give it a spin? https://3162-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.67-fix-select-bf-stack-506-ec592a45.vsix
hi @pez, two questions:
1. I was the one that contributed this tip originally https://calva.readthedocs.io/en/latest/customizing.html#wrap-using-like-cursive but i can't get it to work anymore with the most recent updates. any ideas on how to achieve this behaviour now?
2. I can't remember how I had this working before -- how do you prevent the deletion of parens when the deletion would cause unbalancing? (ie. if i hit backspace on
(foo) then the closing paren shouldn't be deleted)
yeah, i know. i had to redo a bunch of bindings 🙂 got everything working except for these two lingering issues
do you have any setting changing strict mode? I had one disabling it from a few months ago and had to remove that setting from the json
now whenever I go into a clj or cljs file all those bindings just work automatically, but outside those files they do other things
So, 1 is like the built-in vscode behaviour, but you don’t want to have to press left-arrow after?
i'm looking to mimic the intellij behaviour, where i can select a form, wrap it with something and then the cursor ends up on the left so like
@carmen Currently it can’t be done, because when rewriting Paredit I spent some time making sure the selection was retained… 😃 I could change that, because that behaviour is already built in to vscode. Please file an issue about it. It’s an easy enough fix, but I need to think about the implications some.