Fork me on GitHub
#beginners
<
2021-06-06
>
Chris K00:06:41

Hello, I am trying to run play-clj but keep getting this error:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.lwjgl.LWJGLUtil$3 (file:/home/ck/.m2/repository/org/lwjgl/lwjgl/lwjgl/2.9.2/lwjgl-2.9.2.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.lwjgl.LWJGLUtil$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Inconsistency detected by ld.so: dl-lookup.c: 105: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!
If anyone knows what's going on or how to fix it, it would be great help!

phronmophobic01:06:04

what version of play-clj are you using?

phronmophobic01:06:50

just looking at the deps file for play-clj is showing:

org.lwjgl/lwjgl-glfw {:mvn/version "3.2.3"}
https://github.com/oakes/play-cljc/blob/master/deps.edn#L9

phronmophobic01:06:09

which is a much newer version of lwjgl

Chris K05:06:06

I'm using leiningen but I wasn't really able to find that dependencies although I found similar ones

Chris K05:06:25

:dependencies [[com.badlogicgames.gdx/gdx "1.9.3"]
                 [com.badlogicgames.gdx/gdx-backend-lwjgl "1.9.3"]
                 [com.badlogicgames.gdx/gdx-box2d "1.9.3"]
                 [com.badlogicgames.gdx/gdx-box2d-platform "1.9.3"
                  :classifier "natives-desktop"]
                 [com.badlogicgames.gdx/gdx-bullet "1.9.3"]
                 [com.badlogicgames.gdx/gdx-bullet-platform "1.9.3"
                  :classifier "natives-desktop"]
                 [com.badlogicgames.gdx/gdx-platform "1.9.3"
                  :classifier "natives-desktop"]
                 [org.clojure/clojure "1.7.0"]
                 [play-clj "1.1.1"]]

phronmophobic05:06:09

Which OS are you on? I would check to see if there updated versions

Chris K18:06:06

I am on artix linux but I am using tiling window manager (dwm) so maybe that could cause some problems?

Chris K18:06:02

@U7RJTCH6J Nevermind it was about the java version... 😞 I changed to java8 instead of java11 and it works now Thanks anyhow :thumbsup:

nice 1
gibi00:06:56

hi ! I'm following this example to add the allow origin header with reitit, but it seems not to work for me https://github.com/metosin/reitit/issues/143#issuecomment-647191697

sova-soars-the-sora01:06:21

You're wrapping the route and you reloaded the namespace?

gibi01:06:22

I added :middleware for the post /api/v1/todo-lists

sova-soars-the-sora03:06:11

is it possible to use ring-cors with reitit? i would assume you'd need something from reitit land

sova-soars-the-sora03:06:21

i don't know reitit very well ...

👍 1
Clark Urzo07:06:53

Hi, so I'm trying to deploy an app to Heroku by calling shadow-cljs watch app with my Procfile (the $PORT is already being obtained by the app in shadow-cljs.edn ). I know this is really bad practice but I'm just trying to get something to work. The build succeeds but nothing's appearing:

2021-06-06T07:38:23.810868+00:00 app[web.1]: npm ERR! @ dev: `run-p -l *:watch`

2021-06-06T07:38:23.810972+00:00 app[web.1]: npm ERR! spawn ENOENT

2021-06-06T07:38:23.811166+00:00 app[web.1]: npm ERR! 

2021-06-06T07:38:23.811307+00:00 app[web.1]: npm ERR! Failed at the @ dev script.

2021-06-06T07:38:23.811393+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

2021-06-06T07:38:23.817637+00:00 app[web.1]: 

2021-06-06T07:38:23.817863+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:

2021-06-06T07:38:23.817910+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2021-06-06T07_38_23_812Z-debug.log

2021-06-06T07:38:23.894267+00:00 heroku[web.1]: Process exited with status 1

2021-06-06T07:38:23.999991+00:00 heroku[web.1]: State changed from starting to crashed

dpsutton15:06:13

here is a presentation about how to do it, a sample app that you can clone, and a running version on netlify

Clark Urzo02:06:10

Thank you! Sorry for the late response

Clark Urzo02:06:14

Will try this asap

Clark Urzo07:06:51

Just wanted to deploy a Reagent app without having to set up a server myself

dpsutton15:06:46

Can I recommend netlify?

borkdude15:06:43

or just github pages if it's just static content with some JS

caumond17:06:07

Hi guys, I am trying to generate v1= [0 3 5 12] based on v2=[3 2 7]. The mathemtical formula would be

v1[0]=0;
v1[n+1]=v1[n]+v2[n]

caumond17:06:16

I feel really noob, but I don't find.

tws17:06:19

(reductions + 0 [3 2 7])

caumond17:06:48

Thk. There is just a word for it !!!