Title: Improve user/library code distinction in searchPaths and PYTHONPATH · Issue #794 · microsoft/python-language-server · GitHub
Open Graph Title: Improve user/library code distinction in searchPaths and PYTHONPATH · Issue #794 · microsoft/python-language-server
X Title: Improve user/library code distinction in searchPaths and PYTHONPATH · Issue #794 · microsoft/python-language-server
Description: For #720. We need to distinguish between user and library paths for searchPaths (in initializationOptions) and PYTHONPATH. The general way to do this for now will be to simply check if a given path is rooted inside the workspace. If it i...
Open Graph Description: For #720. We need to distinguish between user and library paths for searchPaths (in initializationOptions) and PYTHONPATH. The general way to do this for now will be to simply check if a given path...
X Description: For #720. We need to distinguish between user and library paths for searchPaths (in initializationOptions) and PYTHONPATH. The general way to do this for now will be to simply check if a given path...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/794
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve user/library code distinction in searchPaths and PYTHONPATH","articleBody":"For #720.\r\n\r\nWe need to distinguish between user and library paths for searchPaths (in initializationOptions) and PYTHONPATH.\r\n\r\nThe general way to do this for now will be to simply check if a given path is rooted inside the workspace. If it is, then treat it as user code (run extra analysis), otherwise treat it as library code. The current behavior treats everything set by searchPaths to be user code.\r\n\r\nAdditionally, we'll also be getting PYTHONPATH from the environment, which we should treat the same way. This will help with #469, such that the language server can be started without searchPaths set and still be able to work with more esoteric setups. `get_search_paths.py` can be modified to distinguish items in `sys.path` that came from PYTHONPATH, or the language server can read the environment variable directly during the initialization.","author":{"url":"https://github.com/jakebailey","@type":"Person","name":"jakebailey"},"datePublished":"2019-03-19T22:45:13Z","url":"https://github.com/microsoft/python-language-server/issues/794"}
| 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:ed42e9e2-72e9-3643-7c6e-c81134214319 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8C4:2A16C9:14FBF0:1B83D3:6AFE5736 |
| html-safe-nonce | b06acd6533a3d3f26cc58f73ae0187b3ddb58c4e69f1566c4585e259cdaf97e6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEM0OjJBMTZDOToxNEZCRjA6MUI4M0QzOjZBRkU1NzM2IiwidmlzaXRvcl9pZCI6IjIzOTkwMjA4OTE5NzYzOTA0NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0b67e0d6ed72b7473d491251d7c5fb38e6d6f853c762c8c22a4a0e2660ed4621 |
| hovercard-subject-tag | issue:422987449 |
| 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/794/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0bde0be6dd562828ecd315b80ad8992ebf24aeda3ae9298b45ebf97fa0137cd6/microsoft/python-language-server/issues/794 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0bde0be6dd562828ecd315b80ad8992ebf24aeda3ae9298b45ebf97fa0137cd6/microsoft/python-language-server/issues/794 |
| og:image:alt | For #720. We need to distinguish between user and library paths for searchPaths (in initializationOptions) and PYTHONPATH. The general way to do this for now will be to simply check if a given path... |
| 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