nextjournal

RollACaster 2023-07-18T12:28:34.895409Z

Hey there ๐Ÿ‘‹ Thanks a lot for clerk ๐Ÿ™Œ I enjoy using it a lot! I ran into an issue with Clerk Garden, it's stuck after clerk gets evaluated, any ideas what could gone wrong? https://build.github.clerk.garden/rollacaster/css-grids/commit/7b4b6708ffbbce166c3eb5492fc686b5af9b788a/?update=1

โœ… 1
Andrea 2023-07-18T12:57:08.332789Z

Hi @thsojka I can just speculate given your code the output at https://build.github.clerk.garden/rollacaster/css-grids/commit/7b4b6708ffbbce166c3eb5492fc686b5af9b788a/?update=1 that the

(ns user)

(require '[nextjournal.clerk :as clerk])

(clerk/serve! {:browse? true})
namespace gets in the way on Garden (probably the :browse? flag). I think thatโ€™s loaded because you add the "dev" path in your deps.edn can you try removing that and build again?

Andrea 2023-07-18T12:59:04.198689Z

maybe move the "dev" path to a :dev alias

Andrea 2023-07-18T13:01:59.888439Z

running clojure -X:nextjournal/clerk from your repo locally builds the static app just fine but also opens a browser tab with clerk homepage. I guess thatโ€™s what makes troubles on garden, maybe @clojurians-slack359 can confirm?

Andrea 2023-07-18T13:04:47.199269Z

garden should not hang on clojure.java.browse/browse-url invocations

sohalt 2023-07-18T13:10:55.408399Z

Yep, the browse invocation breaks on garden, since the environment there is headless and doesn't come with a browser. You can reproduce the error using https://github.com/nextjournal/garden-env

sohalt 2023-07-18T13:12:23.685849Z

We should ideally just ignore calls to browse on garden or at least do a better job at surfacing the error.

RollACaster 2023-07-18T13:36:55.576439Z

Ah makes sense! Thanks for your help!

RollACaster 2023-07-20T00:28:54.029139Z

I ran into yet another issue when building with clerk.garden: I get a FileNotFoundException when trying to build https://github.com/rollacaster/css-grids which is using clerk/image and pointing to a file. I tried to run it locally with clj -X:nextjournal/clerk :browse true and also via https://github.com/nextjournal/garden-env both do not show the FileNotFoundException Any ideas what went wrong?

sohalt 2023-07-20T09:20:33.496769Z

Can you try wrapping the paths in a ?

RollACaster 2023-07-20T22:26:04.659229Z

Thanks that worked ๐Ÿ™Œ