René's URL Explorer Experiment


Title: Unresolved import when opening a subdirectory of an import root as the workspace root · Issue #1060 · microsoft/python-language-server · GitHub

Open Graph Title: Unresolved import when opening a subdirectory of an import root as the workspace root · Issue #1060 · microsoft/python-language-server

X Title: Unresolved import when opening a subdirectory of an import root as the workspace root · Issue #1060 · microsoft/python-language-server

Description: Anti-Distinctlyminty commented on Mon May 06 2019 Environment data VS Code version: 1.33.1 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows_NT x64 10.0.17134 Python version (& distribution ...

Open Graph Description: Anti-Distinctlyminty commented on Mon May 06 2019 Environment data VS Code version: 1.33.1 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows_NT x64 10...

X Description: Anti-Distinctlyminty commented on Mon May 06 2019 Environment data VS Code version: 1.33.1 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows_NT x64 10...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unresolved import when opening a subdirectory of an import root as the workspace root","articleBody":"@Anti-Distinctlyminty commented on [Mon May 06 2019](https://github.com/microsoft/vscode-python/issues/5563)\n\n## Environment data\r\n\r\n- VS Code version: 1.33.1\r\n- Extension version (available under the Extensions sidebar): 2019.4.12954\r\n- OS and version: Windows_NT x64 10.0.17134\r\n- Python version (& distribution if applicable, e.g. Anaconda): 2.7.11 64-bit\r\n\r\n## Expected behaviour\r\n\r\nWith `python.autoComplete.extraPaths` set correctly, modules should import without issue.\r\n\r\n## Actual behaviour\r\n\r\nI receive a `Unresolved import 'moduleName'` when using syntax of the form\r\n`import workspace_folder.module as alt_name`\r\n_and_ if the .code-workspace file is in the same directory.\r\ne.g.\r\n![Code_2019-05-06_15-24-33](https://user-images.githubusercontent.com/1378483/57228023-16293680-7013-11e9-8a18-1f19ce5f6dac.png)\r\n\r\n## Steps to reproduce:\r\n1. Extract the following to a suitable location:\r\n[myLib.zip](https://github.com/Microsoft/vscode-python/files/3148114/myLib.zip)\r\n2. Inside myLib, open the Import_Bug.code-workspace file\r\n3. Go to workspace settings and change the `python.autoComplete.extraPaths` to the folder containing myLib.\r\n4. open libFunctions.py and see that `import myLib.importMe as im` has an unresolved import error.\r\n\r\nI am aware that the organization of this workspace is sub-optimal, with the code-workspace file being inside the python library folder. However, with all paths being set correctly, the import should still succeed.\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\nBlank.\r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`; turn on source maps to make any tracebacks be useful by running `Enable source map support for extension debugging`)\r\n\r\nBlank.\r\n\n\n","author":{"url":"https://github.com/luabud","@type":"Person","name":"luabud"},"datePublished":"2019-05-09T18:05:03Z","url":"https://github.com/microsoft/python-language-server/issues/1060"}

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:42bcf9e4-e9d7-f025-61ee-94e887b92513
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id95B8:D707B:25C439:31B8A7:6AFE5A1C
html-safe-nonce6024fd504b6ee34be5ccfb2d697ad8016bb1e3e9dfbe168dd7af85439fcd85c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUI4OkQ3MDdCOjI1QzQzOTozMUI4QTc6NkFGRTVBMUMiLCJ2aXNpdG9yX2lkIjoiNTc5MzQ1OTQ1Mjk3MTQ3MzQzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb2feb214552c29da10d048a343c1c94bec0cbfa4396aa45524c5aeefed2e7bcf
hovercard-subject-tagissue:442362412
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/1060/issue_layout
twitter:imagehttps://opengraph.githubassets.com/89313e3078c80caa051696e8f2f30f6d5c9ac5e0ffe06b0c987465900a5379ec/microsoft/python-language-server/issues/1060
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/89313e3078c80caa051696e8f2f30f6d5c9ac5e0ffe06b0c987465900a5379ec/microsoft/python-language-server/issues/1060
og:image:altAnti-Distinctlyminty commented on Mon May 06 2019 Environment data VS Code version: 1.33.1 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows_NT x64 10...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameluabud
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
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
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/1060#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1060
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%2F1060
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/1060
Reloadhttps://github.com/microsoft/python-language-server/issues/1060
Reloadhttps://github.com/microsoft/python-language-server/issues/1060
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
Unresolved import when opening a subdirectory of an import root as the workspace roothttps://github.com/microsoft/python-language-server/issues/1060#top
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
https://github.com/luabud
Luciana Abud (luabud)https://github.com/luabud
on May 9, 2019https://github.com/microsoft/python-language-server/issues/1060#issue-442362412
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
Mon May 06 2019https://github.com/microsoft/vscode-python/issues/5563
https://user-images.githubusercontent.com/1378483/57228023-16293680-7013-11e9-8a18-1f19ce5f6dac.png
myLib.ziphttps://github.com/Microsoft/vscode-python/files/3148114/myLib.zip
Nexthttps://github.com/microsoft/python-language-server/issues/1060?timeline_page=1
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
on May 9, 2019https://github.com/microsoft/python-language-server/issues/1060#event-2331129560
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
on May 9, 2019https://github.com/microsoft/python-language-server/issues/1060#event-2331129750
https://github.com/AlexanderSher
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
on May 9, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-491034113
https://www.python.org/dev/peps/pep-0008/#package-and-module-nameshttps://www.python.org/dev/peps/pep-0008/#package-and-module-names
https://github.com/Anti-Distinctlyminty
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
on May 9, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-491055309
https://github.com/AlexanderSher
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
on May 9, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-491065899
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
http://google.github.io/styleguide/pyguide.html#3164-guidelines-derived-from-guidos-recommendationshttp://google.github.io/styleguide/pyguide.html#3164-guidelines-derived-from-guidos-recommendations
https://github.com/Anti-Distinctlyminty
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
on May 9, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-491070469
Alexander Sher (@AlexanderSher)https://github.com/AlexanderSher
https://user-images.githubusercontent.com/1378483/57487301-82749600-72b0-11e9-91d2-2c50b58018ce.gif
https://github.com/AlexanderSher
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
on May 10, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-491120162
https://github.com/Anti-Distinctlyminty
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
on May 11, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-491503680
https://github.com/egabrum
egabrumhttps://github.com/egabrum
on May 17, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-493622064
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
on Jun 4, 2019https://github.com/microsoft/python-language-server/issues/1060#event-2386705111
https://github.com/johnybx
johnybxhttps://github.com/johnybx
on Jun 9, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-500234813
#1156https://github.com/microsoft/python-language-server/issues/1156
https://github.com/AlexanderSher
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
on Jul 12, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511031207
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
https://github.com/AlexanderSher
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
on Jul 12, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511031857
egabrumhttps://github.com/egabrum
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
https://github.com/Anti-Distinctlyminty
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
on Jul 13, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511157075
Alexander Sher (@AlexanderSher)https://github.com/AlexanderSher
https://user-images.githubusercontent.com/1378483/61176956-4d473580-a5ca-11e9-9deb-3bb5b1c77d36.gif
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Jul 13, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511157236
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 15, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511609849
https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warningshttps://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warnings
https://github.com/jmwielandt
jmwielandthttps://github.com/jmwielandt
on Jul 15, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511611067
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 16, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511617494
microsoft/vscode-python#924https://github.com/microsoft/vscode-python/issues/924
https://github.com/jmwielandt
jmwielandthttps://github.com/jmwielandt
on Jul 16, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511618544
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 16, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511620886
https://github.com/egabrum
egabrumhttps://github.com/egabrum
on Jul 16, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511688166
https://github.com/Anti-Distinctlyminty
Anti-Distinctlymintyhttps://github.com/Anti-Distinctlyminty
on Jul 16, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511688260
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 16, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511707504
#1138https://github.com/microsoft/python-language-server/issues/1138
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 16, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-511894600
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jul 25, 2019https://github.com/microsoft/python-language-server/issues/1060#event-2510895981
https://github.com/SHxKM
SHxKMhttps://github.com/SHxKM
on Aug 7, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-519205288
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Aug 7, 2019https://github.com/microsoft/python-language-server/issues/1060#issuecomment-519206260
#1345https://github.com/microsoft/python-language-server/issues/1345
#1345https://github.com/microsoft/python-language-server/issues/1345
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
Alexander Sher (AlexanderSher)https://github.com/AlexanderSher
on Oct 9, 2019https://github.com/microsoft/python-language-server/issues/1060#event-2700105025
https://github.com/datalifenyc
Chidi (datalifenyc)https://github.com/datalifenyc
on Mar 18, 2020https://github.com/microsoft/python-language-server/issues/1060#issuecomment-600614952
https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warningshttps://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warnings
Jake Bailey (@jakebailey)https://github.com/jakebailey
https://github.com/webdog
Christian Weber (webdog)https://github.com/webdog
on Jan 11, 2021https://github.com/microsoft/python-language-server/issues/1060#issuecomment-758131445
https://user-images.githubusercontent.com/960210/104217737-628c6280-5401-11eb-9a40-19fdb3ea4f95.png
https://user-images.githubusercontent.com/960210/104217913-9b2c3c00-5401-11eb-8d92-acab33d662ad.png
https://user-images.githubusercontent.com/960210/104218383-43420500-5402-11eb-9c49-32432d477d3f.png
https://user-images.githubusercontent.com/960210/104218310-2c9bae00-5402-11eb-8124-539984a21951.png
https://user-images.githubusercontent.com/960210/104219416-b4ce8300-5403-11eb-9ee7-779e1edfc96c.png
https://user-images.githubusercontent.com/960210/104219352-9cf6ff00-5403-11eb-8d9e-161afb624d1d.png
https://user-images.githubusercontent.com/960210/104221293-51922000-5406-11eb-803c-ad69f9511c3b.png
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1060
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1060
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
editable-installspip editable installs / setup.py develophttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22editable-installs%22
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.