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

[Errors] Line number messed up at start of block #1610

Open
github-actions bot opened this issue Apr 23, 2024 · 0 comments
Open

[Errors] Line number messed up at start of block #1610

github-actions bot opened this issue Apr 23, 2024 · 0 comments
Labels
ast Issues related to the intermediate AST representation bug Something isn't working error handling Issues related to Error handling evaluation todo Automatically generated issues from TODOs in the code

Comments

@github-actions
Copy link

[Errors] Line number messed up at start of block
let's say we do

do [
print 3/0

]

The line of the error will be messed up. This wouldn't happen if it was
the second command within that block. (And I have no idea / don't remember)
why this could be happening... (Nor is it necessarily related to the evaluator)

# TODO(Errors) Line number messed up at start of block

        it.addByte(op)

    # TODO(Errors) Line number messed up at start of block
    #  let's say we do 
    #  ```
    #  do [
    #      print 3/0
    #
    #  ]
    #  ```
    #  The line of the error will be messed up. This wouldn't happen if it was
    #  the second command within that block. (And I have no idea / don't remember)
    #  why this could be happening... (Nor is it necessarily related to the evaluator)
    #  labels: error handling, bug, evaluation, ast
    template addEol(n: untyped): untyped =
        it.addOpWithNumber(opEol, n, hasShortcut=false)

ndex 5336e6d17f..4b9661fc97 100644
++ b/version/build

2f03119448b89e8723b16aafce6e2dcc9052212a

@github-actions github-actions bot added ast Issues related to the intermediate AST representation bug Something isn't working error handling Issues related to Error handling todo Automatically generated issues from TODOs in the code evaluation labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ast Issues related to the intermediate AST representation bug Something isn't working error handling Issues related to Error handling evaluation todo Automatically generated issues from TODOs in the code
Projects
None yet
Development

No branches or pull requests

0 participants