This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-03
Channels
- # adventofcode (2)
- # announcements (1)
- # asami (35)
- # babashka (67)
- # beginners (97)
- # cherry (3)
- # clj-yaml (3)
- # cljsrn (9)
- # clojure (44)
- # clojure-dev (34)
- # clojure-europe (13)
- # clojure-gamedev (1)
- # clojure-norway (10)
- # clojure-uk (2)
- # clojurescript (24)
- # clr (1)
- # conjure (18)
- # cursive (4)
- # datalevin (3)
- # emacs (6)
- # graalvm (9)
- # graphql (1)
- # introduce-yourself (1)
- # malli (7)
- # nrepl (3)
- # portal (1)
- # quil (2)
- # reagent (1)
- # reitit (21)
- # releases (1)
- # reveal (11)
- # ring (2)
- # shadow-cljs (17)
- # sql (24)
- # vim (4)
Hello, is it possible to use reveal with defrecord
s?
Starting reveal with:
clojure -Sdeps '{:deps {vlaaad/reveal {:mvn/version "1.3.276"}}}' -X vlaaad.reveal/remote-prepl :port 7777
Then in the repl, I create a defrecord;
user> (defrecord Test [test])
user.Test
user> (tap> (Test. "test"))
true
results in exception for me:
Error reading eval result (ClassNotFoundException) at jdk.internal.loader.BuiltinClassLoader/loadClass (BuiltinClassLoader.java:581).
user.Test
I see that you are using prepl to remote process, I think that's the source of the problem — you have a record definition in remote process, but not in the reveal process. Is it not an option to run reveal in the developed process?
Hmm, I think I have a solution for that: use *suppress-read*
in prepl reader, i.e.
(binding [*suppress-read* true] ...)
Thank you! So in summary, the problem is that I use cider-nrepl, but connect to a separate prepl process. So the definitions that are loaded in one of them, are not available in the other.
Unfortunately, the project I am working with uses java8, that’s why I connect remotely.