-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Find all references crash on literal with base constraint contextual type #48963
Copy link
Copy link
Closed
Closed
Copy link
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputDomain: LS: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Relates to go-to-definition, find-all-references, highlighting/occurrences.Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueA PR has been opened for this issueHelp WantedYou can do thisYou can do this
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputDomain: LS: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Relates to go-to-definition, find-all-references, highlighting/occurrences.Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueA PR has been opened for this issueHelp WantedYou can do thisYou can do this
Currently, the crawler/fuzzer has been stuck on TS 20220405 because our single test case crashes on a find-all-references request in dtslint on the string literal
"package.json".https://github.com/microsoft/dtslint/blob/1ccb5736f1e99a81db56df8b59625fd64d8bc061/src/checks.ts#L13
The regression was introduced by #48566, and we would have been able to catch it if we had
noUncheckedIndexedAccess.I'm sure there's a more realistic repro that is actually a problem for users directly, but here's something minimal.
Request find-all-references in the string at
/**/Errors at
TypeScript/src/server/session.ts
Line 359 in 5f9c9a6