Skip to content

Odd file locations for syntax errors #6

@uucidl

Description

@uucidl

with the following js program:

y = 1
y += 2
y *= 3

console.log("hello, world")

I find that makepad says can't find variable y at the line containing "hello, world"

If I type


y = 1
y += 2
y *= 3

console.log("hello, world")

The error is reported in the middle of the line containing y *= 3

Both times I would have expected the errors to occur at the first occurence of y

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions