René's URL Explorer Experiment


Title: PTH files support · Issue #537 · microsoft/python-language-server · GitHub

Open Graph Title: PTH files support · Issue #537 · microsoft/python-language-server

X Title: PTH files support · Issue #537 · microsoft/python-language-server

Description: jaredcm commented on Mon Dec 17 2018 Environment data VS Code version: Version 1.30.0 (1.30.0) Extension version (available under the Extensions sidebar): 2018.12.1 OS and version: Mac OS 10.14.1 Python version (& distribution if applica...

Open Graph Description: jaredcm commented on Mon Dec 17 2018 Environment data VS Code version: Version 1.30.0 (1.30.0) Extension version (available under the Extensions sidebar): 2018.12.1 OS and version: Mac OS 10.14.1 P...

X Description: jaredcm commented on Mon Dec 17 2018 Environment data VS Code version: Version 1.30.0 (1.30.0) Extension version (available under the Extensions sidebar): 2018.12.1 OS and version: Mac OS 10.14.1 P...

Opengraph URL: https://github.com/microsoft/python-language-server/issues/537

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PTH files support","articleBody":"@jaredcm commented on [Mon Dec 17 2018](https://github.com/Microsoft/vscode-python/issues/3727)\n\n\u003c!-- \r\nDo you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python. \r\n\r\nUnable to install a linter or formatter? 'No installers available'? \r\nWindows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows\r\nLinux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/\r\n\r\nPython configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites\r\n\r\nOtherwise **please** fill in the requested details below. \"XXX\" markers should not be present in the final bug report.\r\n\r\nIf you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ .\r\n-->\r\n\r\n## Environment data\r\n\r\n- VS Code version: Version 1.30.0 (1.30.0)\r\n- Extension version (available under the Extensions sidebar): 2018.12.1\r\n- OS and version: Mac OS 10.14.1\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.7 cPython\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pyenv\r\n- Relevant/affected Python packages and their versions: None\r\n\r\n## Expected behaviour\r\n\r\nAdding custom locations to `.pth` file should be resolved by the Python intellisense.\r\n\r\n## Actual behaviour\r\n\r\nI have a custom package that is in a subdirectory of my project. I want Python to resolve it as if it were an installed module. \r\n\r\nThe project is setup as such.\r\nos_path\r\n-|+- project_dir\r\n--|+- bin\r\n---|+- test.py\r\n--|+- lib\r\n---|+- custom_module\r\n----|+- \\_\\_init\\_\\_.py\r\n\r\nIn the python 3.7 site-packages directory I have a `.pth` file with something like the following contents.\r\n{os_dir}/{project_dir}\r\n{os_dir}/{project_dir}/lib\r\n\r\nIn Python this resolves without issue and so I can do.\r\n\r\n```\r\nPython 3.7.0 (default, Aug 21 2018, 11:16:24) \r\n[Clang 9.1.0 (clang-902.0.39.2)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import custom_module\r\n>>> custom_module.test()\r\nHello\r\n```\r\n\r\nIf I create a test.py file in the project's bin directory like so:\r\n\r\n```\r\n\"\"\"This is a test.\"\"\"\r\nimport custom_module\r\ncustom_module.test()\r\n```\r\n\r\nIn VSCode I get unresolved import:\r\n\r\n{\r\n\t\"resource\": \"/{os_path}/{project_dir}/bin/test.py\",\r\n\t\"owner\": \"_generated_diagnostic_collection_name_#0\",\r\n\t\"code\": \"unresolved-import\",\r\n\t\"severity\": 4,\r\n\t\"message\": \"unresolved import 'custom_module'\",\r\n\t\"source\": \"Python\",\r\n\t\"startLineNumber\": 2,\r\n\t\"startColumn\": 8,\r\n\t\"endLineNumber\": 2,\r\n\t\"endColumn\": 21\r\n}\r\n\r\nIf I switch the import to lib.{custom_module} then the module resolution works. I'm guessing this is because VSCode adds the workspace to the PYTHONPATH.\r\n\r\n## Steps to reproduce:\r\n1. Setup a project with a module that is +1 level deep in the project. i.e. lib/custom_module/\\_\\_init\\_\\_.py\r\n2. Add a test function for resolution to \\_\\_init\\_\\_.py\r\n\r\n```\r\n\"\"\"This is a test.\"\"\"\r\n\r\n\r\ndef test() -> None:\r\n    \"\"\"This is a test function.\"\"\"\r\n    print(\"Hello\")\r\n\r\n```\r\n\r\n2. In the Python site-packages create a `.pth` file and add the full OS path to the lib directory.\r\n3. Try to import the custom_module in a test file (see my test file above).\r\n\r\n## Logs\r\nOutput for `Python` in the `Output` panel (`View`→`Output`, change the drop-down the upper-right of the `Output` panel to `Python`)\r\n\r\n```\r\n##########Linting Output - pydocstyle##########\r\n##########Linting Output - mypy##########\r\n##########Linting Output - prospector##########\r\n##########Linting Output - prospector##########\r\n##########Linting Output - pylama##########\r\n```\r\n\r\n### Log (Window)\r\n```\r\n[2018-12-17 11:35:21.724] [renderer1] [error] Tree element not found: [object Object]: Error: Tree element not found: [object Object]\r\n    at e.getElementLocation (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:214:266)\r\n    at e.isCollapsed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:213:757)\r\n    at i.e.isCollapsed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:962:723)\r\n    at i.e.isExpanded (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:962:786)\r\n    at t.revealMarkersForCurrentActiveEditor (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4710:827)\r\n    at t.autoReveal (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4710:647)\r\n    at t.onActiveEditorChanged (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4707:826)\r\n    at e.fire (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:189:532)\r\n    at t.doEmitActiveEditorChangeEvent (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4720:942)\r\n    at t.handleActiveEditorChange (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4720:718)\r\n    at file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4721:55\r\n    at e.fire (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:189:512)\r\n    at file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:5170:861\r\n    at Object.g [as _notify] (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:167:807)\r\n    at Object.enter (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:171:85)\r\n    at n.Class.derive._creator._run (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:172:932)\r\n    at n.Class.derive._creator._completed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:172:373)\r\n    at \u003canonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:188:7)\r\n```   \r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`)\r\n\r\n```\r\nlog.ts:169   ERR Tree element not found: [object Object]: Error: Tree element not found: [object Object]\r\n    at e.getElementLocation (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:214:266)\r\n    at e.isCollapsed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:213:757)\r\n    at i.e.isCollapsed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:962:723)\r\n    at i.e.isExpanded (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:962:786)\r\n    at t.revealMarkersForCurrentActiveEditor (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4710:827)\r\n    at t.autoReveal (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4710:647)\r\n    at t.onActiveEditorChanged (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4707:826)\r\n    at e.fire (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:189:532)\r\n    at t.doEmitActiveEditorChangeEvent (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4720:942)\r\n    at t.handleActiveEditorChange (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4720:718)\r\n    at file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4721:55\r\n    at e.fire (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:189:512)\r\n    at file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:5170:861\r\n    at Object.g [as _notify] (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:167:807)\r\n    at Object.enter (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:171:85)\r\n    at n.Class.derive._creator._run (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:172:932)\r\n    at n.Class.derive._creator._completed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:172:373)\r\n    at \u003canonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:188:7)\r\nconsole.ts:134 [Extension Host] Python Extension: Failed to parse Prospector output SyntaxError: Unexpected end of JSON input\r\n\tat JSON.parse (\u003canonymous>)\r\n\tat module.exports.t.Prospector.\u003canonymous> (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:585133)\r\n\tat Generator.next (\u003canonymous>)\r\n\tat module.exports.r (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:584675)\r\n\tat new Promise (\u003canonymous>)\r\n\tat module.exports.r (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:584452)\r\n\tat module.exports.t.Prospector.parseMessages (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:585083)\r\n\tat module.exports.t.Prospector.\u003canonymous> (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:1:77469)\r\n\tat Generator.next (\u003canonymous>)\r\n\tat s (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:1:75269)\r\n\tat \u003canonymous>\r\nt.log @ console.ts:134\r\nt._logExtensionHostMessage @ extensionHost.ts:453\r\n(anonymous) @ extensionHost.ts:244\r\nemitTwo @ events.js:126\r\nemit @ events.js:214\r\nemit @ internal/child_process.js:772\r\n_combinedTickCallback @ internal/process/next_tick.js:141\r\n_tickCallback @ internal/process/next_tick.js:180\r\n```\r\n\n\n---\n\n@jaredcm commented on [Mon Dec 17 2018](https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-447931914)\n\nI tried to create a brand new project and recreate this. The custom module is resolved without issue. When I try and import modules from my initial project I still cannot resolve them. In both projects I get an error message in the workload console like:\r\n\r\n```\r\n/Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303 [Extension Host] Python Extension: Failed to parse Prospector output SyntaxError: Unexpected end of JSON input\r\n\tat JSON.parse (\u003canonymous>)\r\n\tat module.exports.t.Prospector.\u003canonymous> (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:585133)\r\n\tat Generator.next (\u003canonymous>)\r\n\tat module.exports.r (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:584675)\r\n\tat new Promise (\u003canonymous>)\r\n\tat module.exports.r (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:584452)\r\n\tat module.exports.t.Prospector.parseMessages (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:585083)\r\n\tat module.exports.t.Prospector.\u003canonymous> (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:1:77469)\r\n\tat Generator.next (\u003canonymous>)\r\n\tat s (/Users/jared/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:1:75269)\r\n\tat \u003canonymous>\r\nt.log @ /Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:303\r\n```\r\n\n\n---\n\n@jaredcm commented on [Mon Dec 17 2018](https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-447934970)\n\nFound the issue. Looks to be a corrupted .mypy_cache. I removed the cache directory from my initial project and the imports started working in both projects.\n\n---\n\n@jaredcm commented on [Mon Dec 17 2018](https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-448070545)\n\nLooks like I was wrong. I restarted my computer and now my custom module cannot be resolved again. I remember I had been messing about with my pth file. Normally I have 4 paths in it which are all loaded into Python without issue. While filling out this bug report, I had removed all but 1, which was when VS Code started working. I had to add the other 3 paths back again later for my scripts to function properly. Which is why it stopped working and I didn't notice until VSCode was restarted.\r\n\r\nproject.pth =\r\nos_path/project\r\nos_path/project/lib\r\nos_path/project/tests\r\nos_path/project/unit_tests\r\n\r\nI've done some testing:\r\n1. I added a project_lib.pth file which has 1 entry pointing to my lib directory and removed the entry from my project.pth file. The custom module is not resolvable.\r\n2. I change the name of project.pth to project.orig and restart VSCode. The module is resolvable.\r\n3. I change the name of project.orig back to project.pth and restart VSCode. The module is unresolvable again.\r\n4.  I rename project.pth again, create a new file named project_root.pth, add the root directory for my project and restart VSCode. The module is resolvable as are modules in my project's root directory.\r\n\r\nIt looks like VSCode gets confused when pth files have more than one entry.\n\n---\n\n@jaredcm commented on [Mon Dec 17 2018](https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-448082885)\n\nNew issue:\r\nIn custom_module I have many sub_modules and they have other sub_modules. Within each of the sub_modules I use relative imports to load their child classes. The sub_module directory has a \\_\\_init\\_\\_,py with the import statement of \"from .rest import Rest\". This should resolve to a child directory named 'rest' that has a \\_\\_init\\_\\_.py file where the Rest class is defined. The full resolution from the root module to the imported class is 'custom_module.sub_module.rest.Rest'\r\n\r\nThe error message is:\r\n{\r\n\t\"resource\": \"~/project/lib/custom_module/sub_module/\\_\\_init\\_\\_.py\",\r\n\t\"owner\": \"_generated_diagnostic_collection_name_#0\",\r\n\t\"code\": \"unresolved-import\",\r\n\t\"severity\": 4,\r\n\t\"message\": \"unresolved import 'lib.custom_modulerest'\",\r\n\t\"source\": \"Python\",\r\n\t\"startLineNumber\": 6,\r\n\t\"startColumn\": 6,\r\n\t\"endLineNumber\": 6,\r\n\t\"endColumn\": 11\r\n}\r\n\r\nAlso notice that the message is not showing the correct module import path. The lib directory is not a module as it does not have a \\_\\_init\\_\\_.py file. If I change the path of the relative import to a full module import of 'from custom_module.sub_module.rest import Rest', then the error goes away. The path in the message is also missing the current module. It's almost like it the path it is looking for is shifted too far up the tree. Instead of looking in custom_module/sub_module/rest, I think it is looking for lib/custom_module/rest which doesn't exist.\r\n\r\n## Developer Console output\r\n```\r\n  ERR Tree element not found: [object Object]: Error: Tree element not found: [object Object]\r\n    at e.getElementLocation (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:214:266)\r\n    at e.isCollapsed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:213:757)\r\n    at i.e.isCollapsed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:962:723)\r\n    at i.e.isExpanded (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:962:786)\r\n    at t.revealMarkersForCurrentActiveEditor (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4710:827)\r\n    at t.autoReveal (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4710:647)\r\n    at t.onActiveEditorChanged (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4707:826)\r\n    at e.fire (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:189:532)\r\n    at t.doEmitActiveEditorChangeEvent (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4720:942)\r\n    at t.handleActiveEditorChange (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4720:718)\r\n    at file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:4721:55\r\n    at e.fire (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:189:512)\r\n    at file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:5170:861\r\n    at Object.g [as _notify] (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:167:807)\r\n    at Object.enter (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:171:85)\r\n    at n.Class.derive._creator._run (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:172:932)\r\n    at n.Class.derive._creator._completed (file:///Applications/Design/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:172:373)\r\n    at \u003canonymous>\r\n    at process._tickCallback (internal/process/next_tick.js:188:7)\r\nconsole.ts:134 [Extension Host] Python Extension: Failed to parse Prospector output SyntaxError: Unexpected end of JSON input\r\n\tat JSON.parse (\u003canonymous>)\r\n\tat module.exports.t.Prospector.\u003canonymous> (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:585133)\r\n\tat Generator.next (\u003canonymous>)\r\n\tat module.exports.r (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:584675)\r\n\tat new Promise (\u003canonymous>)\r\n\tat module.exports.r (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:584452)\r\n\tat module.exports.t.Prospector.parseMessages (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:83:585083)\r\n\tat module.exports.t.Prospector.\u003canonymous> (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:1:77469)\r\n\tat Generator.next (\u003canonymous>)\r\n\tat s (/~/.vscode/extensions/ms-python.python-2018.12.1/out/client/extension.js:1:75269)\r\n\tat \u003canonymous>\r\nt.log @ console.ts:134\r\nt._logExtensionHostMessage @ extensionHost.ts:453\r\n(anonymous) @ extensionHost.ts:244\r\nemitTwo @ events.js:126\r\nemit @ events.js:214\r\nemit @ internal/child_process.js:772\r\n_combinedTickCallback @ internal/process/next_tick.js:141\r\n_tickCallback @ internal/process/next_tick.js:180\r\n```\r\n\n\n---\n\n@d3r3kk commented on [Thu Jan 17 2019](https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-455270810)\n\nThanks for bringing this up @jaredcm, an interesting problem!\r\n\r\n*I didn't know about `.pth` files until this issue popped up so thank you for that.*\r\n\r\nI can repro this issue with the latest stable VS Code (1.30.2) + latest extension (2018.12.1), using the Jedi language server (`\"python.jediEnabled\": true\"`).\r\n\r\nWorkaround: The Microsoft Python Language Server (as of version 0.1.72.0, or greater) ~seems to handle this case~ (see below). Have you attempted to use this instead of Jedi? See this issue for details on how to enable/update the Microsoft Python Language Server.\r\n\r\n## Adding more than one entry.\r\n\r\nActually, on second look I have found that this is *not handled* properly by the Microsoft Python Language Server as I'd originally stated (at least version 0.1.72.0 doesn't) as I'd left out the multiple lines in the `.pth` part after I got things up and running.\r\n\r\nIndeed, if you add a `.pth` file to your `site-packages` with > 1 path, the issue does repro.\r\n\r\nHere's the sample workspace:\r\n\r\n[3727_module_resolution.zip](https://github.com/Microsoft/vscode-python/files/2770188/3727_module_resolution.zip)\r\n\r\nHere's the sample `.pth` file contents that I placed in the `site-packages`. I created a `.venv` in my workspace and copied this file to `${workspaceFolder}/.venv/Lib/site-packages/test_3727.pth`.\r\n\r\n```\r\nC:\\\\path\\\\to\\\\workspaceFolder\\\\3727_module_resolution\r\nC:\\\\path\\\\to\\\\workspaceFolder\\\\3727_module_resolution\\\\lib\r\n```\r\n\n\n","author":{"url":"https://github.com/d3r3kk","@type":"Person","name":"d3r3kk"},"datePublished":"2019-01-17T19:03:37Z","url":"https://github.com/microsoft/python-language-server/issues/537"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d6faa2d5-5687-5e57-f0e2-cec360f3045b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA8E4:1FB7A0:7D3D74:A96620:6AFE5729
html-safe-noncefd74bc3a444390740a5292c8366f108d2134ccd7d38f9ecb4775f6be1b88ee91
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEU0OjFGQjdBMDo3RDNENzQ6QTk2NjIwOjZBRkU1NzI5IiwidmlzaXRvcl9pZCI6IjIzOTE0MzE4OTA5MjI3ODg2NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacde064775265195ead96265e6c83de94af8a9f99f5e33e3a85d5f8010611e3af1
hovercard-subject-tagissue:400419041
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/537/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ae9ec7f60adb06ceee452343a91f9ece1db3618512e98baf0c5116fd0ee653ec/microsoft/python-language-server/issues/537
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ae9ec7f60adb06ceee452343a91f9ece1db3618512e98baf0c5116fd0ee653ec/microsoft/python-language-server/issues/537
og:image:altjaredcm commented on Mon Dec 17 2018 Environment data VS Code version: Version 1.30.0 (1.30.0) Extension version (available under the Extensions sidebar): 2018.12.1 OS and version: Mac OS 10.14.1 P...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamed3r3kk
hostnamegithub.com
expected-hostnamegithub.com
None3ad2b58e42f481583284b895305360b61b0223636c9dde6d696b575347163a26
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8df44dbe1c8091b38c3e0165c05a1e5c1563762e
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/537#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F537
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F537
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/537
Reloadhttps://github.com/microsoft/python-language-server/issues/537
Reloadhttps://github.com/microsoft/python-language-server/issues/537
microsofthttps://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Codehttps://github.com/microsoft/python-language-server
Issues309 (309)https://github.com/microsoft/python-language-server/issues
Pull requests6 (6)https://github.com/microsoft/python-language-server/pulls
Projectshttps://github.com/microsoft/python-language-server/projects
Wikihttps://github.com/microsoft/python-language-server/wiki
Security and qualityhttps://github.com/microsoft/python-language-server/security
Insightshttps://github.com/microsoft/python-language-server/insights
https://github.com/microsoft/python-language-server
#1289https://github.com/microsoft/python-language-server/pull/1289
PTH files supporthttps://github.com/microsoft/python-language-server/issues/537#top
#1289https://github.com/microsoft/python-language-server/pull/1289
https://github.com/jakebailey
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
enhancementNew feature or requesthttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
feature: importshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20imports%22
June 2019.2https://github.com/microsoft/python-language-server/milestone/20
https://github.com/d3r3kk
Derek Keeler (d3r3kk)https://github.com/d3r3kk
on Jan 17, 2019https://github.com/microsoft/python-language-server/issues/537#issue-400419041
jaredcmhttps://github.com/jaredcm
Mon Dec 17 2018https://github.com/Microsoft/vscode-python/issues/3727
jaredcmhttps://github.com/jaredcm
Mon Dec 17 2018https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-447931914
jaredcmhttps://github.com/jaredcm
Mon Dec 17 2018https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-447934970
jaredcmhttps://github.com/jaredcm
Mon Dec 17 2018https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-448070545
jaredcmhttps://github.com/jaredcm
Mon Dec 17 2018https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-448082885
Derek Keeler (@d3r3kk)https://github.com/d3r3kk
Thu Jan 17 2019https://github.com/Microsoft/vscode-python/issues/3727#issuecomment-455270810
jaredcmhttps://github.com/jaredcm
3727_module_resolution.ziphttps://github.com/Microsoft/vscode-python/files/2770188/3727_module_resolution.zip
Nexthttps://github.com/microsoft/python-language-server/issues/537?timeline_page=1
https://github.com/d3r3kk
Derek Keeler (d3r3kk)https://github.com/d3r3kk
on Jan 17, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-455295551
https://user-images.githubusercontent.com/11466735/51342571-22c85580-1a49-11e9-816e-e4636b7902a0.gif
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
on Feb 20, 2019https://github.com/microsoft/python-language-server/issues/537#event-2153293081
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Feb 20, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-465768897
Dan Taylor (qubitron)https://github.com/qubitron
Feb 2019.2https://github.com/microsoft/python-language-server/milestone/12
on Feb 20, 2019https://github.com/microsoft/python-language-server/issues/537#event-2153443663
https://github.com/tejajrk
tejajrkhttps://github.com/tejajrk
on Mar 1, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-468788114
https://github.com/jaredcm
jaredcmhttps://github.com/jaredcm
on Mar 1, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-468840088
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Mar 3, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-468978679
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Mar 3, 2019https://github.com/microsoft/python-language-server/issues/537#event-2176057095
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
enhancementNew feature or requesthttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
feature: importshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20imports%22
on Mar 3, 2019https://github.com/microsoft/python-language-server/issues/537#event-2176057202
https://github.com/jaredcm
jaredcmhttps://github.com/jaredcm
on Mar 3, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-468980256
https://docs.python.org/3/library/site.htmlhttps://docs.python.org/3/library/site.html
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
Feb 2019.2https://github.com/microsoft/python-language-server/milestone/12
on Mar 3, 2019https://github.com/microsoft/python-language-server/issues/537#event-2176067593
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Mar 3, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-468983411
jaredcmhttps://github.com/jaredcm
https://github.com/jaredcm
jaredcmhttps://github.com/jaredcm
on Mar 3, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-469038110
Jake Bailey (jakebailey)https://github.com/jakebailey
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
on May 9, 2019https://github.com/microsoft/python-language-server/issues/537#event-2331424282
https://github.com/jaredcm
jaredcmhttps://github.com/jaredcm
on Jun 17, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-502817723
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 17, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-502819386
https://github.com/jaredcm
jaredcmhttps://github.com/jaredcm
on Jun 17, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-502832394
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 17, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-502833613
#1175https://github.com/microsoft/python-language-server/issues/1175
https://github.com/jaredcm
jaredcmhttps://github.com/jaredcm
on Jun 17, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-502865105
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 17, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-502865951
https://github.com/jaredcm
jaredcmhttps://github.com/jaredcm
on Jun 17, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-502869789
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 18, 2019https://github.com/microsoft/python-language-server/issues/537#event-2422491179
Jake Bailey (jakebailey)https://github.com/jakebailey
June 2019.2https://github.com/microsoft/python-language-server/milestone/20
on Jun 18, 2019https://github.com/microsoft/python-language-server/issues/537#event-2422491542
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1289https://github.com/microsoft/python-language-server/pull/1289
on Jul 10, 2019https://github.com/microsoft/python-language-server/issues/537#event-2473233721
https://github.com/leotohill
leotohillhttps://github.com/leotohill
on Aug 24, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-524512146
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Aug 26, 2019https://github.com/microsoft/python-language-server/issues/537#issuecomment-524947128
https://github.com/Microsoft/vscode-pythonhttps://github.com/Microsoft/vscode-python
https://github.com/c4urself
Christian Verkerk (c4urself)https://github.com/c4urself
on Jul 24, 2020https://github.com/microsoft/python-language-server/issues/537#issuecomment-663758542
https://github.com/c4urself
Christian Verkerk (c4urself)https://github.com/c4urself
on Jul 24, 2020https://github.com/microsoft/python-language-server/issues/537#issuecomment-663758972
Jake Bailey (@jakebailey)https://github.com/jakebailey
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 24, 2020https://github.com/microsoft/python-language-server/issues/537#issuecomment-663760012
https://github.com/microsoft/vscode-pythonhttps://github.com/microsoft/vscode-python
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/537
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/537
Jake Bailey (jakebailey)https://github.com/jakebailey
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
enhancementNew feature or requesthttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
feature: importshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20imports%22
June 2019.2https://github.com/microsoft/python-language-server/milestone/20
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.