Title: PLS doesn't resolve relative paths correctly · Issue #510 · microsoft/python-language-server · GitHub
Open Graph Title: PLS doesn't resolve relative paths correctly · Issue #510 · microsoft/python-language-server
X Title: PLS doesn't resolve relative paths correctly · Issue #510 · microsoft/python-language-server
Description: The analyzer sometimes does not resolve relative paths correctly. See the screen shot below. The problem appears to be in PathResolverSnapshot.TryFindName which contains the following lines of code: if (lastEdge.End.IsModule) { return fa...
Open Graph Description: The analyzer sometimes does not resolve relative paths correctly. See the screen shot below. The problem appears to be in PathResolverSnapshot.TryFindName which contains the following lines of code...
X Description: The analyzer sometimes does not resolve relative paths correctly. See the screen shot below. The problem appears to be in PathResolverSnapshot.TryFindName which contains the following lines of code...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/510
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PLS doesn't resolve relative paths correctly","articleBody":"The analyzer sometimes does not resolve relative paths correctly. See the screen shot below.\r\n\r\n\r\n\r\nThe problem appears to be in `PathResolverSnapshot.TryFindName` which contains the following lines of code:\r\n```\r\nif (lastEdge.End.IsModule) {\r\n return false;\r\n}\r\n```\r\nI don't understand why this logic is needed. When I comment out these three lines, the relative paths resolve correctly and other imports also appear to resolve as expected.","author":{"url":"https://github.com/erictraut","@type":"Person","name":"erictraut"},"datePublished":"2018-12-26T10:45:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/510/python-language-server/issues/510"}
| 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:db5535f2-4b14-d288-de10-a20b268fcd5d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6EC:2BFDE6:3E67CB:5AE282:6A4E0510 |
| html-safe-nonce | 289cb5958504b82793298a132cd54822f12a01930876f9aa55f4ccca634b843d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkVDOjJCRkRFNjozRTY3Q0I6NUFFMjgyOjZBNEUwNTEwIiwidmlzaXRvcl9pZCI6IjI1NDYyMDU1NTE0MzMyMjEzOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 55d9c93f5be41113f89a888c8bc0221e0ae9626d7a584ba55d6c74de99b9d287 |
| hovercard-subject-tag | issue:394140530 |
| 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/510/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e713655d2ce9d296edc4ffa1c8009e818efe34a7def9ee3420c8cc6d5c9af479/microsoft/python-language-server/issues/510 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e713655d2ce9d296edc4ffa1c8009e818efe34a7def9ee3420c8cc6d5c9af479/microsoft/python-language-server/issues/510 |
| og:image:alt | The analyzer sometimes does not resolve relative paths correctly. See the screen shot below. The problem appears to be in PathResolverSnapshot.TryFindName which contains the following lines of code... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | erictraut |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| 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 | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width