-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Description
After installing latest rslint today 0.1.13 and running rslint --init I get the following error running rslint:
panic: Token cache mismatch: parent. Expected parent of kind KindAsExpression, got KindArrayLiteralExpression
goroutine 32612 [running]:
github.com/microsoft/typescript-go/internal/ast.(*SourceFile).GetOrCreateToken(0x140022098c8, 0x16, 0x1ce, 0x1cf, 0x140029a6000)
/home/runner/_work/rslint/rslint/typescript-go/internal/ast/ast.go:10552 +0x29c
github.com/web-infra-dev/rslint/internal/utils.GetChildren(0x140029a6000, 0x140022098c8)
/home/runner/_work/rslint/rslint/internal/utils/ts_api_utils.go:176 +0x2f0
github.com/web-infra-dev/rslint/internal/utils.ForEachToken(0x140139323f8?, 0x14029d91ce0, 0x140022098c8)
/home/runner/_work/rslint/rslint/internal/utils/ts_api_utils.go:256 +0x9c
github.com/web-infra-dev/rslint/internal/utils.ForEachComment(0x140022098c8, 0x14008a6d950, 0x140022098c8)
/home/runner/_work/rslint/rslint/internal/utils/ts_api_utils.go:288 +0x6c
github.com/web-infra-dev/rslint/internal/linter.RunLinterInProgram(0x14000582a80, {0x0, 0x0, 0x1400064db30?}, {0x1014159a0, 0x2, 0x140009c3798?}, 0x14020190760, 0x1401fbbf7b0)
/home/runner/_work/rslint/rslint/internal/linter/linter.go:64 +0x1ec
github.com/web-infra-dev/rslint/internal/linter.RunLinter.func1()
/home/runner/_work/rslint/rslint/internal/linter/linter.go:249 +0x34
github.com/microsoft/typescript-go/internal/core.(*parallelWorkGroup).Queue.func1()
/home/runner/_work/rslint/rslint/typescript-go/internal/core/workgroup.go:39 +0x50
created by github.com/microsoft/typescript-go/internal/core.(*parallelWorkGroup).Queue in goroutine 1
/home/runner/_work/rslint/rslint/typescript-go/internal/core/workgroup.go:37 +0x7c
Installed at 12:00 CEST 18.09.2025.
Running on Apple Silicon Mac.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels