This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Exception in IntelliCode extension, could not load System.Security.Cryptography.Csp #1171
Open
Description
After installing the latest python-language-server plugin through VSCode Marketplace, the plugin stops working partially. While pyflakes linting is available, the server fails attending textDocument/definition
, textDocument/completion
and textDocument/hover
requests.
When opening the output log from the server on the VSCode logging console, the following error appears, which seem to be related with some C# package that cannot be loaded.
Exception in IntelliCode extension for Microsoft Python Language Server: System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Cryptography.Csp, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Security.Cryptography.Csp, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.PythonTools.Analysis.Pythia.PythiaModelLoader.LoadModelAsync(String modelPath, PythiaModel& sequenceModel)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.PythonTools.Analysis.Pythia.PythiaService.GetRecommendationsAsync(CompletionItemEx[] completionList, PythonAst ast, SourceLocation location, Int32 recommendataionLimit, CancellationToken cancellationToken)
at Microsoft.PythonTools.Analysis.Pythia.LanguageServerExtension.HandleCompletionAsync(IDocumentAnalysis analysis, SourceLocation location, CompletionItemEx[] completionList, CancellationToken token)