reveal

2020-12-24T15:08:00.007800Z

@b_clojurians has joined the channel

2020-12-24T19:33:24.008100Z

@dcreno has joined the channel

2020-12-24T19:36:14.009500Z

I’m using vscode and calva connecting via nrepl to a clojure tools launched nrepl on another host. If I want to use reveal, how does the reveal window get launched on my client? Is that something that Calva opens locally?

seancorfield 2020-12-24T21:05:51.010300Z

@dcreno Reveal is launched from the server as it is a JavaFX app that runs inside the JVM.

2020-12-25T03:56:47.014400Z

Thanks for that reference to JavaFX. It seems that JavaFX isn’t included in the jdk I was using (zulu) but requires a special JDK (bellsoft) on the Raspberry Pi. After installing the Bellsoft JDK reveal works but everything runs very slowly. I suppose I’ll need to consider if reveal is worth the performance hit or if I need another inspector.

seancorfield 2020-12-25T03:59:11.014600Z

Ah, Zulu has been the one I've turned to for the bundled JFX builds, with Java 8. Never used the RPI tho'. After I moved to 11 (and on up), I've used Adopt OpenJDK and just added all the OpenJFX stuff as dependencies.

2020-12-25T04:29:44.017800Z

Does this mean the jdk doesn’t need support for javafx but that libraries can be specified as deps to Clojure to enable javafx programs to run?

seancorfield 2020-12-25T04:30:51.018Z

Correct. See https://github.com/seancorfield/dot-clojure/blob/develop/deps.edn#L140-L153 -- as long at there are openjfx libraries for your platform.

seancorfield 2020-12-25T04:31:43.018300Z

(I think Reveal as a dep specifies those libs as dependencies already?)

2020-12-25T04:36:32.019200Z

Great, I’ll try that tomorrow. Thanks!

vlaaad 2020-12-25T07:49:40.019400Z

Yes, reveal specifies those as deps on Java 11+

seancorfield 2020-12-24T21:08:26.012900Z

What O/S are your host (server) and client machines? If the host is Linux, you'll need to be able to display X11 GUI applications from that server onto your client in order to see it. I use VS Code on Windows with the Remote-WSL2 extension and I run all my Clojure stuff on Ubuntu (on WSL2). I have VcXsrv (Xlaunch) installed on Windows, and any X11 GUI I launch on Ubuntu is displayed on Windows via Xlaunch.

2020-12-24T21:59:50.014300Z

Linux host and macOS client. Guess I need to fire-up XQuartz.