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

handle undefined identifiers at help prompt #8262

Closed
Wilfred opened this issue Sep 7, 2014 · 5 comments
Closed

handle undefined identifiers at help prompt #8262

Wilfred opened this issue Sep 7, 2014 · 5 comments
Labels
status:help wanted Indicates that a maintainer wants help on an issue or pull request stdlib:REPL Julia's REPL (Read Eval Print Loop)

Comments

@Wilfred
Copy link
Contributor

Wilfred commented Sep 7, 2014

At the moment, we're not very helpful if a user gets a function name wrong.

help?> i_dont_exist
ERROR: i_dont_exist not defined

We could either fall back to calling apropos() automatically, or at least suggest it in the error message. This would benefit from apropos searching function names, so foobar("my_function") would work, and perhaps even foobar("my_funct") too.

@pao pao added the stdlib:REPL Julia's REPL (Read Eval Print Loop) label Sep 7, 2014
@ivarne ivarne added the status:help wanted Indicates that a maintainer wants help on an issue or pull request label Sep 8, 2014
@nolta
Copy link
Member

nolta commented Sep 12, 2014

julia> apropos(i_dont_exist)
ERROR: i_dont_exist not defined

@ivarne
Copy link
Sponsor Member

ivarne commented Sep 15, 2014

@davidssmith submitted a PR in #8327

@ivarne ivarne closed this as completed in d31073a Sep 16, 2014
ivarne added a commit that referenced this issue Sep 16, 2014
fall back on apropos() if help() fails; fixes #8262
@ivarne ivarne reopened this Sep 16, 2014
@ivarne
Copy link
Sponsor Member

ivarne commented Sep 16, 2014

REPL help?> mode still doesn't accept queries that isn't defined. Keeping this issue open.

@JeffBezanson JeffBezanson changed the title If help can't find anything, fall back to apropos handle undefined identifiers at help prompt Sep 16, 2014
@davidssmith
Copy link
Contributor

Why do we need a separate Base.@help macro? Can help?> not pass a sanitized input to the normal help()?

ivarne pushed a commit that referenced this issue Sep 19, 2014
@jakebolewski
Copy link
Member

Closing, as the default help behavior seems reasonable now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:help wanted Indicates that a maintainer wants help on an issue or pull request stdlib:REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

6 participants