Skip to content
New issue

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

pylance #1072

Closed
fxx188 opened this issue Mar 19, 2021 · 4 comments
Closed

pylance #1072

fxx188 opened this issue Mar 19, 2021 · 4 comments
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@fxx188
Copy link

fxx188 commented Mar 19, 2021

An internal error occurred while type checking file "d:_bp\gameserver\server\monitor\views.py": Error: Debug Failure. False expression.
at getAliasedSymbolTypeForName (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\typeEvaluator.ts:14259:9)
at evaluateTypesForImportAs (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\typeEvaluator.ts:13283:26)
at Object.evaluateTypesForStatement (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\typeEvaluator.ts:14577:21)
at callback (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\typeEvaluatorWithTracker.ts:66:66)
at i.timeOperation (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\common\timing.ts:40:20)
at run (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\typeEvaluatorWithTracker.ts:42:46)
at Object.evaluateTypesForStatement (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\typeEvaluatorWithTracker.ts:66:13)
at C.visitImportAs (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\checker.ts:946:25)
at C.visitNode (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\parseTreeWalker.ts:250:26)
at C.walk (c:\Users\FDD.vscode\extensions\ms-python.vscode-pylance-2021.3.2\dist\pyright-internal\src\analyzer\parseTreeWalker.ts:96:37)

@fxx188
Copy link
Author

fxx188 commented Mar 19, 2021

python script is run ok, but output this error

@erictraut
Copy link
Contributor

Thanks for the bug report.

Is your project checked in to a public github repo perhaps? Having access to the code would help reproduce the problem. If you can't share the code, perhaps you can narrow down the problem and share a self-contained piece of code that exhibits the problem?

@jakebailey jakebailey added the waiting for user response Requires more information from user label Mar 19, 2021
@github-actions github-actions bot removed the triage label Mar 19, 2021
@jakebailey
Copy link
Member

I believe this should be fixed in the next release via microsoft/pyright@706a5a4.

@jakebailey jakebailey added fixed in next version (main) A fix has been implemented and will appear in an upcoming version and removed waiting for user response Requires more information from user labels Apr 20, 2021
@jakebailey
Copy link
Member

This issue has been fixed in version 2021.4.2, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202142-21-april-2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

3 participants