cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
dpsutton 2020-12-06T02:10:16.240500Z

did that fix the underlying issue for you? usually if its pending it means the cljs runtime isn't present and it has a good chance of not working

Ben Sless 2020-12-06T07:06:04.241300Z

Anyone here uses CIDER with reveal? How did you set it up?

benny 2020-12-06T07:45:06.241400Z

@dpsutton yes. I'm running the repl on an embedded armv7l board that only has node, but no java. I have a small weirdness that stdout is above the prompt, but evaluations inside the associated file works good and code completion works after adding cider-nrepl to the dependencies.

practicalli-john 2020-12-06T09:32:38.243Z

@ben.sless Its very simple to use reveal with CIDER connect and Clojure CLI tools https://practicalli.github.io/clojure/clojure-tools/data-browsers/reveal.html#using-reveal-with-nrepl-editors

Ben Sless 2020-12-06T09:38:04.243100Z

Thanks, I actually stumbled cross your guide already but things aren't that simple for me for two reasons: Most projects I work on still use lein Most projects I work in still use java8 iirc reveal doesn't work all that great on java8, no? I might want to use it conditionally. Any advice regarding lein? And any way to make emacs stop asking me to apply dir locals for every buffer I open under a dir?

practicalli-john 2020-12-06T10:16:25.243300Z

For Leinigen, I assume its adding a dev-dependency section with the reveal library and version. Then create a .nrepl.edn file containing {:middleware [vlaaad.reveal.nrepl/middleware]}`` That is what I would try first. I will try find time to check today. Let me know if that works for you.

👍 1
🙏 1
practicalli-john 2020-12-06T10:19:46.243500Z

To use Clojure CLI tools with your Leinigen projects, try adding a deps.edn file to the projects. I should contain the paths, eg. src and any dependencies. So long as the project doesnt rely on plugins or bespoke leiningen code it should work

practicalli-john 2020-12-06T10:21:02.243900Z

Cant help you with Java, except to encourage the switch to openjdk 11. Java 8 is past its end of live, so using that commercially would not be an approach I would take. I would have thought reveal would work on Oracle Java 8 but I havent tested this. https://github.com/cljfx/cljfx#installation-and-requirements says that JavaFX should work on Java 8 but its outdated and crashes on MacOSX. It recommends Java 11

practicalli-john 2020-12-06T10:25:14.244100Z

When Emacs loads a .dir-locals.el the prompt usually contains a ! option to accept permanently. Emacs then adds the contents of the .dir-locals.el to the custom-set-variables list in a sub-list called safe-local-variable-values

🙏 1
Ben Sless 2020-12-06T10:52:49.244700Z

> encourage the switch to openjdk 11 Working on it. We're not a small organization anymore 😞

Ben Sless 2020-12-06T11:05:43.245Z

Okay, looks like it works fine with Java 8, too, but when starting with cider-jack-in-clj a leiningen repl with .nrepl.edn in the project's root directory I still don't get the reveal repl

Ben Sless 2020-12-06T11:11:20.245200Z

I have tried the following: create new project with lein add this profile section

:profiles
  {:dev
   {:source-paths ["./dev"]
    :dependencies [[vlaaad/reveal "1.1.164"]]
    :plugins [[vlaaad/reveal "1.1.164"]]}}
add .nrepl.edn
{:middleware [vlaaad.reveal.nrepl/middleware]}
lein repl fails:
lein repl
Syntax error compiling var at (/tmp/form-init293057067636070961.clj:1:2808).
Unable to resolve var: vlaaad.reveal.nrepl/middleware in this context

practicalli-john 2020-12-06T14:19:38.245400Z

Try running the REPL on the command line and using cider-connect. This will help identify if its the configuration CIDER injects when using Cider-jack-in (which cider connect does not do)

practicalli-john 2020-12-06T14:23:34.245600Z

Oh, I guess you have to set vlaaad/reveal as the main namespace some how... or have a lein plugin that manages that (which I don't think exists)

practicalli-john 2020-12-06T14:24:01.245800Z

Sorry, it has been a while since I used Leinigen..

Ben Sless 2020-12-06T15:30:47.246Z

Not your fault some of us are living in the past 😉