Skip to content

False expression: Token end is child end 【I don't know what to call this issue]】 #48139

Closed
@Judu233

Description

@Judu233

Bug Report

 [error] <semantic> TypeScript Server Error (4.6.2)
Debug Failure. False expression: Token end is child end
Error: Debug Failure. False expression: Token end is child end
    at processChildNode (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:144315:38)
    at e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:144255:21
    at visitNode (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29849:24)
    at Object.forEachChild (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:29972:21)
    at processNode (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:144254:20)
    at formatSpanWorker (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:144055:17)
    at e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:144019:140
    at Object.getFormattingScanner (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:142646:23)
    at Object.formatNodeGivenIndentation (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:144019:31)
    at e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:129984:46
    at Object.flatMap (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:508:25)
    at getEntryForMemberCompletion (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:129982:38)
    at createCompletionEntry (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:129802:23)
    at getCompletionEntriesFromSymbols (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:130166:29)
    at completionInfoFromData (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:129620:17)
    at Object.getCompletionsAtPosition (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:129481:36)
    at Object.getCompletionsAtPosition (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:161847:35)
    at IpcIOSession.Session.getCompletions (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:173395:64)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:172237:61)
    at e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:174044:88
    at IpcIOSession.Session.executeWithRequestId (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:174035:28)
    at IpcIOSession.Session.executeCommand (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:174044:33)
    at IpcIOSession.Session.onMessage (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:174070:35)
    at process.<anonymous> (e:\vs code\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:176705:31)
    at process.emit (events.js:315:20)
    at emit (internal/child_process.js:903:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21): Error: <semantic> TypeScript Server Error (4.6.2)

🔎 Search Terms

N/A since I'm not sure how to describe it.
It suddenly appeared at a certain moment. I don't know how to trigger it. I tried to reinstall vscode, but it didn't work

🕗 Version & Regression Information

vscode version:
image
ts version: 4.6.2

⏯ Playground Link

In playground link, it is normal

💻 Code

class A {
    $a(){

    }

    b(){

    }
}

class B extends A{
   //As long as there is input here, an error will be reported, and there is no type prompt
}

🙁 Actual behavior

sp20220306_144311_603

🙂 Expected behavior

It should prompt the $a method and the b method

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions