beginners

Getting started with Clojure/ClojureScript? Welcome! Also try: https://ask.clojure.org. Check out resources at https://gist.github.com/yogthos/be323be0361c589570a6da4ccc85f58f.
Chris K 2021-06-06T00:37:41.348800Z

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!

Chris K 2021-06-06T18:48:06.364400Z

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

Chris K 2021-06-06T18:57:02.364600Z

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

1
gibi 2021-06-06T00:41:56.350Z

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-sora 2021-06-06T01:05:21.350300Z

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

phronmophobic 2021-06-06T01:12:04.350500Z

what version of play-clj are you using?

phronmophobic 2021-06-06T01:12:50.350700Z

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

phronmophobic 2021-06-06T01:13:09.351Z

which is a much newer version of lwjgl

gibi 2021-06-06T01:23:18.351200Z

https://pastebin.com/sR4UTuSE

gibi 2021-06-06T01:23:26.351400Z

@sova yep

gibi 2021-06-06T01:24:22.351600Z

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

sova-soars-the-sora 2021-06-06T03:41:11.352Z

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

sova-soars-the-sora 2021-06-06T03:41:21.352200Z

i don't know reitit very well ...

👍 1
Chris K 2021-06-06T05:15:06.352400Z

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

Chris K 2021-06-06T05:15:25.352600Z

: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"]]

phronmophobic 2021-06-06T05:37:09.352800Z

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

2021-06-06T07:41:53.355100Z

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

2021-06-09T02:28:10.468900Z

Thank you! Sorry for the late response

2021-06-09T02:28:14.469200Z

Will try this asap

2021-06-06T07:42:51.355700Z

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

dpsutton 2021-06-06T15:09:46.356700Z

Can I recommend netlify?

dpsutton 2021-06-06T15:11:13.356800Z

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

borkdude 2021-06-06T15:25:43.357600Z

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

caumond 2021-06-06T17:03:07.363400Z

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]

caumond 2021-06-06T17:04:16.363700Z

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

tws 2021-06-06T17:10:19.363900Z

(reductions + 0 [3 2 7])

caumond 2021-06-06T17:13:48.364100Z

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

gibi 2021-06-06T22:23:31.366300Z

Hi, I am trying to use an <input> with reagent atom, for some reason adding :value @text seems to prevent the character from appearing https://pastebin.com/QWXWLBvw

gibi 2021-06-06T22:24:49.366400Z

if I remove :value then I can see the chars appear, but it doesn't clear the content as a result of others actions on the ui