Fork me on GitHub
#clojure-dev
<
2018-05-28
>
thheller06:05:35

I'm trying to figure out a weird issue where an exception is thrown referring to code that is not actually used anywhere in the actual code

Caused by: java.lang.RuntimeException: Can't resolve find-ns
        at clojure.lang.Util.runtimeException(Util.java:221)
        at clojure.lang.LispReader$EvalReader.invoke(LispReader.java:1315)
        at clojure.lang.LispReader$DispatchReader.invoke(LispReader.java:843)
        at clojure.lang.LispReader.read(LispReader.java:275)
        at clojure.lang.LispReader.read(LispReader.java:206)
        at clojure.lang.LispReader.read(LispReader.java:195)
        at clojure.lang.RT.readString(RT.java:1871)
        at clojure.lang.RT.readString(RT.java:1866)
        at shadow.build.warnings$get_source_excerpts$iter__13047__13051$fn__13052$fn__13053$fn__13055.<clinit>(warnings.clj:44)
        ... 41 more

thheller06:05:34

can someone tell me how I figure out what shadow.build.warnings$get_source_excerpts$iter__13047__13051$fn__13052$fn__13053$fn__13055.<clinit>(warnings.clj:44) is? since warnings.clj:44 doesn't use read-string at all? what happens in <clinit>?

thheller06:05:27

ah decompiler did the trick

public static final Object const__2 = RT.readString("#=(find-ns shadow.build.warnings)");

ikitommi15:05:55

What is the current status of extending protocols to a primitive array? works and can be used in libraries? Found https://dev.clojure.org/jira/browse/CLJ-1381

ikitommi15:05:46

would like to add byte-array as a valid ring response body.