Title: NullReferenceException in OverloadResultComparer.Equals · Issue #286 · microsoft/python-language-server · GitHub
Open Graph Title: NullReferenceException in OverloadResultComparer.Equals · Issue #286 · microsoft/python-language-server
X Title: NullReferenceException in OverloadResultComparer.Equals · Issue #286 · microsoft/python-language-server
Description: There seems to be a recent regression in the commit c067e83 (does not appear to be directly caused by it though), that throws a NullReferenceException in at Microsoft.PythonTools.Analysis.BuiltinFunctionOverloadResult.get_Documentation()...
Open Graph Description: There seems to be a recent regression in the commit c067e83 (does not appear to be directly caused by it though), that throws a NullReferenceException in at Microsoft.PythonTools.Analysis.BuiltinFu...
X Description: There seems to be a recent regression in the commit c067e83 (does not appear to be directly caused by it though), that throws a NullReferenceException in at Microsoft.PythonTools.Analysis.BuiltinFu...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/286
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NullReferenceException in OverloadResultComparer.Equals","articleBody":"There seems to be a recent regression in the commit c067e83a (does not appear to be directly caused by it though), that throws a `NullReferenceException` in\r\n\r\n```\r\n at Microsoft.PythonTools.Analysis.BuiltinFunctionOverloadResult.get_Documentation()\r\n at Microsoft.PythonTools.Analysis.OverloadResultComparer.Equals(OverloadResult x, OverloadResult y)\r\n at Microsoft.PythonTools.Analysis.OverloadResult.Equals(Object obj)\r\n at System.Collections.Generic.ObjectEqualityComparer`1.Equals(T x, T y)\r\n at System.Collections.Generic.HashSet`1.Contains(T item)\r\n at System.Collections.Generic.HashSet`1.ContainsAllElements(IEnumerable`1 other)\r\n at Microsoft.PythonTools.Analysis.Infrastructure.EnumerableExtensions.SetEquals[T](IEnumerable`1 source, IEnumerable`1 other, IEqualityComparer`1 comparer)\r\n at Microsoft.PythonTools.Analysis.Values.BuiltinFunctionInfo.Equals(Object obj)\r\n at Microsoft.PythonTools.Analysis.ObjectComparer.Equals(AnalysisValue x, AnalysisValue y)\r\n at Microsoft.PythonTools.Analysis.AnalysisValue.Microsoft.PythonTools.Analysis.IAnalysisSet.Add(AnalysisValue item, Boolean\u0026 wasChanged, Boolean canMutate)\r\n at Microsoft.PythonTools.Analysis.Analyzer.TypedDependencyInfo.AddType(AnalysisValue ns)\r\n at Microsoft.PythonTools.Analysis.TypedDef`1.AddTypes(IVersioned projectEntry, IAnalysisSet newTypes, Boolean enqueue, IProjectEntry declaringScope)\r\n at Microsoft.PythonTools.Analysis.TypedDef`1.AddTypes(AnalysisUnit unit, IAnalysisSet newTypes, Boolean enqueue, IProjectEntry declaringScope)\r\n at Microsoft.PythonTools.Analysis.Analyzer.DDG.AssignImportedModuleOrMember(String name, IAnalysisSet value, Boolean addRef, Node node, NameExpression nameReference)\r\n at Microsoft.PythonTools.Analysis.Analyzer.DDG.FinishImportModuleOrMember(ModuleReference module, IReadOnlyList`1 attribute, String name, Boolean addRef, Node node, NameExpression nameReference)\r\n at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(FromImportStatement node)\r\n at Microsoft.PythonTools.Parsing.Ast.FromImportStatement.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.AnalysisUnit.Analyze(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```\r\n\r\nI can not stably reproduce this issue, because I parse and queue modules in random order.","author":{"url":"https://github.com/lostmsu","@type":"Person","name":"lostmsu"},"datePublished":"2018-10-19T05:23:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/286/python-language-server/issues/286"}
| 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:a67045b7-2dd5-297e-9240-cfa644dd0e96 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AE6:E1B7B:A5FD83:F3DE05:6A4E20D3 |
| html-safe-nonce | 8055253ec4550e65b73ab53a1ac08a763aeaf53b987d4a3c8cce09bafdb97fac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUU2OkUxQjdCOkE1RkQ4MzpGM0RFMDU6NkE0RTIwRDMiLCJ2aXNpdG9yX2lkIjoiNzc0OTMxODE1NjA1MzQ2NTE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3de9587bcc5492c857a12dcd49addce2255cdab790e27d6790c0fc2ec5f1d421 |
| hovercard-subject-tag | issue:371811349 |
| 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/286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/208388d0f763e1f6454585531e582c61cc4a6fa93f10f2ae253b76000b5e4d6d/microsoft/python-language-server/issues/286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/208388d0f763e1f6454585531e582c61cc4a6fa93f10f2ae253b76000b5e4d6d/microsoft/python-language-server/issues/286 |
| og:image:alt | There seems to be a recent regression in the commit c067e83 (does not appear to be directly caused by it though), that throws a NullReferenceException in at Microsoft.PythonTools.Analysis.BuiltinFu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lostmsu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | 5fe497b4815fcce3df76c0e246faa739a82c3124 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width