Skip to content
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

Java classes are not available after undef-all and reload #752

Closed
danskarda opened this issue May 18, 2022 · 2 comments
Closed

Java classes are not available after undef-all and reload #752

danskarda opened this issue May 18, 2022 · 2 comments

Comments

@danskarda
Copy link
Contributor

Expected behavior

Classes which are imported by default (Long, Throwable, Exception) are available after undef-all and defining the namespace again.

For example:

(ns foo.bar)

inc
;; => #function[clojure.core/inc]

Long
;; => java.lang.Long

Actual behavior

I cider-undef-all from Emacs and evaluate ns form. All clojure.core functinons are imported to namespace (which is correct), but java classes (Long, Throwable, Exception) are not available. This is unfortunate as Exception is usually used in (catch Exception ... ) blocks etc.

(ns foo.bar)

inc
;; => #function[clojure.core/inc]

Long
;; => Exception unable to resolve symbol Long in this context

Environment & Version information

cider-nrepl version

cider-nrepl. 0.28.3
nrepl 0.9.0
Cider 1.4.0

Java version

(System/getProperty "java.version")
"11.0.15"

Operating system

Debian Sid

@vemv
Copy link
Member

vemv commented May 18, 2022

Thanks! Will be closed by #751

@danskarda
Copy link
Contributor Author

Great. Thanks. I should have checked also pull requests, not only open / closed issues.

@vemv vemv closed this as completed May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants