This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-11
Channels
- # aleph (7)
- # announcements (5)
- # beginners (58)
- # calva (20)
- # cider (10)
- # clj-kondo (4)
- # cljfx (5)
- # cljsrn (7)
- # clojure (29)
- # clojure-europe (11)
- # clojure-mexico (1)
- # clojure-norway (26)
- # clojure-uk (9)
- # clojurescript (1)
- # cursive (31)
- # datahike (22)
- # datomic (12)
- # duct (3)
- # fulcro (28)
- # helix (35)
- # hyperfiddle (28)
- # lsp (4)
- # malli (8)
- # midje (3)
- # music (2)
- # nbb (9)
- # nrepl (20)
- # off-topic (36)
- # polylith (3)
- # shadow-cljs (47)
- # sql (2)
- # testing (7)
- # vim (17)
- # xtdb (7)
I’m trying to catch an exception ; Execution error (ExceptionInfo) at buddy.sign.jwt/validate-claims (jwt.clj:74).
by doing (catch buddy.sign.jwt/validate-claims.ExceptionInfo _ ...)
which gives me Unable to resolve classname: buddy.sign.jwt/validate-claims.ExceptionInfo
. Can anyone spot my mistake?
Hey guys, I was looking around for a Clojure CLI formatting library akin to https://pkg.go.dev/github.com/logrusorgru/aurora/v3 , but didn’t find anything. What do you use/how do you normally format your terminal output?
Are you looking for a way to print a string to stdout and add some colour schema to it?
Exactly
there are plenty libs doing that. here is one i use in the past - https://github.com/trhura/clojure-term-colors
ah nice, thanks! I was a bit put off by no changes in years haha
ansii colour codes did not change for years 🙂
and because clojure is very good in maintaining backward compatibility there is no need to change the library code
Here is a fork of trhura/clojure-term-colors if you need GraalVM support: https://github.com/ivarref/clojure-term-colors
Another one: https://github.com/ams-clj/clansi Maybe we should have a separate "ansi colors" category here ;) https://babashka.org/toolbox/
Also I was looking in https://github.com/razum2um/awesome-clojure , maybe we need to add some stuff
hi guys, when I run my main method from REPL my program runs as expected. But when I run from terminal I get an NoClassDefFound
exception
java.lang.NoClassDefFoundError: Could not initialize class com.jcraft.jsch.agentproxy.usocket.JNAUSocketFactory$CLibrary
at com.jcraft.jsch.agentproxy.usocket.JNAUSocketFactory.open(JNAUSocketFactory.java:114)
I verified the JDK/JVM used in both cases is azul-11.0.16-1
. When it's running inside the same run time environment then why would there be this difference?I keep getting this error message in REPL ever since upgrading to JDK 17. Any ideas?
Error updating class definitions:
Execution error (NullPointerException) at java.util.concurrent.ConcurrentHashMap/get (ConcurrentHashMap.java:936).
Cannot invoke "Object.hashCode()" because "key" is null
Error updating class definitions:
Execution error (NullPointerException) at java.util.concurrent.ConcurrentHashMap/get (ConcurrentHashMap.java:936).
Cannot invoke "Object.hashCode()" because "key" is null
*e
=> nil
Error updating class definitions:
Execution error (NullPointerException) at java.util.concurrent.ConcurrentHashMap/get (ConcurrentHashMap.java:936).
Cannot invoke "Object.hashCode()" because "key" is null
I think this happens somewhere else than main REPL thread
Hello everyone, what options do I have for connecting two repls through the web, or for sending whatever code string is evaluted to the other computer. It is for a collaborative live coded music project, nothing too serious.
Perhaps look at Clojure's built-in Socket REPL and the prepl (programmatic REPL)? See the clojure.core.server
namespace.
https://tailscale.com/ I would strongly recommend (if you can) putting both devices on the same Tailnet. This would allow you to send nREPL (if you use nREPL) messages to the remote machine's IP:port without worrying about exposing a REPL to the entire public internet.
https://nakkaya.com/2010/02/16/net-eval-dead-simple-distributed-computing-for-clojure/ https://github.com/nakkaya/net-eval
some misc playing with repls stuff: https://gist.github.com/hiredman/a2630ea6153d06840a2723d5b2c9698c sending a repl over tap, https://gist.github.com/hiredman/86aeb916b478d9e57cbce8e0e678babd a repl over ring https requests (client and server)