This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-27
Channels
- # announcements (13)
- # babashka (59)
- # beginners (58)
- # bitcoin (3)
- # calva (7)
- # cider (2)
- # cljsrn (4)
- # clojure (41)
- # clojure-dev (18)
- # clojure-germany (1)
- # clojurescript (14)
- # conjure (7)
- # cursive (5)
- # datahike (1)
- # graalvm (44)
- # jobs-discuss (3)
- # kaocha (19)
- # lsp (109)
- # luminus (3)
- # off-topic (8)
- # pathom (32)
- # re-frame (4)
- # reveal (3)
- # shadow-cljs (16)
- # spacemacs (5)
- # sql (18)
- # vim (13)
If someone could help me make heads or tails of this error, that would be amazing. For some reason I can't invoke the constructor of this Java class without an exception being raised.
project.main=> (new com.sun.jna.NativeString "")
Execution error (IllegalAccessError) at project.main/eval2183 (form-init10170902368369356528.clj:1).
failed to access class com.sun.jna.NativeString from class project.main$eval2183 (com.sun.jna.NativeString is in unnamed module of loader 'app'; project.main$eval2183 is in unnamed module of loader clojure.lang.DynamicClassLoader @576d3dca)
https://github.com/java-native-access/jna/blob/master/src/com/sun/jna/NativeString.java#L32 no public modifier
How can you tell it's only private to the package? I see the public attribute on the constructor
Oh does the class
declaration itself needs the public modifier? It's been a while since I used Java itself
specifically for jna, you typically don't use NativeString, you typically either: • pass a java.lang.String (which gets converted to a c string) • pass a https://java-native-access.github.io/jna/4.2.1/com/sun/jna/WString.html (which gets converted to a wide string) • or pass a https://java-native-access.github.io/jna/4.2.0/com/sun/jna/Memory.html whose bytes you fill yourself (which gets passed a pointer)
I have an application that, my test cases depends on the docker container up, Before running clojure testc ases I need to start docker so that container is available, Is there any good doc of integration of test cases docker for clojure
@popeyepwr A little self promotion, I maintain a Clojure wrapper for Testcontainers a Java library orchestrating Docker containers for test cases.: https://github.com/javahippie/clj-test-containers This could maybe help you
You can create and start a container prior to your testrun. It will shutdown automatically when the JVM exits
Hi, everyone. Hope you are having a nice Saturday. I have given myself a small project today, create a clojure program that reads and writes to a PostgreSQL databse (without ORM). Anyone know of a good place to start? 😃
ORM hater here. Try this sql library http://walkable.gitlab.io :))
@georghagen If you want to use the regular Clojure on the JVM, I recommend the honeysql library, next.jdbc + the postgresql JDBC driver. You can also use babashka and the postgresql pod for instant startup. https://github.com/babashka/babashka-sql-pods/#run You can also use the honeysql library with this (see further along in the README).

;;
;; Emitting namespaced XML is usually done by using alias-uri
;; in combination with clojure's built-in ::kw-ns/shorthands:
@patrick.glind I think you can fix this using a clj-kondo config. Please provide a full minimal standalone repro of your code which I can execute with clj-kondo --lint example.clj
just the .clj file would be fine, clj-kondo doesn't care about your deps, you can just throw some code at it
@patrick.glind I think it's best to post an issue about this at the clj-kondo repo. I'll fix it in the next release of clj-kondo. For now you can write:
:when #_:clj-kondo/ignore
(= ::xh/location (:tag x))
to ignore this warning. Clj-kondo just doesn't understand the alias-uri
macro.Hello, I’d love myself some beginners and experts to try out an interactive beginners guide to Clojure that I am developing. Thanks in advance! ❤️ https://clojureverse.org/t/dram-is-an-interactive-beginners-clojure-guide-in-the-making/7268
The repo lists this definition: > dram > noun • mainly Scottish a small drink of whisky or other spirits: a wee dram to ward off the winter chill.
And there’s rum
, which needs citrus
and more of these. I know @U5GP9FMC0 dislikes this a bit. Haha.