This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-25
Channels
- # announcements (4)
- # babashka (58)
- # beginners (21)
- # calva (42)
- # clj-kondo (15)
- # cljdoc (16)
- # cljs-dev (11)
- # clojure (57)
- # clojure-denmark (1)
- # clojure-europe (24)
- # clojure-france (4)
- # clojure-nl (1)
- # clojure-norway (16)
- # clojure-spec (6)
- # clojure-uk (2)
- # clojurescript (19)
- # clr (4)
- # conjure (1)
- # core-logic (3)
- # cursive (5)
- # data-science (2)
- # datascript (6)
- # datomic (3)
- # emacs (4)
- # events (3)
- # fulcro (17)
- # gratitude (2)
- # hyperfiddle (4)
- # introduce-yourself (3)
- # jobs-discuss (2)
- # lsp (27)
- # malli (22)
- # pathom (73)
- # portal (21)
- # re-frame (5)
- # releases (1)
- # vim (8)
- # xtdb (28)
Introducing clj-kondo-bb: invoke clj-kondo from babashka scripts (or as a babashka one liner)!
✨
https://github.com/clj-kondo/clj-kondo-bb
G'morning. I tried to upgrade babashka today under Linux Mint using home brew and am getting this error:
λ brew install borkdude/brew/babashka
==> Fetching borkdude/brew/babashka
==> Downloading https://github.com/babashka/babashka/releases/download/v1.1.172/babashka-1.1.172-linux-amd64-static.tar.
Already downloaded: /home/mwhitford/.cache/Homebrew/downloads/800026d2732abfccd61a43d0fd5ec692297c5454002f9d92af6a1b781a3caf75--babashka-1.1.172-linux-amd64-static.tar.gz
==> Installing babashka from borkdude/brew
Error: An exception occurred within a child process:
NoMethodError: undefined method `version_suffix' for #<Formulary::FormulaNamespaceAPIe0d511356bd44120af49cc96c9dcf3b3::Gcc:0x0000000005657278>
Did you mean? version_scheme
λ brew --version Homebrew 3.6.20-72-g8f41918 Homebrew/homebrew-core (git revision f8ba616a4ef; last commit 2023-01-25)
Once the upgrade failed I removed babashka and tried to install from scratch, but same issue with the same error
Can you see any weird commits here? https://github.com/borkdude/homebrew-brew/commits/master/babashka.rb
λ brew install borkdude/brew/babashka --force ==> Fetching borkdude/brew/babashka ==> Downloading https://github.com/babashka/babashka/releases/download/v1.1.172/babashka-1.1.172-linux-amd64-static.tar. Already downloaded: /home/mwhitford/.cache/Homebrew/downloads/800026d2732abfccd61a43d0fd5ec692297c5454002f9d92af6a1b781a3caf75--babashka-1.1.172-linux-amd64-static.tar.gz ==> Installing babashka from borkdude/brew Error: An exception occurred within a child process: NoMethodError: undefined method `version_suffix' for #<Formulary::FormulaNamespaceAPIe0d511356bd44120af49cc96c9dcf3b3::Gcc:0x000000000686bb30> Did you mean? version_scheme
Never seen this before, and clj-kondo also giving the same error, tried remove and install, same thing.
λ brew install clj-kondo ==> Fetching borkdude/brew/clj-kondo ==> Downloading https://github.com/borkdude/clj-kondo/releases/download/v2023.01.20/clj-kondo-2023.01.20-linux-static-am Already downloaded: /home/mwhitford/.cache/Homebrew/downloads/15b1e47068e32b04ec81c25568e3b249bfcf8879660c49e91d5cf954586158cb--clj-kondo-2023.01.20-linux-static-amd64.zip ==> Installing clj-kondo from borkdude/brew Error: An exception occurred within a child process: NoMethodError: undefined method `version_suffix' for #<Formulary::FormulaNamespaceAPIe0d511356bd44120af49cc96c9dcf3b3::Gcc:0x0000000006b59db0> Did you mean? version_scheme
Also exact same upgrade of babashka 1.0.169 ==> 1.1.172 on my mac just went with no issues.
I don't know why brew things that gcc etc are a dependency of babashka. They aren't, but whatever.
==> Installing dependencies for borkdude/brew/babashka: [email protected], glibc, mpfr, libmpc, xz, zlib, binutils and gcc
Just weird it's clj-kondo and babashka but the other pending upgrades all went with no issues.
downloading the binary manually from github and placing on the path works just fine, guess I'll write up a little script to do upgrades for babashka/clj-kondo that way until my brew fixes itself in a later version or something.
Just to update this, I did not make any changes on my side, but a brew update && brew install borkdude/brew/babashka
worked fine today. So whatever was causing this issue for me has resolved.
it seems some recent version dropped the implicit print? i have some scripts that just return a value when exiting. the value used to be printed, now the scripts don't output anything unless i add a println or equivalent.
Note to self: don't use .bb
in library or repository name endings. Mentioning them here, Twitter and Mastodon will turn those names in URLs. I just renamed
to clj-kondo-bb
and will do the same for
interesting that your client turns them into urls. I only get clickable links if I put http(s):// on the front
also here on slack http://otfrom.bb?
oh, on slack yeah, it is a clickable link. I should definitely register http://otfrom.bb tho
A bit of a babashka newbie here. I'm getting Unable to resolve classname: java.lang.ref.SoftReference
when trying to use clojure.core.memoize. Full stacktrace in thread
here's my bb.edn
{
:paths ["src/bb"]
:deps {org.clojure/core.memoize {:mvn/version "1.0.257"}}
}
the error happens when I compile my namespace in cider
The class can be added but this library is likely not compatible with babashka for other reasons. However, this library is used in a lot of other libs so maybe it makes sense to include it in bb
I see, thanks @U04V15CAJ. My google search came up with this tweet https://twitter.com/borkdude/status/1251820200934154240 which made me think it was included at one point.
no idea! 😀
I was just trying to use the ttl function
Let's at least make an issue to track if there's more interest in having core.cache / memoize in bb I made two discussion here: https://github.com/babashka/babashka/discussions?discussions_q=label%3Alibraries Please upvote and/or explain your use case over there
sure, thanks!