-
Pyright crashes (runs out of memory) after ~30 seconds on this file: https://pastebin.com/qfmff5ep What does this code have in particular that leads to that? ConfigurationPython 3.12.4, Pyright 1.1.374 "python.analysis.autoImportCompletions": true,
"python.analysis.diagnosticSeverityOverrides": {
"reportAssertAlwaysTrue": "warning",
"reportConstantRedefinition": "error",
"reportGeneralTypeIssues": "error",
"reportImportCycles": "error",
"reportInconsistentConstructor": "error",
"reportInvalidStringEscapeSequence": "error",
"reportMatchNotExhaustive": "warning",
"reportMissingImports": "error",
"reportMissingParameterType": "error",
"reportOptionalCall": "error",
"reportOptionalContextManager": "error",
"reportOptionalIterable": "error",
"reportOptionalMemberAccess": "error",
"reportOptionalSubscript": "error",
"reportPrivateUsage": "error",
"reportSelfClsParameterName": "warning",
"reportUnboundVariable": "error",
"reportUndefinedVariable": "error",
"reportUninitializedInstanceVariable": "error",
"reportUnknownArgumentType": "error",
"reportUnknownMemberType": "error",
"reportUnknownParameterType": "error",
"reportUnknownVariableType": "error",
"reportUnnecessaryComparison": "information",
"reportUnnecessaryContains": "information",
"reportUnnecessaryTypeIgnoreComment": "information",
"reportUntypedBaseClass": "error",
"reportUntypedClassDecorator": "error",
"reportUntypedFunctionDecorator": "error",
"reportUntypedNamedTuple": "error",
"reportUnusedCallResult": "information",
"reportUnusedFunction": "warning",
"reportUnusedClass": "warning",
"reportUnusedExpression": "error",
"reportUnusedImport": "warning",
"reportUnusedVariable": "error",
},
"python.analysis.exclude": [
".venv/**"
],
"python.analysis.typeCheckingMode": "strict",
"python.analysis.autoFormatStrings": true, Crash logRelated discussions/issues#4941: does not apply: my configuration has been excluding my virtual environment from analysis for a while |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Note: Tried to run |
Beta Was this translation helpful? Give feedback.
Thanks for the additional details. I was able to repro the problem on my system, and I have a fix that will be included in the next release of pyright.