Title: Uninstalling python package from virtual env crashed language server · Issue #522 · microsoft/python-language-server · GitHub
Open Graph Title: Uninstalling python package from virtual env crashed language server · Issue #522 · microsoft/python-language-server
X Title: Uninstalling python package from virtual env crashed language server · Issue #522 · microsoft/python-language-server
Description: @DonJayamanne commented on Tue Jan 08 2019 Load workspace with local virtual env and LS Do some work Uninstall python package (pip uninstall) Here's the stack trace Reloading modules... done. [Error - 9:17:21 AM] System.AggregateExceptio...
Open Graph Description: @DonJayamanne commented on Tue Jan 08 2019 Load workspace with local virtual env and LS Do some work Uninstall python package (pip uninstall) Here's the stack trace Reloading modules... done. [Erro...
X Description: @DonJayamanne commented on Tue Jan 08 2019 Load workspace with local virtual env and LS Do some work Uninstall python package (pip uninstall) Here's the stack trace Reloading modules... done. [...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/522
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uninstalling python package from virtual env crashed language server","articleBody":"@DonJayamanne commented on [Tue Jan 08 2019](https://github.com/Microsoft/vscode-python/issues/3924)\n\n* Load workspace with local virtual env and LS\r\n* Do some work\r\n* Uninstall python package (`pip uninstall`)\r\n* Here's the stack trace\r\n\r\n```\r\nReloading modules... \r\ndone.\r\n[Error - 9:17:21 AM] System.AggregateException: One or more errors occurred. (Could not find a part of the path '/Users/donjayamanne/Desktop/Development/PythonStuff/extensionTesting/forTests/venv/lib/python2.7/site-packages/_pytest/config/__init__.py'.) ---\u003e System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/donjayamanne/Desktop/Development/PythonStuff/extensionTesting/forTests/venv/lib/python2.7/site-packages/_pytest/config/__init__.py'.\r\n at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)\r\n at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)\r\n at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)\r\n at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromFile(IPythonInterpreter interpreter, String sourceFile, PythonLanguageVersion langVersion, String moduleFullName)\r\n at Microsoft.PythonTools.Interpreter.Ast.AstModuleResolution.ImportFromSearchPaths(String name, PathResolverSnapshot pathResolver)\r\n at Microsoft.PythonTools.Interpreter.Ast.AstModuleResolution.TryImportModuleAsync(String name, PathResolverSnapshot pathResolver, IReadOnlyList`1 typeStubPaths, Boolean mergeTypeStubPackages, CancellationToken cancellationToken)\r\n at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModuleAsync(String name, CancellationToken token)\r\n --- End of inner exception stack trace ---\r\n at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModule(String name)\r\n at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModule.GetModule()\r\n at Microsoft.PythonTools.Interpreter.Ast.AstNestedPythonModuleMember.Get()\r\n at Microsoft.PythonTools.Interpreter.Ast.AstPythonModule.GetMember(IModuleContext context, String name)\r\n at Microsoft.PythonTools.Analysis.Values.BuiltinNamespace`1.GetTypeMember(Node node, AnalysisUnit unit, String name)\r\n at Microsoft.PythonTools.Analysis.Values.BuiltinModule.GetMember(Node node, AnalysisUnit unit, String name)\r\n at Microsoft.PythonTools.Analysis.AnalysisValueSetExtensions.GetMember(IAnalysisSet self, Node node, AnalysisUnit unit, String name)\r\n at Microsoft.PythonTools.Analysis.Analyzer.ExpressionEvaluator.EvaluateWorker(Node node)\r\n at Microsoft.PythonTools.Analysis.Analyzer.ExpressionEvaluator.EvaluateCall(ExpressionEvaluator ee, Node node)\r\n at Microsoft.PythonTools.Analysis.Analyzer.ExpressionEvaluator.EvaluateWorker(Node node)\r\n at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(ExpressionStatement node)\r\n at Microsoft.PythonTools.Parsing.Ast.ExpressionStatement.Walk(PythonWalker walker)\r\n at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(SuiteStatement node)\r\n at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker)\r\n at Microsoft.PythonTools.Parsing.Ast.PythonAst.Walk(PythonWalker walker)\r\n at Microsoft.PythonTools.Analysis.AnalysisUnit.AnalyzeWorker(DDG ddg, CancellationToken cancel)\r\n at Microsoft.PythonTools.Analysis.Analyzer.DDG.Analyze(Deque`1 queue, CancellationToken cancel, Action`1 reportQueueSize, Int32 reportQueueInterval)\r\n at Microsoft.PythonTools.Analysis.PythonAnalyzer.AnalyzeQueuedEntries(CancellationToken cancel)\r\n at Microsoft.PythonTools.Intellisense.AnalysisQueue.GroupAnalysis.Analyze(CancellationToken cancel)\r\n at Microsoft.PythonTools.Intellisense.AnalysisQueue.HandleAnalyzable(IAnalyzable item, AnalysisPriority priority, CancellationToken cancellationToken)\r\n at Microsoft.PythonTools.Intellisense.AnalysisQueue.ConsumerLoop()\r\n---\u003e (Inner Exception #0) System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/donjayamanne/Desktop/Development/PythonStuff/extensionTesting/forTests/venv/lib/python2.7/site-packages/_pytest/config/__init__.py'.\r\n at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)\r\n at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)\r\n at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)\r\n at Microsoft.PythonTools.Interpreter.Ast.PythonModuleLoader.FromFile(IPythonInterpreter interpreter, String sourceFile, PythonLanguageVersion langVersion, String moduleFullName)\r\n at Microsoft.PythonTools.Interpreter.Ast.AstModuleResolution.ImportFromSearchPaths(String name, PathResolverSnapshot pathResolver)\r\n at Microsoft.PythonTools.Interpreter.Ast.AstModuleResolution.TryImportModuleAsync(String name, PathResolverSnapshot pathResolver, IReadOnlyList`1 typeStubPaths, Boolean mergeTypeStubPackages, CancellationToken cancellationToken)\r\n at Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter.ImportModuleAsync(String name, CancellationToken token)\u003c---\r\n```\n\n","author":{"url":"https://github.com/DonJayamanne","@type":"Person","name":"DonJayamanne"},"datePublished":"2019-01-08T17:24:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/522/python-language-server/issues/522"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5392c91f-c649-1776-5a83-2e62028a2676 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC56:D3B0E:1564608:1DA3AC7:6A4DF0B2 |
| html-safe-nonce | c4f535e1895551c1d5edb3198095e9f119db8903e4329421b6c24fde4cc9df72 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzU2OkQzQjBFOjE1NjQ2MDg6MURBM0FDNzo2QTRERjBCMiIsInZpc2l0b3JfaWQiOiIyNjc4MTMyOTYyMzUyODIwNDAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fb72b58ecbbb038d9371ce7ab215c78abbcae115bccbed399cf2decad4940758 |
| hovercard-subject-tag | issue:397007612 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/522/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1c41a3235eb608e92a3a980c48b5afc7f4956e92bc7b47c8c8172902c8607b1/microsoft/python-language-server/issues/522 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1c41a3235eb608e92a3a980c48b5afc7f4956e92bc7b47c8c8172902c8607b1/microsoft/python-language-server/issues/522 |
| og:image:alt | @DonJayamanne commented on Tue Jan 08 2019 Load workspace with local virtual env and LS Do some work Uninstall python package (pip uninstall) Here's the stack trace Reloading modules... done. [Erro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DonJayamanne |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f4bb89367ca678f057d79b1abc45d6675b1bd5b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width