Fork me on GitHub
#cider
<
2021-02-02
>
jumar03:02:21

Is there a way to show a history of "inspections". That is the previous results in the inspector view. I basically want to see and be able to navigate the list of previous evaluations Any other good alternative? (I don't really want to send all the evaluations to the REPL but maybe that's an option)

bozhidar07:02:42

Currently there's nothing like this, but it wouldn't be hard to store the list of inspected expressions somewhere.

jumar03:02:10

One workaround could be to have an atom and just save any interesting value there via tap> . I could then inspect the atom. It's not very convenient but something that could work right now.

jumar03:02:58

I forgot if there's a way to "hook into an evaluation" in Cider; so that I could automatically call tap> every time I do cider-eval-* Found this but it seems it's missing: https://docs.cider.mx/cider/usage/code_evaluation.html#evaluation-hooks

danielneal20:02:02

I keep getting this error on a mac, with adoptopenjdk 8 java.lang.ClassNotFoundException: com.sun.tools.javac.util.List

dpsutton20:02:13

got a stack trace?

danielneal20:02:55

java.lang.ClassNotFoundException: com.sun.tools.javac.util.List
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:69)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at clojure.lang.DynamicClassLoader.loadClass(DynamicClassLoader.java:77)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at clojure.lang.RT.classForName(RT.java:2211)
	at clojure.lang.RT.classForName(RT.java:2220)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java.legacy_parser$parse_java.invokeStatic(legacy_parser.clj:88)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java.legacy_parser$parse_java.invoke(legacy_parser.clj:66)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java.legacy_parser$source_info.invokeStatic(legacy_parser.clj:274)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java.legacy_parser$source_info.invoke(legacy_parser.clj:265)
	at clojure.lang.Var.invoke(Var.java:384)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$source_info.invokeStatic(java.clj:144)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$source_info.invoke(java.clj:139)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$class_info_STAR_.invokeStatic(java.clj:223)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$class_info_STAR_.invoke(java.clj:214)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$class_info.invokeStatic(java.clj:261)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$class_info.invoke(java.clj:253)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$resolve_class.invokeStatic(java.clj:340)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$resolve_class.invoke(java.clj:331)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$resolve_symbol.invokeStatic(java.clj:371)
	at cider.nrepl.inlined_deps.orchard.v0v6v4.orchard.java$resolve_symbol.invoke(java.clj:357)
	at cider.nrepl.middleware.stacktrace$analyze_fn.invokeStatic(stacktrace.clj:84)
	at cider.nrepl.middleware.stacktrace$analyze_fn.invoke(stacktrace.clj:63)
	at clojure.core$comp$fn__5807.invoke(core.clj:2569)
	at clojure.core$comp$fn__5807.invoke(core.clj:2569)
	at clojure.core$comp$fn__5807.invoke(core.clj:2569)
	at cider.nrepl.middleware.stacktrace$analyze_frame.invokeStatic(stacktrace.clj:180)
	at cider.nrepl.middleware.stacktrace$analyze_frame.invoke(stacktrace.clj:177)
	at clojure.core$map$fn__5866.invoke(core.clj:2755)
	at clojure.lang.LazySeq.sval(LazySeq.java:42)
	at clojure.lang.LazySeq.seq(LazySeq.java:51)
	at clojure.lang.LazySeq.first(LazySeq.java:73)
	at clojure.lang.RT.first(RT.java:692)
	at clojure.core$first__5384.invokeStatic(core.clj:55)
	at clojure.core$first__5384.invoke(core.clj:55)
	at cider.nrepl.middleware.stacktrace$flag_duplicates.invokeStatic(stacktrace.clj:168)
	at cider.nrepl.middleware.stacktrace$flag_duplicates.invoke(stacktrace.clj:164)
	at cider.nrepl.middleware.stacktrace$analyze_stacktrace.invokeStatic(stacktrace.clj:186)
	at cider.nrepl.middleware.stacktrace$analyze_stacktrace.invoke(stacktrace.clj:182)
	at cider.nrepl.middleware.stacktrace$analyze_cause.invokeStatic(stacktrace.clj:290)
	at cider.nrepl.middleware.stacktrace$analyze_cause.invoke(stacktrace.clj:281)
	at cider.nrepl.middleware.stacktrace$analyze_causes$fn__3933.invoke(stacktrace.clj:315)
	at clojure.core$map$fn__5862$fn__5863.invoke(core.clj:2742)
	at clojure.core$take_while$fn__5913$fn__5914.invoke(core.clj:2901)
	at clojure.lang.Iterate.reduce(Iterate.java:81)
	at clojure.core$transduce.invokeStatic(core.clj:6883)
	at clojure.core$into.invokeStatic(core.clj:6899)
	at clojure.core$into.invoke(core.clj:6887)

danielneal20:02:12

the class should be in tools.jar

danielneal20:02:28

and tools.jar is there in $JAVA_HOME/lib

danielneal20:02:39

sure, any ideas what might be the problem?

dpsutton20:02:50

none at all

dpsutton20:02:29

sorry. but figuring out where sun utility classes are (and should be) is not something i have at my fingertips. would require looking up some stuff to see what expectations are, have they moved, etc.

Eamonn Sullivan20:02:44

That's a very similar stack trace to what I was getting. I have commented on https://github.com/clojure-emacs/orchard/issues/103. The workaround for me is to use Java 11, if that's an option for you.

danielneal21:02:35

upgrading to java 11 didn't work for me, sadly

danielneal21:02:12

oh wait, emacs is still seeing java 8

danielneal21:02:44

aw man now I'm missing these guys

Caused by java.lang.ClassNotFoundException
   javax.xml.bind.DatatypeConverter

blak3mill3r03:02:25

I have seen this one... though the details elude me

blak3mill3r03:02:23

I switch between Java 8 and 11, having some clojure projects on each... and I can tell you that some dependencies are incompatible with one or the other, and this javax.xml.bind.DatatypeConverter is one that I had seen when I tried to use some dependency that only liked Java 8, with Java 11 (IIRC)

blak3mill3r03:02:56

I was forced to upgrade or downgrade certain dependencies to get around these kind of issues, and to have cider work properly (with a single emacs config) with both java versions

blak3mill3r03:02:30

you might try updating some older dependencies and see if you can get Java 11 to work