This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-07
Channels
- # announcements (3)
- # beginners (124)
- # calva (60)
- # cider (81)
- # cljs-dev (65)
- # cljsrn (1)
- # clojure (268)
- # clojure-dusseldorf (2)
- # clojure-europe (3)
- # clojure-italy (9)
- # clojure-losangeles (1)
- # clojure-nl (22)
- # clojure-russia (3)
- # clojure-spec (24)
- # clojure-uk (34)
- # clojurescript (72)
- # code-reviews (8)
- # cursive (20)
- # datomic (32)
- # fulcro (49)
- # jobs (1)
- # jobs-discuss (15)
- # juxt (10)
- # lein-figwheel (10)
- # nrepl (4)
- # off-topic (37)
- # overtone (1)
- # portkey (2)
- # protorepl (8)
- # random (1)
- # re-frame (1)
- # reagent (43)
- # reitit (8)
- # ring (16)
- # ring-swagger (2)
- # rum (6)
- # shadow-cljs (63)
- # specter (2)
- # testing (32)
- # tools-deps (32)
- # unrepl (1)
- # vim (3)
@lspector, I can relate. I have issues jumping between different editing environments, even things like IntelliJ and vscode, let alone emacs.
@tomd: not sure my answer about tests made all that much sense. But maybe it gets clearer once you familiarize yourself some with the spec. What I have done so far is to introduce my changes Test-first. And maybe @mseddon knows about meta-expressions and can advice about if that also should be covered by the change.
@pez I'm trying to familiarisze myself with the Calva codebase so hopefully I understand things better 🙂
I only just read this:
> Calva Formatter is made using a mix or TypeScript and ClojureScript. Generally the integration with VS Code is done in TypeScript and the actual formatting is done in ClojureScript.
which expalins a lot. I'm just looking through calva-lib now. I assume the tests all live in test/calva/fmt/
?
@pez I am not particularly familiar with tmLanguage
atm, to me the phrase 'meta-expressions' makes me think of M-Expr's which is definitely not something lisp has used for 50 years 🙂
@tomd , the tests for the grammar lives in https://github.com/BetterThanTomorrow/calva-fmt/tree/develop/atom-language-clojure/grammars/spec
See the readme in https://github.com/BetterThanTomorrow/calva-fmt/tree/develop/atom-language-clojure for some tips on how to run them.
calva-lib is not involved for this grammar thing. It is quite isolated. But I needed to move it inside the calva-fmt repo to keep some of my sanity. 😀
does calva have the equivalent of cider's doc
function to get the docstring for a var?
@mattly: If you just want to see the docstring you can hover on the var. Or using the keyboard cmd-k cmd-i
. If you want to print the docstring (I am not sure what that cider-function does) you can peek at the definition of the var using alt+f12
and copy the string, or go to the definition with just f12
(also cmd+click
).
I build muscle memory from looking up stuff with the command palette and then noting the keyboard shortcut
I have on my todo to fix some jack-in commands that inject the needed middleware for you.
{:repl {:plugins [[cider/cider-nrepl "0.19.0-SNAPSHOT"]
[lein-figwheel "0.5.18-SNAPSHOT"]]
:dependencies [[cider/piggieback "0.3.10"]
[nrepl "0.5.0"]
[figwheel-sidecar "0.5.18-SNAPSHOT"]]
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}}}
I think both those SNAPSHOTs might have been cut since I updated the file, but this should work.