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

PTVS engine download logic seems off #1643

Closed
patrys opened this issue May 9, 2018 · 3 comments
Closed

PTVS engine download logic seems off #1643

patrys opened this issue May 9, 2018 · 3 comments
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@patrys
Copy link

patrys commented May 9, 2018

Disclaimer: I do realize that this is considered an unsupported experimental feature.

The current nightly build does not seem to include #1613 but at the first glance it does not seem to change the logic.

It seems that if my machine already has a .NET SDK the extension will never download the analysis engine:

https://github.com/Microsoft/vscode-python/blob/f18a5ee52999d0cd0d3dec61f5534c6246e85d87/src/client/activation/analysis.ts#L120-L124

The error is:

No executable found matching command "dotnet-/Users/patrys/.vscode-insiders/extensions/ms-python.python-2018.5.0-alpha/analysis/Microsoft.PythonTools.VsCode.dll"

Which is true as the engine was never downloaded.

I'm not sure how to fix it though, is the nuget package meant to be usable if the .NET runtime is not installed? If not, shouldn't the condition be reversed?

By the way, it was hard to find the actual exception as it seems each linter run clears the contents of the "Python" panel in the "Output" tab and the exception is not logged anywhere else.

@MikhailArkhipov
Copy link

Yes, it is usable without .NET. There are two types of engine binaries

  1. MSIL, depend on .NET Runtime preinstalled.
  2. Full package, platform-specific, does not require .NET runtime.

The plan is that (1) is packaged with the extension since size is relatively small ~4MB.

The logic is as follows.

  1. Try to determine if .NET-independent components are installed. See if (!await this.fs.fileExists(mscorlib)) {. mscorlib is packaged with the .NET-independent install.

  2. If mscorlib is missing, try to launch pre-packaged MSIL components - perhaps .NET runtime is preinstalled (say, someone also works with C# extension). createSimpleLanguageClient

Here you see the error since you probably have .NET runtime BUT pre-packaged MSIL bits are missing (they are not currently included in the public insider builds). You can build them yourself - see contributing guildelines. Or contact me [mikhaila] AT microsoft DOT com

  1. If launch fails, extension tries and downloads the complete package, which is ~26MB.

@MikhailArkhipov MikhailArkhipov self-assigned this May 9, 2018
@brettcannon brettcannon added area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. upstream-analysis engine bug Issue identified by VS Code Team member as probable bug labels May 10, 2018
@Kronuz
Copy link

Kronuz commented Jun 3, 2018

I got it compiled and working using this:

git clone --depth 1 https://github.com/microsoft/ptvs
cd ptvs/Python/Product/VsCode/AnalysisVsc
dotnet build
../../../../BuildOutput/VsCode/raw/
mkdir "/Users/$USER/.vscode/extensions/ms-python.python-2018.4.0/analysis"
cp ../../../../BuildOutput/VsCode/raw/*.{dll,pdb,json} "/Users/$USER/.vscode/extensions/ms-python.python-2018.4.0/analysis"

but then after a few seconds it seemed doing something, I got:

(Click to expand)
Assertion Failed
Unhandled type() value: Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModuleMember
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetTypeFromValue(IMember value) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 430
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromIndex(IndexExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 286
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisFunctionWalker.Walk(AssignmentStatement node) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisFunctionWalker.cs:line 113
   at Microsoft.PythonTools.Parsing.Ast.AssignmentStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/AssignmentStatement.cs:line 41
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.IfStatementTest.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/IfStatementTest.cs:line 50
   at Microsoft.PythonTools.Parsing.Ast.IfStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/IfStatement.cs:line 48
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.IfStatementTest.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/IfStatementTest.cs:line 50
   at Microsoft.PythonTools.Parsing.Ast.IfStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/IfStatement.cs:line 48
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.FunctionDefinition.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/FunctionDefinition.cs:line 247
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisFunctionWalker.Walk() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisFunctionWalker.cs:line 91
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisWalker.Complete() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisWalker.cs:line 85
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonModule..ctor(String moduleName, IPythonInterpreter interpreter, PythonAst ast, String filePath) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 123
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromStream(IPythonInterpreter interpreter, Stream sourceFile, String fileName, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 71
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromFile(IPythonInterpreter interpreter, String sourceFile, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 45
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 671
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 585
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.TryImportModule(String name, IPythonModule& module, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 507
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModule(String name) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreter.cs:line 221
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.GetModule() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModule.cs:line 57
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.Imported(IModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModule.cs:line 82
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModuleMember.Get() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModuleMember.cs:line 65
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.LookupNameInScopes(String name, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 564
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromName(NameExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 202
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromCallable(CallExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 330
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisFunctionWalker.Walk(AssignmentStatement node) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisFunctionWalker.cs:line 113
   at Microsoft.PythonTools.Parsing.Ast.AssignmentStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/AssignmentStatement.cs:line 41
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.IfStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/IfStatement.cs:line 52
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.IfStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/IfStatement.cs:line 52
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.FunctionDefinition.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/FunctionDefinition.cs:line 247
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisFunctionWalker.Walk() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisFunctionWalker.cs:line 91
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisWalker.Complete() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisWalker.cs:line 85
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonModule..ctor(String moduleName, IPythonInterpreter interpreter, PythonAst ast, String filePath) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 123
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromStream(IPythonInterpreter interpreter, Stream sourceFile, String fileName, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 71
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromFile(IPythonInterpreter interpreter, String sourceFile, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 45
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 671
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 585
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.TryImportModule(String name, IPythonModule& module, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 507
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModule(String name) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreter.cs:line 221
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.GetModule() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModule.cs:line 57
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.Imported(IModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModule.cs:line 82
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModuleMember.Get() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModuleMember.cs:line 65
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.LookupNameInScopes(String name, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 564
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromName(NameExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 202
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromCallable(CallExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 330
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisFunctionWalker.Walk(AssignmentStatement node) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisFunctionWalker.cs:line 113
   at Microsoft.PythonTools.Parsing.Ast.AssignmentStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/AssignmentStatement.cs:line 41
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.FunctionDefinition.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/FunctionDefinition.cs:line 247
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisFunctionWalker.Walk() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisFunctionWalker.cs:line 91
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisWalker.Complete() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisWalker.cs:line 85
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonModule..ctor(String moduleName, IPythonInterpreter interpreter, PythonAst ast, String filePath) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 123
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromStream(IPythonInterpreter interpreter, Stream sourceFile, String fileName, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 71
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromFile(IPythonInterpreter interpreter, String sourceFile, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 45
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 671
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 585
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.TryImportModule(String name, IPythonModule& module, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 507
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModule(String name) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreter.cs:line 221
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.GetModule() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModule.cs:line 57
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.Imported(IModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModule.cs:line 82
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisWalker.Walk(FromImportStatement node) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisWalker.cs:line 187
   at Microsoft.PythonTools.Parsing.Ast.FromImportStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/FromImportStatement.cs:line 61
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.PythonAst.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/PythonAst.cs:line 92
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonModule..ctor(String moduleName, IPythonInterpreter interpreter, PythonAst ast, String filePath) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 122
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromStream(IPythonInterpreter interpreter, Stream sourceFile, String fileName, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 71
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromFile(IPythonInterpreter interpreter, String sourceFile, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 45
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 671
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 585
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.TryImportModule(String name, IPythonModule& module, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 507
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModule(String name) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreter.cs:line 221
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModuleMember.Get() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModuleMember.cs:line 66
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.LookupNameInScopes(String name, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 564
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromName(NameExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 202
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromMember(MemberExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 219
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromCallable(CallExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 330
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisFunctionWalker.Walk(AssignmentStatement node) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisFunctionWalker.cs:line 113
   at Microsoft.PythonTools.Parsing.Ast.AssignmentStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/AssignmentStatement.cs:line 41
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.FunctionDefinition.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/FunctionDefinition.cs:line 247
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisFunctionWalker.Walk() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisFunctionWalker.cs:line 91
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisWalker.Complete() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisWalker.cs:line 85
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonModule..ctor(String moduleName, IPythonInterpreter interpreter, PythonAst ast, String filePath) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 123
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromStream(IPythonInterpreter interpreter, Stream sourceFile, String fileName, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 71
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromFile(IPythonInterpreter interpreter, String sourceFile, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 45
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 671
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 585
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.TryImportModule(String name, IPythonModule& module, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 507
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModule(String name) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreter.cs:line 221
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.GetModule() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModule.cs:line 57
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.Imported(IModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModule.cs:line 82
   at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModuleMember.Get() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstNestedPythonModuleMember.cs:line 65
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.LookupNameInScopes(String name, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 564
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromName(NameExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 202
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromMember(MemberExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 219
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromMember(MemberExpression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 219
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr, LookupOptions options) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 181
   at Microsoft.PythonTools.Interpreter.Ast.NameLookupContext.GetValueFromExpression(Expression expr) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/NameLookupContext.cs:line 170
   at Microsoft.PythonTools.Interpreter.Ast.AstAnalysisWalker.Walk(AssignmentStatement node) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstAnalysisWalker.cs:line 109
   at Microsoft.PythonTools.Parsing.Ast.AssignmentStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/AssignmentStatement.cs:line 41
   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/SuiteStatement.cs:line 37
   at Microsoft.PythonTools.Parsing.Ast.PythonAst.Walk(PythonWalker walker) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Parsing/Ast/PythonAst.cs:line 92
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonModule..ctor(String moduleName, IPythonInterpreter interpreter, PythonAst ast, String filePath) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 122
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromStream(IPythonInterpreter interpreter, Stream sourceFile, String fileName, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 71
   at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromFile(IPythonInterpreter interpreter, String sourceFile, PythonLanguageVersion langVersion, String moduleFullName) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs:line 45
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 671
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsyncWorker(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 585
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.ImportFromSearchPathsAsync(String name, TryImportModuleContext context)
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory.TryImportModule(String name, IPythonModule& module, TryImportModuleContext context) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreterFactory.cs:line 507
   at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModule(String name) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/Interpreter/Ast/AstPythonInterpreter.cs:line 221
   at Microsoft.PythonTools.Analysis.ModuleTable.TryImport(String name, ModuleReference& res) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/ModuleTable.cs:line 127
   at Microsoft.PythonTools.Analysis.PythonAnalyzer.GetEntriesThatImportModule(String moduleName, Boolean includeUnresolved) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/PythonAnalyzer.cs:line 286
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.<AddFileAsync>b__63_1(String a) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 468
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToArray()
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.AddFileAsync(Uri documentUri, Uri fromSearchPath, IAnalysisCookie cookie) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 468
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFileAsync(Uri documentUri) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 374
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFromDirectoryAsync(String rootDir) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 654
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFromDirectoryAsync(String rootDir)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFromDirectoryAsync(String rootDir) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 670
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFromDirectoryAsync(String rootDir)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFromDirectoryAsync(String rootDir) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 670
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFromDirectoryAsync(String rootDir)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFromDirectoryAsync(String rootDir) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 670
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.LoadFromDirectoryAsync(String rootDir)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.OnAnalyzerCreated(InitializeParams params) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 181
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.CreateAnalyzerAndNotify(InitializeParams params) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 149
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)
   at Microsoft.PythonTools.Analysis.LanguageServer.Server.CreateAnalyzer(Interpreter interpreter) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/LanguageServer/Server.cs:line 339
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)
   at Microsoft.PythonTools.Analysis.PythonAnalyzer.CreateAsync(IPythonInterpreterFactory factory, IPythonInterpreter interpreter) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/PythonAnalyzer.cs:line 86
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult()
   at Microsoft.PythonTools.Analysis.PythonAnalyzer.ReloadModulesAsync() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/PythonAnalyzer.cs:line 192
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult()
   at Microsoft.PythonTools.Analysis.PythonAnalyzer.LoadKnownTypesAsync() in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/PythonAnalyzer.cs:line 160
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Threading.Tasks.Task`1.TrySetResult(TResult result)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetExistingTaskResult(TResult result)
   at Microsoft.PythonTools.Analysis.ModuleTable.TryImportAsync(String name) in /Users/kronuz/Development/tmp/ptvs/Python/Product/Analysis/ModuleTable.cs:line 111
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
   at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(IAsyncStateMachineBox box, Boolean allowInlining)
   at System.Threading.Tasks.Task.RunContinuations(Object continuationObject)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Error - 12:03:42 PM] Connection to server got closed. Server will not be restarted.
[Error - 12:03:42 PM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-jsonrpc/lib/main.js:825:25)
	at Object.dispose (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-languageclient/lib/client.js:57:35)
	at LanguageClient.handleConnectionClosed (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-languageclient/lib/client.js:1864:38)
	at LanguageClient.handleConnectionClosed (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-languageclient/lib/main.js:106:15)
	at closeHandler (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-languageclient/lib/client.js:1852:18)
	at CallbackList.invoke (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-jsonrpc/lib/events.js:71:39)
	at Emitter.fire (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-jsonrpc/lib/events.js:135:36)
	at closeHandler (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-jsonrpc/lib/main.js:221:26)
	at CallbackList.invoke (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-jsonrpc/lib/events.js:71:39)
	at Emitter.fire (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-jsonrpc/lib/events.js:135:36)
	at StreamMessageWriter.AbstractMessageWriter.fireClose (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-jsonrpc/lib/messageWriter.js:57:27)
	at Socket.<anonymous> (/Users/kronuz/.vscode/extensions/ms-python.python-2018.4.0/node_modules/vscode-jsonrpc/lib/messageWriter.js:79:63)
	at emitOne (events.js:96:13)
	at Socket.emit (events.js:191:7)
	at Pipe._handle.close [as _onclose] (net.js:510:12)

Edit: Apparently, compiling as dotnet build -c Release "fixed" that assertion failure.

@MikhailArkhipov
Copy link

Yes, we switched to Release builds. I am going to close this one, feel free to open new issues as needed.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants