This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-26
Channels
- # adventofcode (2)
- # announcements (9)
- # bangalore-clj (1)
- # beginners (158)
- # calva (32)
- # cider (2)
- # clara (4)
- # cljdoc (40)
- # cljs-dev (3)
- # cljsrn (6)
- # clojure (45)
- # clojure-brasil (2)
- # clojure-dev (35)
- # clojure-europe (9)
- # clojure-italy (7)
- # clojure-nl (2)
- # clojure-uk (29)
- # clojurescript (144)
- # code-reviews (3)
- # core-logic (9)
- # cursive (11)
- # datascript (8)
- # datomic (9)
- # duct (1)
- # figwheel (6)
- # fulcro (11)
- # hyperfiddle (27)
- # kaocha (23)
- # luminus (1)
- # off-topic (7)
- # onyx (2)
- # pathom (3)
- # re-frame (61)
- # reagent (12)
- # remote-jobs (10)
- # shadow-cljs (40)
- # spacemacs (4)
- # sql (27)
- # tools-deps (6)
- # unrepl (3)
- # vim (47)
I revived an un-pulled PR to the cljfmt
project, that adds an option to have map items and bindings and such aligned in columns. Latest Calva Formatter has this as an experimental feature. Please try it out and let me know what you think! It doesn't always do the right thing, and works recursively so apply it with some precision.
@pez There’s a discussion starting over at clojureverse wrt formatting that you might have interest in joining. Link in #clj-commons
@john not that I know of. There is one for shadow-cljs, but I guess you are not using that either?
You sort of still need lein installed (unless you are using shadow). Just because I have been lazy with that.
I was able to use Calva with this test project. https://github.com/PEZ/deps-edn-figwheel Then lein is only used for connecting the Calvas terminal repls (`lein repl :connect`, not for managing the project in any way.
I intended to add a repl-y connect task to that project and rid Calva of the silly dependency on lein for connecting. But never did. Might be time to do that.
But if you have a command that connects with the only argument being host:port
, then you can just change the Calva setting for the Connect REPL Command to that command and things should work.
When Calva connects to the nREPL server it also opens up a Terminal session (in the VSCode built in terminal) and runs the command found in the setting for Connect REPL Command with host:port
appended to it. This so that you can do stuff like evaluate current top level command in REPL Terminal.
like ideally you'd use the CLI tools (because most people should have them installed) but it wouldn't support windows 😭
Yeah, I can't solve all those things. But just have a smarter way to inject the host and port would help somewhat.
That could certainly be a way to do it. I think maybe that it could eat up memory if it fires up its own JVM?
lein repl :connect localhost:50732
✔ ~/Documents/github.com/nrepl-clj
21:22 $ lein repl :connect localhost:50732
Connecting to nREPL at localhost:50732
CompilerException java.lang.ClassNotFoundException: clojure.tools.nrepl, compiling:(null:1:82)
#namespace[user]
Error loading namespace; falling back to user
nil
user=>
{
:aliases
{:cider-clj {:extra-deps {org.clojure/clojure {:mvn/version "1.9.0"}
cider/cider-nrepl {:mvn/version "0.18.0"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}}}