This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-10
Channels
- # announcements (2)
- # babashka (15)
- # beginners (174)
- # calva (16)
- # chlorine-clover (10)
- # clara (7)
- # clj-kondo (27)
- # cljdoc (10)
- # clojars (4)
- # clojure (50)
- # clojure-europe (10)
- # clojure-gamedev (3)
- # clojure-greece (1)
- # clojure-italy (4)
- # clojure-losangeles (1)
- # clojure-nl (16)
- # clojure-sg (1)
- # clojure-spec (7)
- # clojure-uk (41)
- # clojurescript (22)
- # data-science (15)
- # datascript (38)
- # datomic (2)
- # duct (15)
- # emacs (2)
- # fulcro (110)
- # funcool (9)
- # graphql (10)
- # jackdaw (8)
- # jobs (23)
- # joker (1)
- # leiningen (15)
- # luminus (1)
- # malli (20)
- # off-topic (26)
- # pathom (5)
- # pedestal (1)
- # reitit (19)
- # shadow-cljs (78)
- # spacemacs (2)
- # sql (52)
- # tools-deps (99)
- # vim (13)
We're interested in forcing 2-space indent in Calva but can't work out how. Essentially we currently get this from the formatter:
(rf/reg-sub :user/me
(fn [db] (:user/me db)))
but what we want is this:
(rf/reg-sub :user/me
(fn [db] (:user/me db)))
I saw this comment suggesting it might be in the works: https://github.com/weavejester/cljfmt/issues/154#issuecomment-474238963
Is support for a Tonsky-style formatting in the works? I realise this is a dev channel so if I'm in the wrong place then I humbly apologise.@conan, this is the right place to ask, and this is in the works. You can help, by engaging in testing of this PR: https://github.com/BetterThanTomorrow/calva/pull/546
I just noticed that the build fails so there is no VSIX to download, but please see https://github.com/BetterThanTomorrow/calva/wiki/How-to-Hack-on-Calva to learn how to run the extension in debug mode.
That depends on wether you have enabled evaluate on save. But try to either evaluate the ns form, or load the file. I think it should make Calva follow the aliases...
Now I am getting errors:
file not on classpath
{:file-path "/home/slawek/Projects/cljs/wires/src/main/wires/ui/wires.cljs"}
ExceptionInfo: file not on classpath
shadow.cljs.repl/repl-load-file* (repl.clj:254)
shadow.cljs.repl/repl-load-file* (repl.clj:227)
shadow.cljs.devtools.server.worker.impl/do-repl-rpc (impl.clj:791)
shadow.cljs.devtools.server.worker.impl/do-repl-rpc (impl.clj:751)
shadow.cljs.devtools.server.worker.impl/eval16115/fn--16116 (impl.clj:831)
clojure.lang.MultiFn.invoke (MultiFn.java:234)
shadow.cljs.devtools.server.util/server-thread/fn--15683/fn--15684/fn--15692 (util.clj:285)
shadow.cljs.devtools.server.util/server-thread/fn--15683/fn--15684 (util.clj:284)
shadow.cljs.devtools.server.util/server-thread/fn--15683 (util.clj:257)
java.lang.Thread.run (Thread.java:834)
No results from file evaluation.
when trying to evaluate cljs file with ctrl+alt+c enter