Fork me on GitHub
#cider
<
2020-05-06
>
slipset10:05:55

Interesting, unexcpected, but somewhat understandable:

user> (.URI. "")
;; => #object[.URI 0x5c756f85 ""]ERROR: Unhandled REPL handler exception processing message {:op slurp, :url , :session 338ec46a-a3e8-40e6-be4d-4a49fe59a50f, :id 8942}
java.lang.NullPointerException
	at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
	at java.util.regex.Matcher.reset(Matcher.java:309)
	at java.util.regex.Matcher.<init>(Matcher.java:229)
	at java.util.regex.Pattern.matcher(Pattern.java:1093)
	at clojure.core$re_matcher.invokeStatic(core.clj:4856)
	at clojure.core$re_find.invokeStatic(core.clj:4898)
	at clojure.core$re_find.invoke(core.clj:4898)
	at cider.nrepl.middleware.slurp$normalize_content_type.invokeStatic(slurp.clj:46)
	at cider.nrepl.middleware.slurp$normalize_content_type.invoke(slurp.clj:41)
	at cider.nrepl.middleware.slurp$slurp_url_to_content_PLUS_body.invokeStatic(slurp.clj:95)
	at cider.nrepl.middleware.slurp$slurp_url_to_content_PLUS_body.invoke(slurp.clj:82)
	at cider.nrepl.middleware.slurp$handle_slurp.invokeStatic(slurp.clj:116)
	at cider.nrepl.middleware.slurp$handle_slurp.invoke(slurp.clj:108)
	at clojure.lang.Var.invoke(Var.java:388)
	at cider.nrepl$wrap_slurp$fn__94216.invoke(nrepl.clj:95)
	at nrepl.middleware$wrap_conj_descriptor$fn__83937.invoke(middleware.clj:16)
	at refactor_nrepl.middleware$wrap_refactor$fn__98849.invoke(middleware.clj:207)

pmooser10:05:36

If I c-u c-M-x a function, it gets marked for debugging.

pmooser10:05:37

How do I undo this?

practicalli-johnny11:05:58

@pmooser evaluate the function definition to remove the debugging brakepoints

pmooser11:05:08

@jr0cket It is so obvious in retrospect. Thank you so much!

practicalli-johnny13:05:17

Obvious when you know how, it has caught many people out 😁

dpsutton13:05:55

@slipset do you know how to prevent that? Not sure if you are asking for help or pointing it out :)

slipset13:05:12

Just pointing out.

slipset13:05:25

in case someone found it amusing 🙂

dpsutton13:05:22

i've seen lots of tickets and questions about that one so just making sure

slipset13:05:22

ok. I just stumbled upon it by happenstance.

mikerod13:05:42

@slipset @dpsutton I thought in recent releases that middleware was turned off or fixed to not NPE

dpsutton13:05:12

there have been some fixes to not NPE and i think bozhidar has finally set it as not enabled by default

dpsutton13:05:47

its not totally fixed to not NPE as there are lots of reasons it could still fail. There's nothing about permissions for example

slipset13:05:00

I think I'm somewhat recent. C-h-v cider-version reports 0.24.0-snapshot

dpsutton13:05:16

"0.25.0-snapshot" is the latest i believe

mikerod18:05:44

Ah I see.

mikerod18:05:14

I haven’t tried. Just saw this in some changelog or blog from bozhidar