Fork me on GitHub

clojure-lsp can also do it from your editor: lsp-organize-imports (in emacs), also without a REPL, but it now also offers a command line interface


Is there a good library to draw colorful rectangles on terminal? sort of like a HUP but not real-time. just static.


From java, there's There's some clj wrappers: • • my library, I think there's also some pretty good cljs options: • • or you can interop with the node library.


Thank you for this! I will take a look 🙂


just tried the new build tools but couldn’t run them from the command line even though I’m using the newest version of clojure tools

clj -T:build jar                  
-T is no longer supported, use -A with repl, -M for main, or -X for exec
clj --version
Clojure CLI version
Any ideas?


did you try clj -X:build jar ?


I mean given that message that's the first thing I'd try


that is what you get with a non-latest


-T is supported and does the tool thing now


it may be that you have the latest released version, and the -T stuff is in the prerelease, but I haven't been paying close attention to the version numbers


Yep, you want for all the new goodness

👍 2

I think there is even another pre-release after that

hiredman17:07:05 is the latest pre-release

👍 2

@denik If you're interested in following the tools.deps/CLI developments, there's #tools-deps

👍 2

the consumer should be using some build tool that pulls it out of something like a maven repo where it has a pom that lists all its dependencies


if you are already pulling from a maven repo, and still need to list all the deps, that means when you publish your jar to the maven repo you are not providing the list of its deps


We are using mvn deploy:deploy-file to push to maven. Maybe that has an option to specify dependencies… thanks3


yes, you'll need to pass it a pom file


if you are using a lien project, I would look at using lein's deploy task instead


It worked! Thank you. I used lein pom; lein jar; mvn -DpomFile=pom.xml ... I’ll try lein deploy next.


(and maybe these questions are better suited to #beginners?)


@U0NCTKEV8 Thanks for your help, we have a working lein deploy command now (also using lein-gitlab-wagon & lein-sha-version)


So I’m trying to compile a small clj file that makes use of sqlite via org.xerial/sqlite-jdbc … All works good as long as I’m in the REPL and running it through clj. I compile the file into a binary through GraalVM native-image utility. It compiles fine but when I run, I get this issue:

Caused by: java.lang.Exception: No native library is found for and os.arch=x86_64. path=/org/sqlite/native/Mac/x86_64
I’m completely new to Clojure (and have no knowledge of Java/JDBC etc) so wondering if anyone has compiled a clj+sqlite to binary and got it to work .. and if yes, how?


I’m reading in Java-specific troubleshooting mechanisms that I need to include the xerial-sqlite JAR file in the classpath .. but how would I do that in clojure and would that help?


that error means sqlite-jdbc is already on your classpath


but sqlite-jdbc depends on a native code library, and it needs a different native code library for everything os/achitecture, and it is distributed with a bunch of a prebuilt native code for different platforms, and when it loads it looks for in the one it needs for your platform


and that is the error thrown when it cannot find pre-built native code for your platform


I generally prefer something like apache-derby for this reason (the sqlite drivers all need whacky native code)


I do see the code for that platform in the latest sqlite jar

% jar -tf sqlite-jdbc- |grep org/sqlite/native/Mac/x86_64
so you may need to move to a newer version or something


oh, sorry, I missed the graalvm part of your question


there is a #graalvm channel, and you should ask there, but I suspect building the graalvm image will need some special flag or something to tell it you are are going to be linking with some other native code

👍 2

Thanks for the pointers! I’ll ask in the GraalVM chanel