cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
jumar 2021-02-02T03:38:21.141Z

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)

jumar 2021-02-03T03:56:10.148700Z

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.

jumar 2021-02-03T03:58:58.148900Z

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

bozhidar 2021-02-02T07:07:42.141600Z

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

danielneal 2021-02-02T20:27:02.142700Z

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

dpsutton 2021-02-02T20:30:13.143600Z

got a stack trace?

danielneal 2021-02-02T20:30:53.143800Z

yep

danielneal 2021-02-02T20:30:55.144Z

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)

danielneal 2021-02-02T20:31:12.144300Z

the class should be in tools.jar

danielneal 2021-02-02T20:31:28.144700Z

and tools.jar is there in $JAVA_HOME/lib

dpsutton 2021-02-02T20:33:15.145Z

can you create an issue on https://github.com/clojure-emacs/orchard/ ?

danielneal 2021-02-02T20:33:39.145300Z

sure, any ideas what might be the problem?

dpsutton 2021-02-02T20:33:50.145500Z

none at all

danielneal 2021-02-02T20:33:54.145700Z

🙂

dpsutton 2021-02-02T20:34:29.146500Z

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.

danielneal 2021-02-02T20:51:33.146800Z

Added an issue here https://github.com/clojure-emacs/orchard/issues/105

Eamonn Sullivan 2021-02-02T20:53:44.147Z

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.

danielneal 2021-02-02T21:05:35.147300Z

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

danielneal 2021-02-02T21:06:12.147500Z

oh wait, emacs is still seeing java 8

danielneal 2021-02-02T21:13:44.147700Z

aw man now I'm missing these guys

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