Skip to content

Script Error line number incorrect #981

@AwooOOoo

Description

@AwooOOoo

Describe the bug
Wrote a script with a syntactic error in it and the reported line number of the bug was incorrect. I assume the script is pre-pended with additional wrapping before being executed. In my case the error was on line 8, but was reported on line 16.

Write a script and it had a bug (extra quotes " in a notifications.info statement), but the reported line number was incorrect.
To Reproduce
Steps to reproduce the behavior:

  1. Write a script with a syntactic error (extra quotes " in a notifications.info statement)
  2. Execute script
  3. See error

Expected behavior
Error numbers to be reported to represent the line number of the script. this might become confusing with large scripts. Also having line numbers on the left hand side of the editor would be useful once these numbers are correct.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Chrome
  • Version: 84.0.4147.125 (Official Build) (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageBugs awaiting developer initial investigationbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions