Skip to content

better error for help on invalid characters #30506

@inkydragon

Description

@inkydragon

Set Difference: \setminus, it should equal to setdiff()

error can be reproducted on: v0.64/v0.7/v1.0/v1.02/v1.0.3

help?> ∖
ERROR: LoadError: Invalid @var syntax `invalid character "∖"`.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] splitexpr(::Any) at .\docs\bindings.jl:28
 [3] bindingexpr(::Any) at .\docs\bindings.jl:17
 [4] lookup_doc(::Expr) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\REPL\src\docview.jl:137
 [5] docm(::LineNumberNode, ::Module, ::Any) at .\docs\Docs.jl:501
 [6] @doc(::LineNumberNode, ::Module, ::Expr, ::Vararg{Expr,N} where N) at .\boot.jl:451
in expression starting at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\REPL\src\docview.jl:301

julia> Char('')
'': Unicode U+2216 (category Sm: Symbol, math)

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)error handlingHandling of exceptions by Julia or the userneeds decisionA decision on this change is neededparserLanguage parsing and surface syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions