Fork me on GitHub
#clojure
<
2018-04-21
>
wink08:04:34

Heya, little spammy call for help (sorry) - if you use Windows and leiningen and got a few spare minutes, would be nice to quickly grab lein.bat and/or lein.ps1 from https://github.com/technomancy/leiningen/tree/master/bin , replace the "2.8.2-SNAPSHOT" with "2.8.1" inside and give it a spin - we had some problems (most of all Github going to TLS 1.2) and thus quite a few changes landed and it's really, really hard to find Windows users on demand for testing 🙂

lmergen10:04:58

@wink i have a windows laptop

lmergen10:04:01

i'll help you out

lmergen10:04:01

i think i remember running into this issue about a week and a half ago

wink10:04:20

@lmergen thanks! I think I just need these pieces of info: a) Windows version b) PowerShell version ( $PSVersionTable.PSVersion -> major) c) curl/wget installed or not and d) did it install and then does "lein repl" work? 🙂

lmergen10:04:33

let continue in DM

thug.nasty13:04:53

When trying to use the reCaptcha API, I get a “No trusted certificate found” error

thug.nasty13:04:03

do I need to have certs on my server?

thug.nasty13:04:24

or does google only need to provide a cert, since their API uses HTTPS?

thug.nasty13:04:09

hmm. didn’t think to check.

thug.nasty13:04:19

I just updated the server, so i’ll have to see what java is running it

ghadi13:04:09

Use Java 8 or Java 10, or Google "jdk 9 root certificates"

thug.nasty13:04:25

@ghadi thank you for your help

thug.nasty13:04:28

@ghadi seems OS X updated javac to 9-internal

mfikes13:04:36

@thug.nasty If you happen to be using brew to install Java, it is fairly easy to do brew cask install java8 (or whatever version you want) and then switch between the versions you want to use at runtime by doing something like

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

thug.nasty13:04:57

I’ll try that

thug.nasty13:04:59

my JAVA_HOME is set to jdk1.8.0_

thug.nasty13:04:15

but my javac is linked to the /System/Library

Space Guy14:04:03

I've previously used (load-file "build.boot") to add new dependencies from the project file without restarting the REPL - what's the best equivalent to use in lein?

Geoffrey Gaillard17:04:16

I'm struggling with tools.namespace: I have two repls started with lein repl, one running figwheel, the other one a ring app, they have separate project.clj and are not stored in the same folder. When I try to refresh my server-side code it fails stating Cannot found "datascript.arrays" which is a client-side library. The client-side and server-side repls run in their own JVM. Why would tools.namespaces be able to "see" compiled files from an other repl running in an other JVM ? Is this a know problem ?

Geoffrey Gaillard22:04:53

Figured it out. I had a symbolic link in the server-side resources folder pointing to some compiled clojurescript assets, tools.namespace walks the classpath to find .clj and .cljc files. The resources folder is listed in the classpath and cljsbuild outputs .js files but also .map and respective copies of .clj and .cljc files next to the .map files. I removed the symlink and used a gulp task (gulp-webserver) to serve the assets.

emccue21:04:30

I am not sure

emccue21:04:42

I dont really want to think about it either

emccue21:04:52

But it think you need to do Pattern/compile

hypirion21:04:55

I think you have to call the compile on Pattern: (Pattern/compile "foo")

emccue21:04:04

that being said there is a regex literal in clojure

emccue21:04:18

#"my regex"

emccue21:04:42

which just evaluates to Pattern/compile

benzap22:04:08

oh, that makes sense now, thanks

benzap22:04:12

(re-pattern "test")