Skip to content

Possible to get better error message on syntax errors? #421

@KristofferC

Description

@KristofferC

This is what I get from Revise on a syntax error:

┌ Error: Failed to revise /home/kc/JuliaPkgs/SIMD.jl/src/simdvec.jl
│   exception =
│    LoadError: "missing comma or } in argument list"
│    Stacktrace:
│     [1] parse_source!(::OrderedCollections.OrderedDict{Module,OrderedCollections.OrderedDict{Revise.RelocatableExpr,Union{Nothing, Array{Any,1}}}}, ::String, ::String, ::Module) at /home/kc/.julia/packages/Revise/S7mrl/src/parsing.jl:45
│    in expression starting at /home/kc/JuliaPkgs/SIMD.jl/src/simdvec.jl:3

Restarting Julia and trying to load the package gives:

ERROR: LoadError: LoadError: syntax: missing comma or } in argument list
Stacktrace:
 [1] top-level scope at /home/kc/JuliaPkgs/SIMD.jl/src/simdvec.jl:256
 [2] include(::Module, ::String) at ./Base.jl:377
 [3] include(::String) at /home/kc/JuliaPkgs/SIMD.jl/src/SIMD.jl:1
 [4] top-level scope at /home/kc/JuliaPkgs/SIMD.jl/src/SIMD.jl:20
 [5] include(::Module, ::String) at ./Base.jl:377
 [6] top-level scope at none:2
 [7] eval at ./boot.jl:331 [inlined]
 [8] eval(::Expr) at ./client.jl:449
 [9] top-level scope at ./none:3
in expression starting at /home/kc/JuliaPkgs/SIMD.jl/src/simdvec.jl:256
in expression starting at /home/kc/JuliaPkgs/SIMD.jl/src/SIMD.jl:20

What I am interested in is of course /home/kc/JuliaPkgs/SIMD.jl/src/simdvec.jl:256. It would be nice if that information could somehow be made available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions