This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-29
Channels
- # announcements (9)
- # aws (1)
- # beginners (133)
- # boot (2)
- # calva (94)
- # cider (48)
- # cljdoc (7)
- # cljsrn (22)
- # clojure (128)
- # clojure-europe (22)
- # clojure-finland (7)
- # clojure-greece (6)
- # clojure-losangeles (3)
- # clojure-nl (81)
- # clojure-spec (30)
- # clojure-uk (60)
- # clojure-ukraine (1)
- # clojurescript (45)
- # core-async (26)
- # cursive (18)
- # datomic (12)
- # defnpodcast (1)
- # duct (4)
- # editors (4)
- # emacs (6)
- # fulcro (37)
- # graphql (4)
- # jobs (2)
- # jobs-rus (1)
- # juxt (7)
- # kaocha (2)
- # leiningen (1)
- # nrepl (22)
- # off-topic (2)
- # re-frame (16)
- # reagent (8)
- # reitit (22)
- # ring-swagger (5)
- # shadow-cljs (81)
- # tools-deps (4)
trying to migrate to calva from emacs, so far so good. It's painful reprogramming the central nervous system so brutally.
I noticed the hover-help to get the docstrings doesn't seem to be working. I'm wondering if I have everything setup right.
And same answer đ. It is probably due to insufficient nrepl dependencies. Calva doesn't yet inject them for you. If you scroll up some, you'll find a long and beautiful command line that injects everything that's needed (and then some, if you're not using figwheel).
Oh, noes, that had suffered the Death oâ Slack! No worries, though, here goes:
lein update-in :dependencies conj "[nrepl \"0.6.0\"]" -- update-in :dependencies conj "[cider/piggieback \"0.4.0\"]" -- update-in :plugins conj "[cider/cider-nrepl \"0.21.2-SNAPSHOT\"]" -- update-in "[:repl-options :nrepl-middleware]" conj "[\"cider.nrepl/cider-middleware\"]" -- update-in "[:repl-options :nrepl-middleware]" conj "[\"cider.piggieback/wrap-cljs-repl\"]" -- repl
It might make sense to plop that magic lein command into the wiki - it will trip up even a patient n00b
But, yeah, it should go into the Getting Started page as well. Feel free to edit the wiki.
a connundrum likely inherited from cider. Getting that guy setup was a pita too, although it has gotten a lot easier recently
If you are of the brave type, @hoppy, I welcome you to help beta test the new REPL window. It makes things quite a bit more like with Emacs.
I had always looked for the "hey stupid, this is how the pieces fit together, and what does what"
The cljs repl story is quite nice with Calva I should say. Once you have gotten it connected, at least.
With Cider I get a bit confused which repl is working for me, but with Calva it is easy to know that and also easy to switch.
Hereâs the dev build with the new REPL window, anyway. It has quite a few rough edges, but I still find it more productive than the released Calva.
I'm trying to wean myself off emacs, this seems a much saner path. I need to be able to get new people into clojure, and as long as we have "step 1, master emacs" we are toast
Unfortunately I'm such a cider-freak it has bound itself to my spinal column, and I can't get much done without it.
Haha, yeah, that is sort of the why Calva exists. Some say itâs good to weed out the not-so-brave, but I kinda feel it is better to have this option.
Thereâs still a long way to go for Calva to give Cider a match, but VS Code is nice, and weâre slowly improving things.
I think this is the right trajectory. Guy that works with me touts cursive. I plopped that on my laptop and fired it up, and the damn thing did a short-field takeoff when the fans spun up.
not sure how to consume the .vsix (I'm a vscode noob). I tried to just do "code <blah>" like I found instructions for, but it just tries to open it like a data file
Oh, Iâm sorry, was afk. What I do is I do it from the extensions pane in vscode. Thereâs âŠ
menu there at the top right.
That said, I have this in my settings.json
:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"meta.comment-expression.clojure"
],
"settings": {
"fontStyle": "italic"
}
},
{
"scope": [
"constant.keyword.clojure"
],
"settings": {
"foreground": "#9cdcfeff"
}
},
{
"scope": [
"punctuation.section.expression.begin.clojure",
"punctuation.section.expression.end.trailing.clojure"
],
"settings": {
"foreground": "#999"
}
}
],
"[Default Dark+]": {
"textMateRules": []
}
},
Never mind the comment-expression
things, they are for a dev build of Calva where I try to tokenize comments.
somethings just off. I got it bound to a key, and I wee the evaluation message happen, but it doesn't seem that the symbols get defined
Itâs a bit worse in the dev build you are using. It eats up more of the error messages⊠But itâs probably due to some form not compiling. Try evaluating them one at a time from the top. (`ctrl+alt+v space` is your friend here).
having a bit of fun here. so I had that option to chase the namespace from before. Now with the new repl when I'm in my file window, it shows that namespace, when I got back to the repl window, it goes back to user->
But I think switching that option off is fine. I actually think we might remove it before release. The REPL window will temporarily switch namespace when you evaluate a form from a file. Which is enough of help, me thinks.
I recmmend installing Clojure Warrior as well. It has raindbow parens and a sane highlight of current enclosing parens. Then disable vscode default matching paren highlight for clojure files (which is just weird).
Nothing in particular, no, but after having used it a while, Iâd like to know what things hurt the most so that we can prioritize what to fix before release.
Some usual keys do work, some donât. It is actually a completely new clojure editor written from scratch and hosted in a webview.
Oh, yes, would not have been possible w/o @mseddon, whoâs a frontend wiz of proportions.
It really has the potential of powering lots of web based clojure editing. But weâre not opening that box up until we have it working in Calva.
But now and then I visit https://repl-interactor.netlify.com just to dream about it some.
Not much going on right now in development, but yes, please see the pez/repl+jack-in
branch.
The jack-in functionality needs us moving the parsing of edn files into the cljs parts of the code. Might be something to take a look at.
I'm probably not understanding the intent of the line-editing in the new repl. Let's say I have "(query [:job-numbers])" in there, and I run it. Good. my next move is to alt-up and then I want to edit it to read "(count (query [:job-numbers]))" and rerun it. 'tis an all out war....
I would type (count the begonning of the line and then slurp forward. Then hit END and submit it.