This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-19
Channels
- # admin-announcements (2)
- # aws-lambda (3)
- # beginners (66)
- # boot (61)
- # cider (1)
- # cljs-dev (17)
- # clojure (100)
- # clojure-austin (4)
- # clojure-brasil (1)
- # clojure-canada (8)
- # clojure-quebec (6)
- # clojure-russia (48)
- # clojure-sg (6)
- # clojure-spec (37)
- # clojure-uk (61)
- # clojure-ukraine (2)
- # clojurescript (80)
- # core-async (13)
- # cursive (20)
- # datascript (37)
- # datomic (2)
- # defnpodcast (4)
- # emacs (5)
- # funcool (3)
- # hoplon (11)
- # jobs (7)
- # juxt (26)
- # lein-figwheel (48)
- # leiningen (3)
- # luminus (3)
- # om (34)
- # om-next (5)
- # onyx (5)
- # protorepl (6)
- # re-frame (10)
- # reagent (9)
- # rethinkdb (16)
- # ring-swagger (5)
- # spacemacs (14)
- # specter (54)
- # untangled (36)
- # vim (75)
- # yada (1)
@michael.heuberger: sounds like you want a ring middleware in your application... You could adapt one that rewrites / to index.html
@alandipert: yep, most likely. can you point me to a working example with latest code?
@michael.heuberger: Not at the moment but perhaps Google can
already searched and couldn’t find an useful one which is up to date
@michael.heuberger: If every request always serves up the same index.html, how do dynamic requests within the SPA get handled?
@seancorfield: good question but i think we can sort this out in the client side code with the HTML5 pushState
clojure.lang.ExceptionInfo: clojure.lang.PersistentList cannot be cast to java.lang.String data: {:file "/tmp/boot.user5719703267156340457.clj", :line 21}
is there anyway to see that tempfile?
it’s gone by the time boot exits
@cpmcdaniel: try boot -b
@cpmcdaniel: also you can add the wait
task at the end of the pipeline so boot doesn't exit
that doesn’t work
there is something wrong with my dependencies
ok, I sorted through all that
now I have an interesting one for you
I’m using the boot watch task to run tests on changes
however, it doesn’t like that I am using sqlite
Testing lcm.api.action-test java.lang.UnsatisfiedLinkError: Native Library /tmp/sqlite-3.7.151-amd64-libsqlitejdbc.so already loaded in another classloader
going to do a bit of googling on this
if the sqlite wrapper you're using loads the library when you require the namespace you may need to fix it so that it checks if it's already been loaded
so in the boot file I will need to require the jdbc driver and do something with it to cause it to load in the “main” classloader?
you want to look for a call to this, i think: https://docs.oracle.com/javase/7/docs/api/java/lang/System.html#loadLibrary(java.lang.String)
this also looks relevant maybe: http://stackoverflow.com/questions/1007861/how-do-i-get-a-list-of-jni-libraries-which-are-loaded
if you get to the bottom of it maybe we can wrap this up in some helper functions in boot.pod
namespace or something
any code that assumes only one clojure runtime will see issues like this if namespaces have JVM-global side effects
like if the library assumes that a namespace won't be compiled more than once in a single jvm
in this case it is a pure java JDBC driver
wait, not pure
I meant that Clojure namespace compilation is not the issue
so, I imported and loaded the native library in my build.boot
but that didn’t solve the problem
now the first iteration of the unit tests fails
instead of the second
same error
if you modify the code that's calling loadLibrary to catch that exception i think that would probably be the best solution
maybe you need to do something with classloaders if the dll you need is loaded by another classloader already, i dunno about that
btw, on that ^, it's not so much a bug report as a "I started getting this weird error and breakage after updating, without any documentation as to why"
has anyone here played with zippers? Im working on a boot-task that inlines files but the zipper is throwing me off
💡 i got it