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

Incorrect docstring with erroneous ? in REPL help mode #13761

Closed
malmaud opened this issue Oct 25, 2015 · 7 comments
Closed

Incorrect docstring with erroneous ? in REPL help mode #13761

malmaud opened this issue Oct 25, 2015 · 7 comments
Labels
docsystem The documentation building system REPL Julia's REPL (Read Eval Print Loop)

Comments

@malmaud
Copy link
Contributor

malmaud commented Oct 25, 2015

Accidently typed a ? when already at help mode and got this strange result

help?> ?@parallel
  *(x, y...)

  Multiplication operator. x*y*z*... calls this function with all arguments, i.e. *(x, y, z, ...).
@jiahao
Copy link
Member

jiahao commented Oct 25, 2015

It might be a lookup issue. Same thing happens with ?@! and a bunch of things I tried that start with ?@.

@yuyichao
Copy link
Contributor

It's a multiplication

julia> :(?@parallel)
:((?) * @parallel())

@jiahao
Copy link
Member

jiahao commented Oct 25, 2015

Oh, so it's #1910 #6286 again

@malmaud
Copy link
Contributor Author

malmaud commented Oct 26, 2015

Ah yes, now it makes sense.

@kshyatt kshyatt added REPL Julia's REPL (Read Eval Print Loop) docsystem The documentation building system labels Oct 26, 2015
@KristofferC
Copy link
Member

This now gives:

help?> ?@parallel
ERROR: ArgumentError: wrong number of arguments to @parallel

Is that good enough to close?

@martinholters
Copy link
Member

As long as we want to keep the parsing of :(?@parallel) to be the multiplication by juxtaposition, this is probably as good as it gets without any special-casing. Note that if @parallel is replaced by a macro takes accepts zero arguments, the error becomes

ERROR: UndefVarError: ? not defined

@KristofferC
Copy link
Member

This has not really anything to do with the docsystem then. Also giving an error that points to the ? is good since the user will then likely find the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docsystem The documentation building system REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

No branches or pull requests

6 participants