Open Ritvik36 opened 6 years ago
I have not worked with sparkling, but I think you mean this piece of code.
After reconfiguring my namespace with mount
To understand what you mean a little better: what did you reconfigure and how/where mount is used?
Hello I am relatively new to both clojure and programming. I have been using mount to reconfigure my code. The code involves the use of Apache spark and sparkling for data processing.
One of my functions calls a sparkling macro:
(defmacro with-context
[context-sym conf & body]
(let [~context-sym (sparkling.core/spark-context ~conf)] (try ~@body (finally (stop ~context-sym)))))
After reconfiguring my namespace with mount I noticed that this function was throwing a NullPointerException and the stack trace pointed towards the macro.
I was wondering whether mount works in macros? If it doesn't do you know of any workarounds?