This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-30
Channels
- # adventofcode (22)
- # announcements (7)
- # beginners (32)
- # calva (56)
- # cider (96)
- # cljdoc (7)
- # cljs-dev (50)
- # clojure (173)
- # clojure-austin (8)
- # clojure-brasil (7)
- # clojure-europe (10)
- # clojure-greece (2)
- # clojure-italy (10)
- # clojure-nl (9)
- # clojure-spec (18)
- # clojure-uk (143)
- # clojurebridge (3)
- # clojurescript (9)
- # cursive (14)
- # data-science (1)
- # datascript (4)
- # datomic (9)
- # docker (7)
- # emacs (2)
- # figwheel-main (4)
- # fulcro (18)
- # garden (1)
- # graphql (13)
- # hyperfiddle (4)
- # juxt (2)
- # off-topic (43)
- # pathom (1)
- # pedestal (17)
- # portkey (163)
- # re-frame (4)
- # reitit (7)
- # rum (4)
- # shadow-cljs (139)
- # spacemacs (5)
- # sql (14)
- # unrepl (2)
Can I commit my configuration for indentation and resolution as a file to my repo?
Hm…I’m getting continual reports of cylcic requires when I use the require-macros trick in a cljc file:
I get this when I try to use nREPL reload current ns, and I also get it when trying to run tests that will reload nses
strange that this doesn’t happen to me on other projects, which makes me think I’ve made a mistake somewhere, but this is not a particularly helpful error message
@todo tools.namespace has facilities for 1) finding clj(s/c) files, 2) reading the ns declaration
@potetm: Good point. With regards to @tony.kay’s problem above, I'm surprised no one has written a tool that parses all *.ns , looks for loops, and offers sensible errors [ I have run into similarly annoying to debug cyclic dependency issues in the past ]
@cfleming What’s strange is all of the code compiles and runs just fine…it’s just in cursive that it is doing this.
so that makes me thing the IDE has a bug….perhaps you could try to reproduce locally: https://github.com/fulcrologic/fulcro-incubator The feature/routing-experiment
branch. Using deps.edn. Trying to run tests in the IDE for https://github.com/fulcrologic/fulcro-incubator/blob/feature/routing-experiment/src/test/fulcro/incubator/dynamic_routing_test.cljc. (Using IDE action run tests in current NS in an nREPL set up with IntelliJ classpath with Clojure Deps aliases “dev, provided, test” enabled. (at commit 1e17373fca5e04a7f298789f263ff5f5f85f4beb, this has changed based on messages below)
Ah, If I split the test out of a CLJC file into a CLJ and CLJS file, then I can run the tests fine.
but then, of course, I have a ton of duplicate code (the files are otherwise identical)
Ahah! I think I found it. I was using deftest from the workspaces library (which is supposed to emit a deftest)…when I switch back to normal deftest it is fine.