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

Can't lookup documentation when evaluating expressions from an unsaved file #230

Open
hovsater opened this issue Dec 29, 2020 · 2 comments

Comments

@hovsater
Copy link

hovsater commented Dec 29, 2020

I have an unsaved file containing the following code:

(def world "The world." "world")

(defn greet-world
  "Greet the world!"
  []
  (println "Hello," (str world "!")))

(greet-world)

Trying to look up the documentation for these definitions (after evaluating them) does not work.

See attached screenshot.

Screenshot 2020-12-29 at 16 40 45

Running (doc world) and doc (greet-world) in the REPL does give me the documentation as expected. Further, it does not look like documentation lookup work at all, not even for Clojure defined functions such as println, def or defn.

Am I doing something wrong here?

@hovsater hovsater changed the title Can't retrieve docs for defintions Can't retrieve docs for REPL definitions in an unsaved file Dec 29, 2020
@hovsater hovsater changed the title Can't retrieve docs for REPL definitions in an unsaved file Can't lookup documentation when evaluating expressions from an unsaved file Dec 29, 2020
@hovsater
Copy link
Author

I've confirmed that saving the file to disk causes documentation lookup to start working as expected.

Would it be possible to support unsaved files as well?

@mauricioszabo
Copy link
Owner

Yes, I'll check what's wrong :). I'll keep the bug open here to track this issue

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