Skip to content

Line numbers aren't propagating in errors #29

@pdeffebach

Description

@pdeffebach

When using @chain, line numbers are given at the level of the @chain command, not sub-commands. This makes it hard to debug. Consider the following script

using Chain

foo(x, y) = x * y

x = [1, 2]

@chain x begin
    identity
    identity
    identity
    foo([3, 4])
end

The stacktrace says the error occurs starting on line 7. This makes it hard to debug long @chains. We should try to ensure line number propogation within the chain block.

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