Skip to content

[ServerErrors][TypeScript] 5.5.0-dev.20240526 #58666

Closed
@typescript-bot

Description

@typescript-bot

The following errors were reported by 5.5.0-dev.20240526
Pipeline that generated this bug
Logs for the pipeline run
File that generated the pipeline

This run considered 300 popular TS repos from GH (after skipping the top 0).

Successfully analyzed 281 of 300 visited repos
Outcome Count
Detected interesting changes 21
Detected no interesting changes 260
Git clone failed 3
Language service disabled in new TS 1
Unknown failure 15

Investigation Status

Error Repos Outcome
Error: start < 0 2 Duplicate of #58600. Fixed in #58668
Error: Debug Failure. False expression: Token end is child end discord.js The crash is generated due to completions not being able to format a node. The node happens to be synthetized node created with text ... 1 more .... I believe formatting is not working because is invalid syntax.

The node gets created here: checker.ts#L7139.

Is there a way that we can get another syntax for truncating? or somehow ignore this special scenario?

This is the full line that is trying to get formatted:

public member: CacheTypeReducer<Cached, GuildMember, APIInteractionGuildMember, GuildMember | APIInteractionGuildMember, GuildMember | ... 1 more ... | null>;
Fixed in #58719
Error: Debug Failure. False expression: Token end is child end facebook/lexical This is the minimal repro I could manage to get.
foo.ts

import { Bar } from "./bar";

export class Foo extends Bar {

}

bar.ts

import type {Baz} from './baz';

export class Bar {
['constructor']!: Baz<typeof Bar>;
}

baz.ts

export type Baz<Cls extends qux> =
qux<InstanceType> & {[k in keyof Cls]: Cls[k]};

type qux = new (...args: any[]) => T;

Metadata

Metadata

Assignees

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