Fork me on GitHub
#cljdoc
<
2023-08-18
>
tengstrand04:08:46

I restarted my computer and after that I can't even run bb doc status.

tengstrand04:08:02

bb doc startdoesn'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

seancorfield05:08:00

Maybe you don't have Docker starting up automatically?

seancorfield05:08:24

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.

tengstrand08:08:01

Yes, of course, that's the problem! Now it works. Thanks!

lread14:08:42

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?

tengstrand17:08:05

Yes, and I can't blame the error message. In Swedish we call it an SBS problem, freely translated to "crap behind the controls"! 🙂

lread21:08:56

I heard something similar: "the problem was between the keyboard and the chair" simple_smile

seancorfield21:08:39

PEBKAC -- Problem Exists Between Keyboard And Chair 🙂

seancorfield21:08:00

https://en.wikipedia.org/wiki/User_error -- lists two Swedish versions of SBS 🙂 plus a bunch of PEBKAC variants in several languages.

😃 2
seancorfield21:08:36

(computer folx are so creative about their acronyms! 🙂 )

lread21:08:02

Ah yeah PEBKAC! I suffer from that frequently! simple_smile

lread22:08:50

Because I have a heart of gold: https://github.com/polyfy/polylith/pull/325

❤️ 2
tengstrand09:08:18

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?

serioga10:08:10

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:

tengstrand10:08:45

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.

lread14:08:51

@U1G0HH87L I think + (space +) should also work....

👍 2
tengstrand17:08:45

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?

tengstrand18:08:57

Perfect, thanks (thought it only worked within .adoc files)!

tengstrand18:08:35

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.

lread20:08:19

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.

tengstrand20:08:14

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:: Corfield,width=32,role="left"] image:: Nam,width=32,role="left"] --

tengstrand20:08:07

Yes, I want them side by side. One difference is that I don't use :imagesdir: but that shouldn't affect alignment?

lread20:08:53

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?

tengstrand04:08:01

Yeah, that was the problem. Thanks!

👍 2
tengstrand04:08:11

And yes, I could remove the floating stuff!

🎉 2