google / google/CodeCity

Function editor reports wrong position for syntax errors

Open
#256 0 comments 0 reactions 1 assignee Claimed by @NeilFraser View on GitHub
bug core
Dominant language
JavaScript
Stars
198
Forks
38
PR merge metrics
No merged PRs in 30d

Description

When saving a function fails due to a syntax error, the line number of the error as reported in the butter bar is wrong. It appears to be offset by 5 lines, presumably due to the magic header lines:

```JS
// @copy_properties true
// @set_prop verb = "whatever"
// @set_prop dobj = "any"
// @set_prop prep = "none"
// @set_prop iobj = "none"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.