This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-08
Channels
- # bangalore-clj (4)
- # beginners (160)
- # calva (132)
- # cider (18)
- # clara (1)
- # cljsrn (2)
- # clojure (129)
- # clojure-boston (1)
- # clojure-europe (5)
- # clojure-italy (5)
- # clojure-losangeles (1)
- # clojure-nl (33)
- # clojure-uk (49)
- # clojurescript (88)
- # cursive (20)
- # datomic (5)
- # duct (3)
- # fulcro (33)
- # graphql (7)
- # jobs (3)
- # kaocha (3)
- # nrepl (41)
- # off-topic (58)
- # pathom (18)
- # re-frame (1)
- # reagent (5)
- # shadow-cljs (148)
- # spacemacs (7)
- # tools-deps (7)
Cross-posting from #rebl: Trying to run REBL from within Cursive. It works fine from the command line, so I think my deps.edn is correct, but when using the setup for cursive from the REBL wiki I'm getting java.lang.ClassNotFoundException: javafx.fxml.FXMLLoader
I noticed the console doesn’t do \r correctly; but it seems like a IntelliJ issue (https://youtrack.jetbrains.com/issue/IDEA-147282). are there known workarounds?
i have a clojurescript nrepl running via shadow cljs. i've followed the guide [1] and can connect just fine, but cursive complains when i try to load a cljs name space: Cannot load ClojureScript file into Clojure REPL. is there a way around this? 🙂 [1] https://github.com/thheller/shadow-cljs/wiki/Cursive
@joshkh there’s a little dropdown menu in the toolbar at the top of the REPL window that you can change from CLJ to CLJS to let cursive know what’s on the other end of your nrepl.
nice! okay, that got me a little farther, but now there's another error: No reader function for tag js
:
(ns server.main)
(defn handler [_ _ cb]
(cb nil
#js {:statusCode 200
:body (js/JSON.stringify "Hello!")}))
Loading src/server/main.cljs...
Syntax error reading source at (main.cljs:6:53).
No reader function for tag js
@holyjak re: your question about the datomic stubs jar, that is no longer required in recent Cursive versions. Instead, you’ll be prompted to build the stubs automatically when using datomic and other similar libraries.
@dave.dixon I’ll try to reproduce that today.
FYI, seems to work with Java 8. Unfortunately, REBL doesn't render correctly in Java 8 on a HiDPI display.
@dave.dixon When you run your REPL, you can look at the classpath used by un-folding the second line in the console. Are the JavaFX jars there?
Is this maybe the issue of a long classpath getting truncated on windows?
But it works from the command line, so maybe not.
There’s an option to control that in the run configuration - if you think that might be the problem, try “classpath file” under “Shorten command line”.
No luck.
Maybe a classloader issue? Here's part of the info that is shown with the exception: Caused by: java.lang.ClassNotFoundException: javafx.fxml.FXMLLoader at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:398) at clojure.lang.RT.classForName(RT.java:2207) at clojure.lang.RT.classForNameNonLoading(RT.java:2220) at cognitect.rebl.renderers$loading__6706__auto____12012.invoke(renderers.clj:3) at cognitect.rebl.renderers__init.load(Unknown Source) at cognitect.rebl.renderers__init.<clinit>(Unknown Source) ... 71 more
@jeroen.dejong I don’t think so, unfortunately.
I have a local REPL that insists on running clojure 1.9. Running at the command line using clj
runs 1.10. Double-checked the various deps.edn files, where else would I look?
@dave.dixon Oh, you’re using the “Use t.d.a directly” REPL option on Windows, right? I just realised that I haven’t updated the bundled system deps.edn, so that will be pulling in Clojure 1.9. I’ll fix that, and also make it overridable so that you can choose another file if required.