-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analyzer crashes on deftype / reify in same ns #497
Comments
The same happens in a plain analyzer call, when the type is not yet in context: (clojure.tools.analyzer.jvm/analyze '(reify Foo
(-foo [this] :baz)))
;; throws
;; Execution error (NullPointerException) at clojure.tools.analyzer.jvm/-deftype$fn (jvm.clj:319).
;; Cannot invoke "java.lang.Class.getName()" because "p1__5034_SHARP_" is null
Therefore I don't believe is related the changes in #386. |
I believe I hit this issue too. The full namespace where I hit the errorI hit it when implementing REPL is run from the same folder as Observations
Screenshot of what I'm seeing:Full CIDER errorCIDER ERROR
|
Reproducible by showing the following ns with clerk. Note: it won't reproduce if the
defprotocol
form (or the whole ns) is evaluated in the REPL before callingclerk/show!
. Analysis also won't crash if the protocol is required from another ns.The text was updated successfully, but these errors were encountered: