This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-08
Channels
- # aleph (7)
- # announcements (12)
- # babashka (19)
- # beginners (4)
- # calva (29)
- # cider (20)
- # clj-kondo (20)
- # clojure (66)
- # clojure-austin (4)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (42)
- # clojure-uk (4)
- # clojuredesign-podcast (9)
- # conjure (1)
- # cursive (5)
- # datomic (42)
- # etaoin (4)
- # events (10)
- # garden (8)
- # graphql (1)
- # holy-lambda (7)
- # honeysql (3)
- # hyperfiddle (5)
- # missionary (11)
- # music (1)
- # off-topic (12)
- # practicalli (2)
- # re-frame (2)
- # reitit (6)
- # releases (2)
- # vim (2)
- # web-security (1)
- # xtdb (3)
I’m trying to use clostache from a bb script and am missing something obvious. This is my bb.edn:
{:paths ["scripts"]
:deps {de.ubercode.clostache/clostache {:mvn/version "1.4.0"}}}
And in scripts/clostashe_test.clj
I have:
(ns clostashe-test
(:require [clostashe.parser :as cs]))
(cs/render "Hello, {{name}}!" {:name "Felix"})
Then:
bb ./scripts/clostashe_test.clj
----- Error --------------------------------------------------------------------
Type: java.io.FileNotFoundException
Message: Could not locate clostashe/parser.bb, clostashe/parser.clj or clostashe/parser.cljc on classpath.
Location: /Users/pez/Projects/anteo/mobile-map-playground/./scripts/clostashe_test.clj:2:3
✅ 1
Hi is wally
supported by BB? I am wondering if the following message means no?
defrecord/deftypecurrently only support protocol implementations
that's not going to work in bb since playwright is a java project. take a look at #C7KDM0EKW for something that works in bb
I am
630aefd665cb / # cat /etc/gentoo-release
Gentoo Base System release 2.14
630aefd665cb / # /bb --version
babashka v1.3.188
😉Thanks. You never ran into this issue? https://github.com/babashka/babashka/issues/1669
docker run -it --rm gentoo/stage3 bash
installed with curl
and tar
Can you try this:
bb -Sdeps '{:deps {dev.weavejester/medley {:mvn/version "1.7.0"}}}' -e "(require '[medley.core])"
$ docker run -it --rm gentoo/stage3 bash
786fba5e0727 / # curl -sSLO
786fba5e0727 / # curl -sSLO
786fba5e0727 / # tar xf graalvm-jdk-21_linux-x64_bin.tar.gz
786fba5e0727 / # tar xf babashka-1.3.188-linux-amd64.tar.gz
786fba5e0727 / # export JAVA_HOME=/graalvm-jdk-21.0.2+13.1 PATH=/:/graalvm-jdk-21.0.2+13.1/bin:$PATH
786fba5e0727 / # bb -Sdeps '{:deps {dev.weavejester/medley {:mvn/version "1.7.0"}}}' -e "(require '[medley.core])"
Clojure tools not yet in expected location: /root/.deps.clj/1.11.1.1435/ClojureTools/clojure-tools-1.11.1.1435.jar
Downloading to /root/.deps.clj/1.11.1.1435/ClojureTools/clojure-tools.zip
Unzipping /root/.deps.clj/1.11.1.1435/ClojureTools/clojure-tools.zip ...
Successfully installed clojure tools!
Downloading: org/clojure/clojure/1.11.1/clojure-1.11.1.pom from central
Downloading: org/clojure/core.specs.alpha/0.2.62/core.specs.alpha-0.2.62.pom from central
Downloading: org/clojure/spec.alpha/0.3.218/spec.alpha-0.3.218.pom from central
Downloading: org/clojure/pom.contrib/1.1.0/pom.contrib-1.1.0.pom from central
Downloading: dev/weavejester/medley/1.7.0/medley-1.7.0.pom from clojars
Downloading: org/clojure/core.specs.alpha/0.2.62/core.specs.alpha-0.2.62.jar from central
Downloading: org/clojure/spec.alpha/0.3.218/spec.alpha-0.3.218.jar from central
Downloading: org/clojure/clojure/1.11.1/clojure-1.11.1.jar from central
Downloading: dev/weavejester/medley/1.7.0/medley-1.7.0.jar from clojars