This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-03
Channels
- # adventofcode (107)
- # announcements (1)
- # asami (14)
- # babashka (67)
- # beginners (89)
- # calva (34)
- # cider (17)
- # clj-kondo (5)
- # cljs-dev (2)
- # clojure (57)
- # clojure-europe (52)
- # clojure-india (1)
- # clojure-italy (1)
- # clojure-losangeles (2)
- # clojure-nl (6)
- # clojure-uk (39)
- # clojurescript (40)
- # community-development (3)
- # conjure (3)
- # cursive (17)
- # datomic (11)
- # docker (13)
- # events (3)
- # figwheel-main (3)
- # fulcro (12)
- # graalvm (7)
- # holy-lambda (7)
- # honeysql (9)
- # introduce-yourself (5)
- # malli (9)
- # minecraft (3)
- # missionary (21)
- # nextjournal (7)
- # off-topic (52)
- # pathom (3)
- # polylith (11)
- # portal (3)
- # re-frame (21)
- # reagent (34)
- # reclojure (7)
- # reitit (1)
- # reveal (11)
- # shadow-cljs (68)
- # tools-build (12)
- # tools-deps (5)
- # vim (4)
- # xtdb (9)
I have a clojure / clojurescript project, curious if there are any thoughts on the filename interface as it gives you warnings "contains a reserved JavaScript keyword" and renames to interface$ is there a way to use an alternative to interface as a filename / namespace for projects including cljs ?
The default name of the interface namespace is interface
. It can be changed in workspace.clj
to something else, e.g. ifc
or something, by setting the :interface-ns
keyword.
okay thanks for that info 🙂
I'm running a project that has a nrepl server, and a classpath root is in the workspace/projects/foo. The nrepl port file is stored there, and I connect to the repl from emacs with cider-connect
command. If I'm in the base or component, the cider-connect cannot find the port number. Is there any idiomatic way to handle this?
I'm curious: why are you running the nREPL from a project instead of from the workspace-level with the :dev
project>
The recommended approach is to start the REPL in the workspace root, then connect your editor to it. Then the stored port number will be in a file at the root, and cider-connect
should look up the file tree to find that file, no matter while file you have open.
sometimes I have to run 2 projects at the same time, and I don't want them to share working directory
One of the big benefits to Polylith is running a single REPL with your entire codebase available in it.
I have projects with mutually exclusive system state, and for debugging I need both to be running a repl. It's not possible to have a single repl for both of them
It generally is if you use Component for such things. That's how we develop/test/debug our projects where we need a "cluster" of processes running in the same JVM. What are you using for state/lifecycle management?