Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

panic: runtime error: slice bounds out of range #1359

Open
Labels
CrashDomain: EmitRelated to emit, AST printing, Program emit funcs
@IanMitchell

Description

@IanMitchell

Reportedly similar to#1314 but slightly different (I was recommended to create a new issue). This is running in my company's monorepo so I'm unable to share a repo, but I'm working with Jake to get more actionable information / repo access

panic: runtime error: slice bounds out of range [3022:579]goroutine 110717 [running]:github.com/microsoft/typescript-go/internal/scanner.SkipTriviaEx({0xc00f67af00, 0x243}, 0x241?, 0x0?)        github.com/microsoft/typescript-go/internal/scanner/scanner.go:2058 +0x4a8github.com/microsoft/typescript-go/internal/scanner.SkipTrivia(...)        github.com/microsoft/typescript-go/internal/scanner/scanner.go:2043github.com/microsoft/typescript-go/internal/printer.(*Printer).emitCommentsBeforeToken(0xc2e37db860, 0xc150?, 0xbce, 0xc2e37ee540, 0x0)        github.com/microsoft/typescript-go/internal/printer/printer.go:5036 +0x54github.com/microsoft/typescript-go/internal/printer.(*Printer).enterToken(0xc2e37db860, 0x1b, 0x0?, 0xc2e37ee540, 0x0)        github.com/microsoft/typescript-go/internal/printer/printer.go:5764 +0x26github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTokenEx(0xc2e37db860, 0x1b, 0xc2e37ee540?, 0x3, 0xc2e37ee540, 0x407de2?)        github.com/microsoft/typescript-go/internal/printer/printer.go:909 +0x2dgithub.com/microsoft/typescript-go/internal/printer.(*Printer).emitToken(...)        github.com/microsoft/typescript-go/internal/printer/printer.go:905github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListItems(0xc2e37db860, 0xc1f790, 0xc2e37df800, {0xc2e3229f40, 0x2, 0xc2e37df800?}, 0x80350, 0x1, {0xbad, 0xbcf})        github.com/microsoft/typescript-go/internal/printer/printer.go:4705 +0x5a8github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListRange(0xc2e37db860, 0xc1f790, 0xc2e37df800, 0xc2e37c8da8, 0x80350, 0xd0dfdc?, 0x1?)        github.com/microsoft/typescript-go/internal/printer/printer.go:4487 +0x395github.com/microsoft/typescript-go/internal/printer.(*Printer).emitList(0xc2e37db860, 0xc1f790, 0xc2e37df800, 0xc2e37c8da8, 0x80350)        github.com/microsoft/typescript-go/internal/printer/printer.go:4432 +0x90github.com/microsoft/typescript-go/internal/printer.(*Printer).emitObjectBindingPattern(0xc2e37db860, 0xc2e37df800)        github.com/microsoft/typescript-go/internal/printer/printer.go:2314 +0x74github.com/microsoft/typescript-go/internal/printer.(*Printer).emitBindingName(0xc2e37db860?, 0xc2e26c3730?)        github.com/microsoft/typescript-go/internal/printer/printer.go:1194 +0x72github.com/microsoft/typescript-go/internal/printer.(*Printer).emitParameterName(...)        github.com/microsoft/typescript-go/internal/printer/printer.go:1420github.com/microsoft/typescript-go/internal/printer.(*Printer).emitParameter(0xc2e37db860, 0xc2e26c3730)        github.com/microsoft/typescript-go/internal/printer/printer.go:1428 +0xacgithub.com/microsoft/typescript-go/internal/printer.(*Printer).emitParameterNode(0xc2e37db860?, 0xc2e37fd2c8?)        github.com/microsoft/typescript-go/internal/printer/printer.go:1440 +0x27github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListItems(0xc2e37db860, 0xc1f808, 0xc2e26c38f0, {0xc2e2d21e90, 0x1, 0xc2e37db860?}, 0xa10, 0x0, {0xffffffff, 0xffffffff})        github.com/microsoft/typescript-go/internal/printer/printer.go:4690 +0x4b9github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListRange(0xc2e37db860, 0xc1f808, 0xc2e26c38f0, 0xc2e37c8ec8, 0xa10, 0xc2e5704ea0?, 0xc2e37fd3d0?)        github.com/microsoft/typescript-go/internal/printer/printer.go:4487 +0x395github.com/microsoft/typescript-go/internal/printer.(*Printer).emitList(0xc2e37db860, 0xc1f808, 0xc2e26c38f0, 0xc2e37c8ec8, 0xa10)        github.com/microsoft/typescript-go/internal/printer/printer.go:4432 +0x90github.com/microsoft/typescript-go/internal/printer.(*Printer).emitParameters(0xc2e37db860?, 0xc2e26c38f0?, 0xc2e37c8ec8?)        github.com/microsoft/typescript-go/internal/printer/printer.go:1489 +0x54github.com/microsoft/typescript-go/internal/printer.(*Printer).emitFunctionType(0xc2e37db860, 0xc2e26c38f0)        github.com/microsoft/typescript-go/internal/printer/printer.go:1874 +0x178github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeNode(0xc2e37db860, 0xc2e26c38f0, 0xe3207428?)        github.com/microsoft/typescript-go/internal/printer/printer.go:2237 +0x21dgithub.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeNodePreservingExtends(...)        github.com/microsoft/typescript-go/internal/printer/printer.go:2199github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeNodeOutsideExtends(...)        github.com/microsoft/typescript-go/internal/printer/printer.go:2193github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeAnnotation(0xc2e37db860, 0xc2e26c38f0)        github.com/microsoft/typescript-go/internal/printer/printer.go:1473 +0x8bgithub.com/microsoft/typescript-go/internal/printer.(*Printer).emitPropertySignature(0xc2e37db860, 0xc2e3207428)        github.com/microsoft/typescript-go/internal/printer/printer.go:1592 +0x85github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeElement(0xc2da8345b0?, 0xc2e37fd5d0?)        github.com/microsoft/typescript-go/internal/printer/printer.go:1756 +0x56github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListItems(0xc2e37db860, 0xc1f838, 0xc2e32716b8, {0xc2e37e9800, 0xa, 0xc2e378b980?}, 0x88081, 0x0, {0xffffffff, 0xffffffff})        github.com/microsoft/typescript-go/internal/printer/printer.go:4690 +0x4b9github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListRange(0xc2e37db860, 0xc1f838, 0xc2e32716b8, 0xc2e37824e8, 0x88081, 0xd0dfdc?, 0xc2e32716b8?)        github.com/microsoft/typescript-go/internal/printer/printer.go:4487 +0x395github.com/microsoft/typescript-go/internal/printer.(*Printer).emitList(0xc2e37db860, 0xc1f838, 0xc2e32716b8, 0xc2e37824e8, 0x88081)        github.com/microsoft/typescript-go/internal/printer/printer.go:4432 +0x90github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeLiteral(0xc2e37db860, 0xc2e32716b8)        github.com/microsoft/typescript-go/internal/printer/printer.go:1915 +0x1aegithub.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeNode(0xc2e37db860, 0xc2e32716b8, 0xe37e5a00?)        github.com/microsoft/typescript-go/internal/printer/printer.go:2243 +0x2c9github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeNodePreservingExtends(...)        github.com/microsoft/typescript-go/internal/printer/printer.go:2199github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeNodeOutsideExtends(...)        github.com/microsoft/typescript-go/internal/printer/printer.go:2193github.com/microsoft/typescript-go/internal/printer.(*Printer).emitTypeAnnotation(0xc2e37db860, 0xc2e32716b8)        github.com/microsoft/typescript-go/internal/printer/printer.go:1473 +0x8bgithub.com/microsoft/typescript-go/internal/printer.(*Printer).emitVariableDeclaration(0xc2e37db860, 0xc2e37e5a00)        github.com/microsoft/typescript-go/internal/printer/printer.go:3447 +0x6dgithub.com/microsoft/typescript-go/internal/printer.(*Printer).emitVariableDeclarationNode(0xc2e37db860?, 0xc2e37fd898?)        github.com/microsoft/typescript-go/internal/printer/printer.go:3454 +0x27github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListItems(0xc2e37db860, 0xc1f850, 0xc2e37e9880, {0xc2e37f4588, 0x1, 0xc1f7365a00?}, 0x210, 0x0, {0x138, 0x241})        github.com/microsoft/typescript-go/internal/printer/printer.go:4690 +0x4b9github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListRange(0xc2e37db860, 0xc1f850, 0xc2e37e9880, 0xc2e3782508, 0x210, 0xd0e038?, 0x1?)        github.com/microsoft/typescript-go/internal/printer/printer.go:4487 +0x395github.com/microsoft/typescript-go/internal/printer.(*Printer).emitList(0xc2e37db860, 0xc1f850, 0xc2e37e9880, 0xc2e3782508, 0x210)        github.com/microsoft/typescript-go/internal/printer/printer.go:4432 +0x90github.com/microsoft/typescript-go/internal/printer.(*Printer).emitVariableDeclarationList(0xc2e37db860, 0xc2e37e9880)        github.com/microsoft/typescript-go/internal/printer/printer.go:3474 +0x1f4github.com/microsoft/typescript-go/internal/printer.(*Printer).emitVariableStatement(0xc2e37db860, 0xc2e32674a0)        github.com/microsoft/typescript-go/internal/printer/printer.go:3159 +0x6cgithub.com/microsoft/typescript-go/internal/printer.(*Printer).emitStatement(0x6eb755?, 0xc2e37fdac8?)        github.com/microsoft/typescript-go/internal/printer/printer.go:3913 +0x98github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListItems(0xc2e37db860, 0xc1f810, 0xc2e37dc2c8, {0xc1d6e5f098, 0x1, 0xc2e37f4588?}, 0x1, 0x0, {0x0, 0x242})        github.com/microsoft/typescript-go/internal/printer/printer.go:4690 +0x4b9github.com/microsoft/typescript-go/internal/printer.(*Printer).emitListRange(0xc2e37db860, 0xc1f810, 0xc2e37dc2c8, 0xc2e3782528, 0x1, 0xc0192c8b08?, 0xc0192c8b08?)        github.com/microsoft/typescript-go/internal/printer/printer.go:4487 +0x395github.com/microsoft/typescript-go/internal/printer.(*Printer).emitSourceFile(0xc2e37db860, 0xc2e37dc2c8)        github.com/microsoft/typescript-go/internal/printer/printer.go:4409 +0x225github.com/microsoft/typescript-go/internal/printer.(*Printer).Write(0xc2e37db860, 0xc2e37dc2c8, 0xc2da82cee0?, {0xd2a130, 0xc2da8345b0}, 0x1?)        github.com/microsoft/typescript-go/internal/printer/printer.go:4939 +0x100cgithub.com/microsoft/typescript-go/internal/compiler.(*emitter).printSourceFile(0xc2daab10e0, {0xc068e7b800, 0xbb}, {0x0, 0x0}, 0xc2e37dc2c8, 0xc2e37db860, 0x0)        github.com/microsoft/typescript-go/internal/compiler/emitter.go:232 +0x289github.com/microsoft/typescript-go/internal/compiler.(*emitter).emitDeclarationFile(0xc2daab10e0, 0xc0192c8b08, {0xc068e7b800, 0xbb}, {0x0, 0x0})        github.com/microsoft/typescript-go/internal/compiler/emitter.go:201 +0x3f2github.com/microsoft/typescript-go/internal/compiler.(*emitter).emit(0xc2daab10e0)        github.com/microsoft/typescript-go/internal/compiler/emitter.go:48 +0x5dgithub.com/microsoft/typescript-go/internal/compiler.(*Program).Emit.func2()        github.com/microsoft/typescript-go/internal/compiler/program.go:725 +0x1a9github.com/microsoft/typescript-go/internal/core.(*parallelWorkGroup).Queue.func1()        github.com/microsoft/typescript-go/internal/core/workgroup.go:39 +0x50created by github.com/microsoft/typescript-go/internal/core.(*parallelWorkGroup).Queue in goroutine 1        github.com/microsoft/typescript-go/internal/core/workgroup.go:37 +0x85ERROR: command finished with error: command (/workspaces/obsidian/packages/server-common) /usr/bin/yarn run typecheck exited (2)command (/workspaces/obsidian/packages/server-common) /usr/bin/yarn run typecheck exited (2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    CrashDomain: EmitRelated to emit, AST printing, Program emit funcs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp