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

Inconsistent dealing with unknown symbol with (doc) function #520

Open
socksy opened this issue Aug 18, 2016 · 0 comments
Open

Inconsistent dealing with unknown symbol with (doc) function #520

socksy opened this issue Aug 18, 2016 · 0 comments

Comments

@socksy
Copy link

socksy commented Aug 18, 2016

The first time you call the doc function on an unknown symbol, it returns nil. After this symbol has been found to be unknown in a new statement, runnning doc on it returns an undefined symbol RuntimeException.

user => (doc foo)
nil
user => foo
ERROR: 
 in pixie function repl_fn

in pixie/repl.pxi at 27:24
               (let [x (eval form)]
                       ^
in internal function eval

in <unknown> at 20:1
foo
^
RuntimeException: :pixie.stdlib/AssertionException Var foo is undefined

user => (doc foo)
ERROR: 
 in pixie function repl_fn

in pixie/repl.pxi at 27:24
               (let [x (eval form)]
                       ^
in internal function eval

in pixie function doc

in pixie/stdlib.pxi at 1454:18
        x (if vr @vr)
                 ^
in polymorphic function -deref dispatching on pixie.stdlib.Var

in internal function __deref

RuntimeException: :pixie.stdlib/AssertionException Var foo is undefined

user => (doc bar)
nil
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

1 participant