We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This was logged in our crash telemetry for Pylance:
TypeError: Cannot read properties of undefined (reading 'node')at node pyright-internal/src/analyzer/typeEvaluator.ts:15457:28at createSelfType pyright-internal/src/analyzer/typeEvaluator.ts:20597:35 at createSpecializedClassType pyright-internal/src/analyzer/typeEvaluator.ts:7532:35at callback pyright-internal/src/analyzer/typeUtils.ts:765:8at expandedType pyright-internal/src/analyzer/typeEvaluator.ts:4096:16at expandSubtype pyright-internal/src/analyzer/typeEvaluator.ts:4153:12at mapSubtypesExpandTypeVars pyright-internal/src/analyzer/typeEvaluator.ts:7370:21 at getTypeOfIndexWithBaseType pyright-internal/src/analyzer/typeEvaluator.ts:6771:32at node pyright-internal/src/analyzer/typeEvaluator.ts:1124:49at getTypeOfExpression pyright-internal/src/analyzer/typeEvaluator.ts:21106:15at getTypeOfExpressionExpectingType pyright-internal/src/analyzer/typeEvaluator.ts:1893:31at cb pyright-internal/src/common/cancellationUtils.ts:32:15at invalidateTypeCacheIfCanceled pyright-internal/src/analyzer/typeEvaluator.ts:18311:15at getTypeOfFunctionPredecorated pyright-internal/src/analyzer/typeEvaluator.ts:18170:27at callback pyright-internal/src/common/timing.ts:40:19at getTypeOfFunction pyright-internal/src/analyzer/checker.ts:411:51at visitFunction pyright-internal/src/analyzer/parseTreeWalker.ts:451:28at visit pyright-internal/src/analyzer/parseTreeWalker.ts:933:20at visitNode pyright-internal/src/analyzer/parseTreeWalker.ts:915:36at walk pyright-internal/src/analyzer/checker.ts:284:18at walk pyright-internal/src/analyzer/checker.ts:2799:17at _walkStatementsAndReportUnreachable pyright-internal/src/analyzer/checker.ts:293:13at visitSuite pyright-internal/src/analyzer/parseTreeWalker.ts:544:28at visit pyright-internal/src/analyzer/parseTreeWalker.ts:933:20at visitNode pyright-internal/src/analyzer/parseTreeWalker.ts:915:36at walk pyright-internal/src/analyzer/checker.ts:284:18at walk pyright-internal/src/analyzer/checker.ts:318:13at visitClass pyright-internal/src/analyzer/parseTreeWalker.ts:388:28at visit pyright-internal/src/analyzer/parseTreeWalker.ts:933:20
The text was updated successfully, but these errors were encountered:
Fixed a bug that results in a crash under certain circumstances when …
943a954
…`Self` is errantly specialized. This addresses #9552.
No branches or pull requests
This was logged in our crash telemetry for Pylance:
TypeError: Cannot read properties of undefined (reading 'node')
at node pyright-internal/src/analyzer/typeEvaluator.ts:15457:28
at createSelfType pyright-internal/src/analyzer/typeEvaluator.ts:20597:35
at createSpecializedClassType pyright-internal/src/analyzer/typeEvaluator.ts:7532:35
at callback pyright-internal/src/analyzer/typeUtils.ts:765:8
at expandedType pyright-internal/src/analyzer/typeEvaluator.ts:4096:16
at expandSubtype pyright-internal/src/analyzer/typeEvaluator.ts:4153:12
at mapSubtypesExpandTypeVars pyright-internal/src/analyzer/typeEvaluator.ts:7370:21
at getTypeOfIndexWithBaseType pyright-internal/src/analyzer/typeEvaluator.ts:6771:32
at node pyright-internal/src/analyzer/typeEvaluator.ts:1124:49
at getTypeOfExpression pyright-internal/src/analyzer/typeEvaluator.ts:21106:15
at getTypeOfExpressionExpectingType pyright-internal/src/analyzer/typeEvaluator.ts:1893:31
at cb pyright-internal/src/common/cancellationUtils.ts:32:15
at invalidateTypeCacheIfCanceled pyright-internal/src/analyzer/typeEvaluator.ts:18311:15
at getTypeOfFunctionPredecorated pyright-internal/src/analyzer/typeEvaluator.ts:18170:27
at callback pyright-internal/src/common/timing.ts:40:19
at getTypeOfFunction pyright-internal/src/analyzer/checker.ts:411:51
at visitFunction pyright-internal/src/analyzer/parseTreeWalker.ts:451:28
at visit pyright-internal/src/analyzer/parseTreeWalker.ts:933:20
at visitNode pyright-internal/src/analyzer/parseTreeWalker.ts:915:36
at walk pyright-internal/src/analyzer/checker.ts:284:18
at walk pyright-internal/src/analyzer/checker.ts:2799:17
at _walkStatementsAndReportUnreachable pyright-internal/src/analyzer/checker.ts:293:13
at visitSuite pyright-internal/src/analyzer/parseTreeWalker.ts:544:28
at visit pyright-internal/src/analyzer/parseTreeWalker.ts:933:20
at visitNode pyright-internal/src/analyzer/parseTreeWalker.ts:915:36
at walk pyright-internal/src/analyzer/checker.ts:284:18
at walk pyright-internal/src/analyzer/checker.ts:318:13
at visitClass pyright-internal/src/analyzer/parseTreeWalker.ts:388:28
at visit pyright-internal/src/analyzer/parseTreeWalker.ts:933:20
The text was updated successfully, but these errors were encountered: