This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-21
Channels
- # aws (2)
- # aws-lambda (1)
- # beginners (62)
- # cider (31)
- # cljs-dev (16)
- # cljsrn (8)
- # clojure (115)
- # clojure-greece (3)
- # clojure-israel (2)
- # clojure-italy (13)
- # clojure-nl (8)
- # clojure-russia (5)
- # clojure-spec (3)
- # clojure-uk (146)
- # clojurescript (108)
- # clojutre (5)
- # code-reviews (3)
- # cursive (48)
- # datomic (22)
- # editors (20)
- # emacs (7)
- # fulcro (16)
- # graphql (10)
- # mount (2)
- # off-topic (47)
- # onyx (22)
- # re-frame (100)
- # reagent (5)
- # reitit (7)
- # ring-swagger (6)
- # rum (5)
- # shadow-cljs (51)
- # specter (2)
- # tools-deps (95)
- # vim (10)
- # yada (7)
I have just started clojure does anyone uses VScode for clojure. If yes what plugin do you guys suggest me? Main feature i want to have is jumping to the functions definitions, please help.
I have used Clojure plugin by Andrey Lisin, func jump is only working for the inbuild funcs like println
, reduce
the jump is not working for my defined functions, please help
Hey @riteeks56 I'm not a VScode user, but to me it seems like Calva (https://marketplace.visualstudio.com/items?itemName=cospaia.clojure4vscode) is the more fully featured one.
@pez is always present here, he's one of the developers as far as I'm aware
Ya but I am getting command 'calva.connect' not found
when try to connect to calva connect. Should i do something more after installing the pulgin?@pez
Thanks @andre.stylianos
It could be that Calva is not activated. It wakes up when you open a clojure file. And only then the connect command is available.
Also, Calva needs some middleware to be present and working. This is a profiles.clj
that works:
{:repl {:plugins [[cider/cider-nrepl "0.17.0"]]
:dependencies [[org.clojure/tools.nrepl "0.2.13"]
[cider/piggieback "0.3.5"]
[figwheel-sidecar "0.5.16"]]
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}}}
so i have to put this in profiles.clj
and then reload vs code then it should work?
Thanks for the help @pez
The first problem you reported was not about middleware, though. It was either that you hadn’t opened a clojure file or that the Calva extension failed to activate (happens at times, I haven’t figured out why).
still getting command 'calva.connect' not found
. Idk what is the reason. I desperately wanted to use this plugin as its features seems to be pretty good but i am unable to use. @pez (i tried multiple times)
When the dependencies are satisfied you will be able to get documentation, peek at definitions and jump to implementations for built-in symbols as well as your own or any libraries. Even Java implementations (but not JavaScript).
I think that your problems with Andrey Lisin’s plugin might be a dependency issue. (Even if I hope you will find Calva the better of the two, generally.)
@nick652: I have just released a new version of Calva where the ontype-indenting is moved to Calva Formatter (which is installed together with Calva). I was just about to try fix the problem with indenting conflicts between Format Selection/Document and the ontype indenter. But to me it seems that it works. The
(or
this
that)
case at least. And some others I have tried. Can you check if there are still issues with this? I do not understand why it would be fixed by this refactoring of mine, but anyway, I am happy if there is less work left. 😃That's great news! Thanks for the update. I'll pull the new version down in a bit and let you know if that issue is gone for me as well.