Skip to content

lute check emits an end column of 100 for all multi-line errors #1317

Description

@nnullcolumn

given this code:

--stylua: ignore
type Repro = rawget<
>
type Repro = rawget<
    --
    --
>
local a: true = {
	--
}

lute check emits:

repro.luau:2:14-100: (W0) TypeError: Generic type 'rawget<T, U>' expects 2 type arguments, but none are specified
repro.luau:4:15-100: (W0) TypeError: Generic type 'rawget<T, U>' expects 2 type arguments, but none are specified
repro.luau:8:17-100: (W0) TypeError: Expected this to be 'true', but got '{  }'

but when run on this code:

type Repro = rawget<>
type Repro2 = rawget<>
local a: true = {}

it correctly reports ending columns of 21, 22, and 18:

repro.luau:1:14-21: (W0) TypeError: Generic type 'rawget<T, U>' expects 2 type arguments, but none are specified
repro.luau:2:15-22: (W0) TypeError: Generic type 'rawget<T, U>' expects 2 type arguments, but none are specified
repro.luau:3:17-18: (W0) TypeError: Expected this to be 'true', but got '{  }'

unrelated, i would expect a format of :beginline:begincolumn-endline:endcolumn instead of :beginline:begincolumn-endcolumn tbh

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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