julia icon indicating copy to clipboard operation
julia copied to clipboard

Throw error on help mode for syntax error

Open udohjeremiah opened this issue 2 years ago • 0 comments

Looking at this thread here on discourse, I feel its paramount to avoid future confusions about this.

The answer marked as solution on the thread gives a good reason why this should be so.

julia> Foo.<


ERROR: syntax: incomplete: premature end of input

help?> Foo.<
search:

Couldn't find Foo.<
Perhaps you meant Foo, Bool or floor
  No documentation found.

  Binding Foo.< does not exist.

Having Main.< lead to a ERROR: syntax: incomplete: premature end of input in the help mode too, just like it does in the normal REPL mode, would be less misleading than saying Binding Main.< does not exist.

udohjeremiah avatar Sep 16 '22 21:09 udohjeremiah