This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-11
Channels
- # announcements (4)
- # babashka (4)
- # beginners (164)
- # calva (47)
- # cider (1)
- # cljs-dev (29)
- # cljsrn (3)
- # clojure (137)
- # clojure-europe (23)
- # clojure-nl (3)
- # clojure-spec (7)
- # clojure-uk (44)
- # clojurescript (35)
- # component (8)
- # conjure (119)
- # cursive (32)
- # datomic (12)
- # emacs (31)
- # figwheel-main (36)
- # graalvm (10)
- # jobs (2)
- # kaocha (1)
- # lein-figwheel (3)
- # meander (15)
- # mount (3)
- # off-topic (9)
- # pathom (8)
- # quil (4)
- # re-frame (13)
- # reagent (15)
- # remote-jobs (10)
- # shadow-cljs (128)
- # slack-help (2)
- # spacemacs (8)
- # test-check (6)
- # xtdb (6)
any ideas as to what can cause this assoc
to not resolve to cljs.core/assoc
for indentation purposes? indentation cannot be configured in any way - it will create an entry for example.core/assoc
in Project.xml
but still will not format the form according to any setting (not example.core/assoc
nor cljs.core/assoc
)
@U050RLRRQ I think the problem is that that assoc is actually resolving to two places, but both in the cljs.core namespace. It looks like your viz dep actually contains cljs.core.
The indentation behaviour is clearly funky despite that, but I think that’s the problem.
@U0567Q30W thanks, that was the issue.
Great. Tomorrow I’ll fix the indentation weirdness (it shouldn’t matter that it resolves to two places if the FQN is the same)
for extra fun effect there are some libraries that contain multiple versions of cljs.core, not just one 😛
thats the new logic I added, maybe cursive should do something along those lines too
https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/build/classpath.clj#L604
That’s… freaky. Is that mostly misconfigured builds producing those jars? i.e. it’s not intentional for any reason?
a lot of people use resources/
as the output directory so yeah all sorts of crap is accidentally included. can't think of a reason why anyone would want to include a pre-compiled cljs/core.js
since nothing will ever use it
except maybe cljs itself of course but thats why I'm looking for */cljs/core.js
not cljs/core.js
or cljs/core.cljs
at the root
Yeah, in this case I suspect that core.cljc
was accidentally included since Cursive wouldn’t index cljs/core.js
.
yeah, normal CLJS output always contains something/cljs/core.js
in the same dir as something/cljs/core.cljs
but there is at least one legit case where /cljs/core.cljs
is legit and not accidental, ie. cljs-bean.from.cljs.core
just using the */cljs/core.js
as an identifier to detect bad directories and quarantine everything in that dir
Ok, thanks - that does sound like something I could check with Cursive and warn about.
How can I re-configure the indentation for a custom macro after it has been configured once? I'm not getting the option in the alt+enter menu anymore and I don't see it in Settings->Editor->Code Style->Clojure under Form Parameters for the project
Is anyone else experiencing an issue using deps.edn
where cursive repeatedly keeps losing track of the test folder? I keep having to mark my test sources root…
Which Cursive version are you using? I changed this recently (actually, a while ago now, I think) so that it should remember folders that you’ve marked as tests. It will also automatically mark test roots from any :extra-paths
in the test
alias.
btw, that memory prob is resurfacing, I think there’s some relation with number of repls started/stopped over time?