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

:incomplete expression generation #69

Closed
aviatesk opened this issue Aug 23, 2022 · 1 comment
Closed

:incomplete expression generation #69

aviatesk opened this issue Aug 23, 2022 · 1 comment

Comments

@aviatesk
Copy link
Sponsor Member

# on https://github.com/JuliaLang/julia/pull/46372
julia> Base.parse_input_line("code_typed((Float64,)) do x")
:($(Expr(:error, JuliaSyntax.ParseError(JuliaSyntax.SourceFile("code_typed((Float64,)) do x", "none", [1, 28]), JuliaSyntax.Diagnostic[JuliaSyntax.Diagnostic(28, 27, :error, "premature end of input"), JuliaSyntax.Diagnostic(28, 27, :error, "Expected `end`")]))))

# on master
julia> Base.parse_input_line("code_typed((Float64,)) do x")
:($(Expr(:incomplete, "incomplete: premature end of input")))

This difference disallows REPL to accept multi-line inputs on JuliaLang/julia#46372, e.g.

julia> code_typed((Float64,)) do x<<<RET>>>
ERROR: ParseError:
Error: premature end of input
@ REPL[16]:2:1
code_typed((Float64,)) do x
Error: Expected `end`
@ REPL[16]:2:1
code_typed((Float64,)) do x
@pfitzseb
Copy link
Member

Dup of #42.

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

2 participants