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

Bad error message for unterminated interpolation in command literal #516

Open
LilithHafner opened this issue Nov 24, 2024 · 0 comments
Open
Labels
bug Something isn't working error messages Better, more actionable diagnostics

Comments

@LilithHafner
Copy link
Member

julia> `$(`
ERROR: syntax: invalid syntax (incomplete #<julia: Base.Meta.ParseError(msg="ParseError:\n# Error @ REPL[1]:1:2\n(\n#└ ── Expected `)`", detail=Base.JuliaSyntax.ParseError(source=Base.JuliaSyntax.SourceFile(code=Base.SubString{String}(string="\$(", offset=1, ncodeunits=1), byte_offset=1, filename="REPL[1]", first_line=1, line_starts=Array{Int64, 1}(dims=(2,), mem=Memory{Int64}(8, 0xfffee5b4f020)[1, 2, 0, 0, 0, 0, 0, 0])), diagnostics=Array{Base.JuliaSyntax.Diagnostic, 1}(dims=(1,), mem=Memory{Base.JuliaSyntax.Diagnostic}(8, 0xfffee508cb60)[Base.JuliaSyntax.Diagnostic(first_byte=3, last_byte=2, level=:error, message="Expected `)`"), Base.JuliaSyntax.Diagnostic(first_byte=0, last_byte=0, level=#<null>, message=#<null>), Base.JuliaSyntax.Diagnostic(first_byte=0, last_byte=0, level=#<null>, message=#<null>), Base.JuliaSyntax.Diagnostic(first_byte=0, last_byte=0, level=#<null>, message=#<null>), Base.JuliaSyntax.Diagnostic(first_byte=0, last_byte=0, level=#<null>, message=#<null>), Base.JuliaSyntax.Diagnostic(first_byte=0, last_byte=0, level=#<null>, message=#<null>), Base.JuliaSyntax.Diagnostic(first_byte=0, last_byte=0, level=#<null>, message=#<null>), Base.JuliaSyntax.Diagnostic(first_byte=0, last_byte=0, level=#<null>, message=#<null>)]), incomplete_tag=:other))>)
Stacktrace:
 [1] top-level scope
   @ REPL[1]:1

julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (aarch64-linux-gnu)
  CPU: 8 × unknown
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m2)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
@LilithHafner LilithHafner added bug Something isn't working error messages Better, more actionable diagnostics labels Nov 24, 2024
@LilithHafner LilithHafner changed the title Bad error message for ` $( ` Bad error message for unterminated interpolation in command literal Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working error messages Better, more actionable diagnostics
Projects
None yet
Development

No branches or pull requests

1 participant