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

info fails to find the file when it lacks any defs. #75

Closed
PEZ opened this issue Oct 31, 2019 · 1 comment
Closed

info fails to find the file when it lacks any defs. #75

PEZ opened this issue Oct 31, 2019 · 1 comment

Comments

@PEZ
Copy link
Contributor

PEZ commented Oct 31, 2019

If I have a file foo.clj without any defs in it. For instance if it has only this content

(ns foo)

And then ask for info on it. I get no :file path in the response.

But if I have this:

(ns foo)

(def foo 42)

Then I get the :file path for this file in the response.

Steps to reproduce the problem

I'm not sure how to reproduce this in any other way than creating the files in a Clojure project:

foo.clj with contents:

(ns foo)

bar.clj with contents

(ns bar
  (:require foo))

Then I load bar.clj and use my favorite nREPL tool, Calva, to peek at the definion of foo (alt+F12). Calva shows an info hover saying ”No definition found for foo”.

Then If I add (def foo 42) to foo.clj, I can peek at the definition from bar.clj.

Environment & Version information

Clojure version

1.10.0

Java version

1.12

Operating system

MacOS Mojave

PEZ added a commit to PEZ/orchard that referenced this issue Nov 1, 2019
PEZ added a commit to PEZ/orchard that referenced this issue Nov 1, 2019
bbatsov pushed a commit that referenced this issue Nov 5, 2019
bbatsov pushed a commit that referenced this issue Nov 5, 2019
bbatsov added a commit that referenced this issue Nov 5, 2019
@bbatsov
Copy link
Member

bbatsov commented Nov 6, 2019

Fixed by #76.

@bbatsov bbatsov closed this as completed Nov 6, 2019
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