Title: NRE in MostRecentDocumentSymbols · Issue #1576 · microsoft/python-language-server · GitHub
Open Graph Title: NRE in MostRecentDocumentSymbols · Issue #1576 · microsoft/python-language-server
X Title: NRE in MostRecentDocumentSymbols · Issue #1576 · microsoft/python-language-server
Description: Environment data Language Server version: 0.4.22 OS and version: Ubuntu 19.04 Python version (& distribution if applicable, e.g. Anaconda): 2.7.15 Expected behaviour Completion completes. Actual behaviour The error happens when doing reg...
Open Graph Description: Environment data Language Server version: 0.4.22 OS and version: Ubuntu 19.04 Python version (& distribution if applicable, e.g. Anaconda): 2.7.15 Expected behaviour Completion completes. Actual be...
X Description: Environment data Language Server version: 0.4.22 OS and version: Ubuntu 19.04 Python version (& distribution if applicable, e.g. Anaconda): 2.7.15 Expected behaviour Completion completes. Actua...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1576
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NRE in MostRecentDocumentSymbols","articleBody":"\r\n\r\n## Environment data\r\n\r\n- Language Server version: 0.4.22 \r\n- OS and version: Ubuntu 19.04\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7.15\r\n\r\n## Expected behaviour\r\n\r\nCompletion completes.\r\n\r\n## Actual behaviour\r\n\r\nThe error happens when doing regular completion on a file, the logs shows the error related to caching. Tried removing the cache folder in `~/snap/common/.cache/Microsoft` but didn't help. Also changed the `python.analysis.cachingLevel` to `None` and `Library` but issue was still showing.\r\n\r\nThe first traceback shows when the cachingLevel is set to `Library`, second traceback is when I remove the `python.analysis.cachingLevel` fromt the options and let it have the default value or `None`.\r\n\r\n## Logs\r\n\r\n```\r\nAnalysis of models.core.server (User) queued. Dependencies: datetime, dateutil.parser, sqlobject, turbogears, turbogears.identity, turbogears.visit, turbogears.config, urlparse, ipaddress, itertools, models.masterdb, models.core.server_facts, models.core.metric_category, models.core.network_service_discovery, models.core.resource_matcher, models.core.snmp_traps, models.core.custom_incident_filter, models.core.snmp_port_discovery, models.core.countermeasures, models.core.maintenance_period, models.core.delta, models.core.elasticflow, models.core.outage_escalation, models.core.cloud, models.core.monitornode, models.core.availability, tasks.ops, pprint, models.core.dashboard, tasks.monitoring_policy\r\n[Error - 3:19:07 PM] Request textDocument/documentSymbol failed.\r\n Message: One or more errors occurred. (Object reference not set to an instance of an object.)\r\n Code: -32000 \r\n at Microsoft.Python.LanguageServer.Indexing.MostRecentDocumentSymbols.\u003c>c.\u003cGetSymbolsAsync>b__11_0(Task`1 t) in E:\\A\\_work\\8\\s\\src\\LanguageServer\\Impl\\Indexing\\MostRecentDocumentSymbols.cs:line 81\r\n at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()\r\n at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Microsoft.Python.LanguageServer.Implementation.Server.HierarchicalDocumentSymbol(DocumentSymbolParams params, CancellationToken cancellationToken) in E:\\A\\_work\\8\\s\\src\\LanguageServer\\Impl\\Implementation\\Server.Symbols.cs:line 37\r\n at Microsoft.Python.LanguageServer.Implementation.LanguageServer.DocumentSymbol(JToken token, CancellationToken cancellationToken) in E:\\A\\_work\\8\\s\\src\\LanguageServer\\Impl\\LanguageServer.cs:line 216\r\n```\r\n\r\n```\r\nAnalysis of models.core.server (User) queued. Dependencies: datetime, dateutil.parser, sqlobject, turbogears, turbogears.identity, turbogears.visit, turbogears.config, urlparse, ipaddress, itertools, models.masterdb, models.core.server_facts, models.core.metric_category, models.core.network_service_discovery, models.core.resource_matcher, models.core.snmp_traps, models.core.custom_incident_filter, models.core.snmp_port_discovery, models.core.countermeasures, models.core.maintenance_period, models.core.delta, models.core.elasticflow, models.core.outage_escalation, models.core.cloud, models.core.monitornode, models.core.availability, tasks.ops, pprint, models.core.dashboard, tasks.monitoring_policy\r\nCreate compiled (scraped): System /home/cllamach/.vscode/extensions/ms-python.python-2019.10.37374-dev/languageServer.0.4.22/System.Globalization.Native.so /home/cllamach/.vscode/extensions/ms-python.python-2019.10.37374-dev/languageServer.0.4.22 \r\nInvalidated cached module /home/cllamach/snap/code/common/.cache/Microsoft/Python Language Server/stubs.v2/Wze56EAsxY7lJj0Ft-F_zT_r3hZrJgsJRF0zH1rz0Fc=/System.Globalization.Native.pyi. Reason: Cached file does not exist\r\n[Error - 3:27:35 PM] Request textDocument/documentSymbol failed.\r\n Message: One or more errors occurred. (Not a valid Python module: /home/cllamach/.vscode/extensions/ms-python.python-2019.10.37374-dev/languageServer.0.4.22/System.Globalization.Native.so)\r\n Code: -32000 \r\n at Microsoft.Python.LanguageServer.Indexing.MostRecentDocumentSymbols.\u003c>c.\u003cGetSymbolsAsync>b__11_0(Task`1 t) in E:\\A\\_work\\8\\s\\src\\LanguageServer\\Impl\\Indexing\\MostRecentDocumentSymbols.cs:line 81\r\n at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()\r\n at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at Microsoft.Python.LanguageServer.Implementation.Server.HierarchicalDocumentSymbol(DocumentSymbolParams params, CancellationToken cancellationToken) in E:\\A\\_work\\8\\s\\src\\LanguageServer\\Impl\\Implementation\\Server.Symbols.cs:line 37\r\n at Microsoft.Python.LanguageServer.Implementation.LanguageServer.DocumentSymbol(JToken token, CancellationToken cancellationToken) in E:\\A\\_work\\8\\s\\src\\LanguageServer\\Impl\\LanguageServer.cs:line 216\r\n```\r\n\r\n## Code Snippet / Additional lnformation\r\n\r\n```python\r\nXXX\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/CMLL","@type":"Person","name":"CMLL"},"datePublished":"2019-09-23T15:31:33Z","url":"https://github.com/microsoft/python-language-server/issues/1576"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:d919ca8c-e11a-2048-77d2-2ce33e1790e1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EB0:2D5FDF:188797:201D0B:6AFE57D6 |
| html-safe-nonce | f10e608d6d99189deaacf16f67254c3ae0340983bcdd79a5a00f3c02164ae827 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUIwOjJENUZERjoxODg3OTc6MjAxRDBCOjZBRkU1N0Q2IiwidmlzaXRvcl9pZCI6IjI4MTQ2NTc2Mjg5NjgyMTI0MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5da524f40ba0117fee2c537627f613c778bbb31cb0fd97c70b7b12ec2908c402 |
| hovercard-subject-tag | issue:497171921 |
| 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/1576/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb1d21f74e642b95ff28a9749d59eed67d6d205dece3ce5ec142b08661e7b00c/microsoft/python-language-server/issues/1576 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb1d21f74e642b95ff28a9749d59eed67d6d205dece3ce5ec142b08661e7b00c/microsoft/python-language-server/issues/1576 |
| og:image:alt | Environment data Language Server version: 0.4.22 OS and version: Ubuntu 19.04 Python version (& distribution if applicable, e.g. Anaconda): 2.7.15 Expected behaviour Completion completes. Actual be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CMLL |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width