Silly ns question

2019-02-15 Thread James Gatannah
I'm using cider 0.18.0 (which is sweet) and emacs. I just created a new buffer inside a new directory, and it generated the preliminary ns form for me (also sweet). The path to the file under my source directory is "shared/connection-test.cljc". The symbol of the ns that it generated is

Re: type function returning a NullPointerException

2019-02-15 Thread Alex Miller
What's the stack trace when you get an NPE? (pst *e) Are you shadowing a core function with your own `count` or something like that? On Friday, February 15, 2019 at 8:27:55 AM UTC-6, KJO wrote: > > Hi- > > This one has me stumped. The following code snippet throws a > NullPointerException

Re: type function returning a NullPointerException

2019-02-15 Thread KJO
Damn! That shadowing thing has tripped me up a bunch of times. I'm sheepish. Thanks for the reply. And the type thing is just more of the same (more sheepish) - events do conspire against us. I'd been trying to track it down for quite a while. Appreciate the help. Best On Friday, February

type function returning a NullPointerException

2019-02-15 Thread KJO
Hi- This one has me stumped. The following code snippet throws a NullPointerException and I just can't understand how it could. (if (set? t-val) (println t-val (type t-val))) It seems that if it's a set, it should have a set type. If I change the code to (if (set? t-val) (println t-val