Title: NullReferenceException getting URI absolute path in PythonModule.Definition · Issue #1018 · microsoft/python-language-server · GitHub
Open Graph Title: NullReferenceException getting URI absolute path in PythonModule.Definition · Issue #1018 · microsoft/python-language-server
X Title: NullReferenceException getting URI absolute path in PythonModule.Definition · Issue #1018 · microsoft/python-language-server
Description: at Microsoft.Python.Core.UriExtensions.ToAbsolutePath(Uri uri) at Microsoft.Python.Analysis.Modules.PythonModule.get_Definition() at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FromMember(IMember m) at Microsoft.Python.Langu...
Open Graph Description: at Microsoft.Python.Core.UriExtensions.ToAbsolutePath(Uri uri) at Microsoft.Python.Analysis.Modules.PythonModule.get_Definition() at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FromMem...
X Description: at Microsoft.Python.Core.UriExtensions.ToAbsolutePath(Uri uri) at Microsoft.Python.Analysis.Modules.PythonModule.get_Definition() at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FromMem...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1018
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NullReferenceException getting URI absolute path in PythonModule.Definition","articleBody":"```\r\n at Microsoft.Python.Core.UriExtensions.ToAbsolutePath(Uri uri)\r\n at Microsoft.Python.Analysis.Modules.PythonModule.get_Definition()\r\n at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FromMember(IMember m)\r\n at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FindDefinition(IDocumentAnalysis analysis, SourceLocation location, ILocatedMember& member)\r\n at Microsoft.Python.LanguageServer.Implementation.Server.GotoDefinition(TextDocumentPositionParams params, CancellationToken cancellationToken)\r\n at Microsoft.Python.LanguageServer.Implementation.LanguageServer.GotoDefinition(JToken token, CancellationToken cancellationToken)\r\n```\r\n\r\n```\r\n at Microsoft.Python.Core.UriExtensions.ToAbsolutePath(Uri uri)\r\n at Microsoft.Python.Analysis.Modules.PythonModule.get_Definition()\r\n at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FromMember(IMember m)\r\n at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FindDefinition(IDocumentAnalysis analysis, SourceLocation location, ILocatedMember& member)\r\n at Microsoft.Python.LanguageServer.Sources.ReferenceSource.FindAllReferencesAsync(Uri uri, SourceLocation location, ReferenceSearchOptions options, CancellationToken cancellationToken)\r\n at Microsoft.Python.LanguageServer.Implementation.LanguageServer.FindReferences(JToken token, CancellationToken cancellationToken)\r\n```\r\n\r\nFix is likely one of:\r\n\r\n- Just do `Uri?.ToAbsolutePath()`; `LocationInfo.FilePath` is only ever used for comparison and is allowed to be null.\r\n- Pass in `PythonModule.FilePath` instead of converting `Uri`.","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2019-04-26T19:30:25Z","url":"https://github.com/microsoft/python-language-server/issues/1018"}
| 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:d147097f-aad2-a851-8562-70a35871942d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B8A:245A7:10F714:164B56:6AFE55B4 |
| html-safe-nonce | 1ec0cc5927f0fd8812469bf1aa5fec05407d0adb446f4a9623aa506fafceac8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjhBOjI0NUE3OjEwRjcxNDoxNjRCNTY6NkFGRTU1QjQiLCJ2aXNpdG9yX2lkIjoiODI2MzE0MDUxMzc0NjQwODg4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7f65afdd30d14fa5bb1fc068d250920f252c9f8e277d1ebe437924dac5b525ad |
| hovercard-subject-tag | issue:437814599 |
| 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/1018/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd23d4323dfafdc81572d772cc04fc8201c745da25ca21cb66f215daa2a56868/microsoft/python-language-server/issues/1018 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd23d4323dfafdc81572d772cc04fc8201c745da25ca21cb66f215daa2a56868/microsoft/python-language-server/issues/1018 |
| og:image:alt | at Microsoft.Python.Core.UriExtensions.ToAbsolutePath(Uri uri) at Microsoft.Python.Analysis.Modules.PythonModule.get_Definition() at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FromMem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakebailey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3ad2b58e42f481583284b895305360b61b0223636c9dde6d696b575347163a26 |
| 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 | 8df44dbe1c8091b38c3e0165c05a1e5c1563762e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width