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

Line numbers aren't propagating in errors #29

Open
pdeffebach opened this issue May 3, 2021 · 3 comments
Open

Line numbers aren't propagating in errors #29

pdeffebach opened this issue May 3, 2021 · 3 comments

Comments

@pdeffebach
Copy link
Contributor

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.

@jkrumbiegel
Copy link
Owner

works for me in vscode:

grafik

Line number in stack trace points to foo(x, y) which is also correct

@pdeffebach
Copy link
Contributor Author

Huh. That's very interesting. I will try to explore this more. You were running from include?

@jkrumbiegel
Copy link
Owner

No alt+enter in vscode

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