-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix info lookups from namespaces that don't yet exist
Currently when doing a `var-info` from a file before evaluating the `ns` form always fails. The namespace object does not yet exist, and so none of the var resolution strategies work. However fully-qualified vars, namespace names, or built-ins (clojure.core functions) could all be resolved, and it's frustrating that they aren't. This adds a check to see if `(find-ns ns)` returns anything. If not then we are initiating the lookup from a namespace that has not yet been defined, in which case none of the lookup strategies will proceed, so we continue with doing the lookup as if it had been initiated from `clojure.core`.
- Loading branch information
Showing
3 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters