Skip to content

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

Description

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
OutcomeCount
Detected interesting changes21
Detected no interesting changes260
Git clone failed3
Language service disabled in new TS1
Unknown failure15

Investigation Status

ErrorReposOutcome
Error: start < 02Duplicate of #58600. Fixed in #58668
Error: Debug Failure. False expression: Token end is child enddiscord.jsThe 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 endfacebook/lexicalThis 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

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