This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-13
Channels
- # announcements (1)
- # babashka (29)
- # beginners (64)
- # calva (4)
- # cider (5)
- # cljs-dev (3)
- # cljsrn (2)
- # clojure (100)
- # clojure-australia (2)
- # clojure-conj (7)
- # clojure-dev (9)
- # clojure-europe (31)
- # clojure-germany (1)
- # clojure-nl (2)
- # clojure-uk (13)
- # clojured (2)
- # clojurescript (62)
- # community-development (2)
- # conjure (1)
- # cursive (21)
- # datomic (39)
- # events (2)
- # fulcro (7)
- # graalvm (24)
- # graalvm-mobile (11)
- # holy-lambda (3)
- # jobs (7)
- # lsp (15)
- # malli (26)
- # music (1)
- # nyc (2)
- # off-topic (18)
- # reagent (23)
- # reitit (5)
- # remote-jobs (1)
- # shadow-cljs (2)
- # tools-deps (26)
- # vim (6)
- # xtdb (17)
I'm curious, when executing a function using the -X
switch, the JVM never exits, I have to put an explicit (System/exit 0)
or similar. That's a bit surprising. I would have thought that as soon as the function has exited, the JVM would shut down.
yeah its the agent threadpool i believe. you can call the really cool-named function (shutdown-agents)
.
yeah, the thing is that when you thread multiple functions and the non-last function calls that, it might screw things up :)
I wonder if that could be added to the docs, i.e.,
as a little bit of useful information? Others trying this out may also wonder why the function isn't exiting, until 60 or so seconds have passed.
that's already been added in the current prerelease
so you won't need to do this
@dharrigan Update your CLI. That has been fixed.
Oh, I see Alex already said that. Sorry, just catching up 🙂
@alexmiller I was trying out the -X:deps help/doc
thing, and I can get it to give me help for a whole :ns
but when I try to get help for a single function, I just get
(! 1036)-> clojure -X:deps:uberjar help/doc :fn hf.depstar/pom
-------------------------
(! 1037)-> clojure -X:deps:uberjar help/doc :fn pom :ns hf.depstar
-------------------------
There are no examples in the docs so I'm not sure what is supposed to work...The following works:
(! 1038)-> clojure -X:deps:uberjar help/doc :ns hf.depstar
Entry point for clojure -X options.
-------------------------
hf.depstar/aot
([options])
-X entry point for AOT compilation.
... lots of help for every function ...
@seancorfield only fixed on a pre-release
Either qualified :fn or :ns is supposed to work
Please file a jira if you have a repro that doesn’t work
I'll stick it up on ask for others to vote for it, and you can create a Jira in whichever is the appropriate project...
https://ask.clojure.org/index.php/10778/x-deps-help-doc-does-not-work-for-a-function
(I initially thought it might just be a problem with stuff brought in via an alias but apparently not)