This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-18
Channels
- # announcements (22)
- # asami (7)
- # babashka (43)
- # beginners (68)
- # biff (2)
- # calva (10)
- # clj-kondo (7)
- # cljdoc (29)
- # clojure (41)
- # clojure-austin (1)
- # clojure-brasil (2)
- # clojure-europe (25)
- # clojure-gamedev (3)
- # clojure-nl (2)
- # clojure-norway (9)
- # clojure-uk (31)
- # clojurescript (3)
- # community-development (7)
- # cursive (3)
- # data-science (4)
- # datomic (17)
- # emacs (30)
- # honeysql (10)
- # hyperfiddle (39)
- # introduce-yourself (1)
- # jobs-discuss (5)
- # kaocha (1)
- # lsp (11)
- # malli (12)
- # pathom (18)
- # pedestal (3)
- # proletarian (2)
- # quil (11)
- # rdf (46)
- # reitit (8)
- # releases (2)
- # shadow-cljs (34)
- # sql (3)
- # squint (10)
- # tools-deps (24)
- # xtdb (10)
I restarted my computer and after that I can't even run bb doc status
.
bb doc start
doesn't work either. I get this error:
~/source/polylith issue-318 *15 ?1 ❯ bb doc status 05:40:55
[ TASK doc status ]--------------------------------------------------------------
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
----- Error --------------------------------------------------------------------
Type: clojure.lang.ExceptionInfo
Message:
Data: {:proc #object[java.lang.ProcessImpl 0xaf9e112 "Process[pid=2940, exitValue=1]"], :exit 1, :in #object[java.lang.ProcessBuilder$NullOutputStream 0x6d882fc1 "java.lang.ProcessBuilder$NullOutputStream@6d882fc1"], :out "", :err #object[java.lang.ProcessBuilder$NullInputStream 0x520849de "java.lang.ProcessBuilder$NullInputStream@520849de"], :prev nil, :cmd ["docker" "ps" "-q" "-f" "name=cljdoc-server"], :type :babashka.process/error}
Location: /Users/joakimtengstrand/source/polylith/scripts/cljdoc_preview.clj:99:26
----- Context ------------------------------------------------------------------
95: ;; docker
96: ;;
97:
98: (defn status-server [ container ]
99: (let [container-id (-> (process/shell {:out :string}
^---
100: "docker ps -q -f" (str "name=" (:name container)))
101: :out
102: string/trim)]
103: (if (string/blank? container-id) "down" "up")))
104:
----- Stack trace --------------------------------------------------------------
babashka.process/check - <built-in>
babashka.process/shell - <built-in>
clojure.core/apply - <built-in>
babashka.impl.process/shell - <built-in>
cljdoc-preview - /Users/joakimtengstrand/source/polylith/scripts/cljdoc_preview.clj:99:26
... (run with --debug to see elided elements)
cljdoc-preview/dispatch - /Users/joakimtengstrand/source/polylith/scripts/cljdoc_preview.clj:250:3
cljdoc-preview - /Users/joakimtengstrand/source/polylith/scripts/cljdoc_preview.clj:227:5
cljdoc-preview - /Users/joakimtengstrand/source/polylith/scripts/cljdoc_preview.clj:262:3
clojure.core/apply - <built-in>
user-b5163b7c-6675-41e1-8d7c-16b3000a99ff - /Users/joakimtengstrand/source/polylith/doc:29:11
Maybe you don't have Docker starting up automatically?
It's been a long time since I used Docker on a Mac but I'm pretty sure you can configure it to start every time you reboot (or login). That's how I have it set on Windows.
Yes, of course, that's the problem! Now it works. Thanks!
For lurkers bb doc status
is polylith specific.
@U1G0HH87L there is a lot of text in the error dump, but the important bit you might have missed:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Yes, and I can't blame the error message. In Swedish we call it an SBS problem, freely translated to "crap behind the controls"! 🙂
PEBKAC -- Problem Exists Between Keyboard And Chair 🙂
https://en.wikipedia.org/wiki/User_error -- lists two Swedish versions of SBS 🙂 plus a bunch of PEBKAC variants in several languages.
(computer folx are so creative about their acronyms! 🙂 )
How do I add a "new line" (some vertical spacing) between this image and the text "When this turns up:" https://github.com/polyfy/polylith/blob/1061929f2f5ad5fe76390ca9b99cecb6d7e9f427/doc/development.adoc?plain=1#L42-L44?
I suppose the simplest way is to add line break or paragraph with NBSP
image::images/development/debug.png[width=150]
NBSP
When this turns up:
or
image::images/development/debug.png[width=150]
NBSP +
When this turns up:
Thanks!
I had to use this syntax, and now it works:
{nbsp} +
If I only write NBSP, like you did, then the letters NBSP appear instead of an empty row.Right now the latest cljdoc documentation for polylith/clj-poly
lives here: https://cljdoc.org/d/polylith/clj-poly/0.2.17-alpha/doc/readme
If I want to refer to the latest version (`0.2.17-alpha` today but can be 0.2.18
tomorrow) is there a URL for that which forwards to the latest?
And you can use that for deep-linking if you need to: https://cljdoc.org/d/polylith/clj-poly/CURRENT/api/polylith.clj.core.change.entity
Perfect, thanks (thought it only worked within .adoc files)!
I'm trying to horizontally align the Polylith Friends icons, but failed (see https://github.com/polyfy/polylith/blob/2af8d35eccb544477ef99efc4437cc3318c6e7ab/readme.adoc?plain=1#L70-L74). I have tried both float=left
and role="left"
as image attributes, and both looks correct in the AsciiDoc preview that I use in IDEA, but not on GitHub or when I run cljdoc locally. I have also tried to surround it with [.float-group] --
but that didn't work either.
So you just want the images to appear beside each other via adoc? Like so? https://cljdoc.org/d/rewrite-clj/rewrite-clj/1.1.47/doc/readme#_contributors There is probably more than one way to do this, https://github.com/clj-commons/rewrite-clj/blob/b8c4df1b819f060aa293ac65b9f86d53d42014de/README.adoc?plain=1#L111-L165. One thing that worked nicely is that this approach seems to be responsive. If I narrow the page width, the images wrap.
I tried to https://github.com/polyfy/polylith/blob/2af8d35eccb544477ef99efc4437cc3318c6e7ab/readme.adoc?plain=1#L70-L74, but it still doesn't work. Must have missed something:
[.float-group]
--
image::
image::
--
Yes, I want them side by side. One difference is that I don't use :imagesdir:
but that shouldn't affect alignment?
No :imagesdir:
does not affect alignment.
I think maybe all you need to do is switch to using :
for inline images. You are currently using ::
which means block.
See https://docs.asciidoctor.org/asciidoc/latest/macros/images/
Not sure you need all the float stuff (and can't remember why I used it)... using inline images might be enough?