This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-16
Channels
- # announcements (3)
- # babashka (25)
- # beginners (71)
- # calva (18)
- # clj-kondo (52)
- # cljs-dev (94)
- # cljsrn (12)
- # clojure (33)
- # clojure-europe (52)
- # clojure-nl (2)
- # clojure-uk (27)
- # clojurescript (18)
- # clojureverse-ops (4)
- # datomic (64)
- # deps-new (27)
- # depstar (5)
- # events (5)
- # fulcro (5)
- # graalvm (12)
- # graalvm-mobile (82)
- # helix (2)
- # introduce-yourself (1)
- # juxt (5)
- # lsp (10)
- # malli (7)
- # missionary (1)
- # off-topic (41)
- # pathom (69)
- # pedestal (6)
- # re-frame (4)
- # reagent (8)
- # releases (9)
- # remote-jobs (8)
- # shadow-cljs (3)
- # sql (46)
- # tools-deps (44)
- # uncomplicate (1)
- # vim (83)
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 https://github.com/mabe02/lanterna. There's some clj wrappers: • https://github.com/multimud/clojure-lanterna/ • my library, https://github.com/phronmophobic/membrane I think there's also some pretty good cljs options: • https://github.com/eccentric-j/cljs-tui-template • or you can interop with the https://github.com/chjj/blessed node library.
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 1.10.3.855
Any ideas?did you try clj -X:build jar ?
I mean given that message that's the first thing I'd try
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
@denik If you're interested in following the tools.deps/CLI developments, there's #tools-deps
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…
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 os.name=Mac 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?
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-3.36.0.1.jar |grep org/sqlite/native/Mac/x86_64
org/sqlite/native/Mac/x86_64/
org/sqlite/native/Mac/x86_64/libsqlitejdbc.jnilib
%
so you may need to move to a newer version or something