René's URL Explorer Experiment


Title: Unresolved import problem for files in sub-directories in a workspace · Issue #1099 · microsoft/python-language-server · GitHub

Open Graph Title: Unresolved import problem for files in sub-directories in a workspace · Issue #1099 · microsoft/python-language-server

X Title: Unresolved import problem for files in sub-directories in a workspace · Issue #1099 · microsoft/python-language-server

Description: Its hard for me to explain my exact issue because I don't know all the correct terminology. Basically if I try to import one of my own python files into another of my own python files whilst both are in the same "sub-directory" of my "ma...

Open Graph Description: Its hard for me to explain my exact issue because I don't know all the correct terminology. Basically if I try to import one of my own python files into another of my own python files whilst both a...

X Description: Its hard for me to explain my exact issue because I don't know all the correct terminology. Basically if I try to import one of my own python files into another of my own python files whilst bo...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unresolved import problem for files in sub-directories in a workspace","articleBody":"Its hard for me to explain my exact issue because I don't know all the correct terminology.\r\nBasically if I try to import one of my own python files into another of my own python files whilst both are in the same \"sub-directory\" of my \"main\" workspace directory then I get an unresolved import problem unless I put the full file path from the \"main\" directory into the import in which case the python files no longer run.\r\nPlease see my example below.\r\n\r\nSay I have files setup like this: (I've obviously omitted folders and files you don't need to see)\r\n\r\n```\r\nC:.\r\n│   Potassco.code-workspace\r\n│\r\n├───.vscode\r\n│       settings.json\r\n│\r\n└───Work\r\n    └───Hospitality_Domain\r\n        └───Version_7\r\n            │   Architecture.lp\r\n            │   domain_setup.lp\r\n            │   Parser.py\r\n            │   Robot_Hotel.sp\r\n            │   Simulate.py\r\n            │   SPARC.jar\r\n            │\r\n            └───__pycache__\r\n                    Parser.cpython-36.pyc\r\n```\r\n\r\nIf I try to import Parser.py into Simulate.py as such:\r\n`import Parser`\r\nI get the unresolved import problem but the code runs just fine (as we would expect).\r\n\r\nHowever if I instead put this:\r\n`import Work.Hospitality_Domain.Version_7.Parser`\r\nI do not get the unresolved import but the code does not run, (which is also what I would expect).\r\n\r\nI'm guessing my problem is probably something simple, can anyone help?","author":{"url":"https://github.com/OllieKampo","@type":"Person","name":"OllieKampo"},"datePublished":"2019-05-18T14:57:19Z","url":"https://github.com/microsoft/python-language-server/issues/1099"}

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:40f73d66-53d2-1787-d89e-a2218f4347be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAD46:247139:6EA434:96C4C1:6AFE6864
html-safe-nonce88fcdfdeeabddab566c6f098dc3c2ae10f09bbe6dc63385bf4e259a59f674b34
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDQ2OjI0NzEzOTo2RUE0MzQ6OTZDNEMxOjZBRkU2ODY0IiwidmlzaXRvcl9pZCI6IjQzMDI0NDM3NjY0MTA1MzcwNjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca9b6564122f56313e7d3872cda21aaafe82f99cdf3518afd3ca3b6245706d855
hovercard-subject-tagissue:445723580
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/1099/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d53633bedb2f591448b5cd66b88f4597cbe79e2fb98795e5975c69a3b776984b/microsoft/python-language-server/issues/1099
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d53633bedb2f591448b5cd66b88f4597cbe79e2fb98795e5975c69a3b776984b/microsoft/python-language-server/issues/1099
og:image:altIts hard for me to explain my exact issue because I don't know all the correct terminology. Basically if I try to import one of my own python files into another of my own python files whilst both a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameOllieKampo
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/1099#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1099
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%2F1099
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/1099
Reloadhttps://github.com/microsoft/python-language-server/issues/1099
Reloadhttps://github.com/microsoft/python-language-server/issues/1099
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
#1183https://github.com/microsoft/python-language-server/pull/1183
Unresolved import problem for files in sub-directories in a workspacehttps://github.com/microsoft/python-language-server/issues/1099#top
#1183https://github.com/microsoft/python-language-server/pull/1183
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
June 2019.1https://github.com/microsoft/python-language-server/milestone/19
https://github.com/OllieKampo
Oliver Michael Kamperis (OllieKampo)https://github.com/OllieKampo
on May 18, 2019https://github.com/microsoft/python-language-server/issues/1099#issue-445723580
Oliver Michael Kamperis (OllieKampo)https://github.com/OllieKampo
on May 18, 2019https://github.com/microsoft/python-language-server/issues/1099#event-2351006260
https://github.com/chudytom
Tomasz Chudzik (chudytom)https://github.com/chudytom
on May 18, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-493685524
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on May 18, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-493690596
https://github.com/xobs
Sean Cross (xobs)https://github.com/xobs
on May 22, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-494642406
https://github.com/xobs
Sean Cross (xobs)https://github.com/xobs
on May 22, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-494648905
https://github.com/chudytom
Tomasz Chudzik (chudytom)https://github.com/chudytom
on May 26, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-495997492
microsoft/vscode-python#5786https://github.com/microsoft/vscode-python/issues/5786
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
enhancementNew feature or requesthttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Jun 1, 2019https://github.com/microsoft/python-language-server/issues/1099#event-2382821895
https://github.com/OllieKampo
Oliver Michael Kamperis (OllieKampo)https://github.com/OllieKampo
on Jun 4, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-498706858
Mikhail Arkhipov (@MikhailArkhipov)https://github.com/MikhailArkhipov
https://github.com/OllieKampo
Oliver Michael Kamperis (OllieKampo)https://github.com/OllieKampo
on Jun 4, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-498735726
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 4, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-498739748
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1183https://github.com/microsoft/python-language-server/pull/1183
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1099#event-2398603980
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-500069983
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
Oliver Michael Kamperis (@OllieKampo)https://github.com/OllieKampo
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1099#event-2398620423
Jake Bailey (jakebailey)https://github.com/jakebailey
June 2019.1https://github.com/microsoft/python-language-server/milestone/19
on Jun 7, 2019https://github.com/microsoft/python-language-server/issues/1099#event-2398620453
https://github.com/OllieKampo
Oliver Michael Kamperis (OllieKampo)https://github.com/OllieKampo
on Jun 8, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-500121137
Jake Bailey (@jakebailey)https://github.com/jakebailey
https://github.com/xobs
Sean Cross (xobs)https://github.com/xobs
on Jun 19, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-503635402
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 19, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-503636349
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 19, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-503636627
https://github.com/xobs
Sean Cross (xobs)https://github.com/xobs
on Jun 19, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-503637280
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 19, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-503638516
https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issuehttps://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#filing-an-issue
https://github.com/xobs
Sean Cross (xobs)https://github.com/xobs
on Jun 19, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-503638571
https://github.com/jakebailey
Jake Bailey (jakebailey)https://github.com/jakebailey
on Jun 19, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-503639046
https://github.com/xobs
Sean Cross (xobs)https://github.com/xobs
on Jun 19, 2019https://github.com/microsoft/python-language-server/issues/1099#issuecomment-503644582
#1223 (comment)https://github.com/microsoft/python-language-server/issues/1223#issue-458122430
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1099
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1099
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
June 2019.1https://github.com/microsoft/python-language-server/milestone/19
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.