René's URL Explorer Experiment


Title: Jedi: overlapping language server restarts leak Jedi processes and completion hangs · Issue #26296 · microsoft/vscode-python · GitHub

Open Graph Title: Jedi: overlapping language server restarts leak Jedi processes and completion hangs · Issue #26296 · microsoft/vscode-python

X Title: Jedi: overlapping language server restarts leak Jedi processes and completion hangs · Issue #26296 · microsoft/vscode-python

Description: Type: Bug Behaviour With Jedi as language server (python.languageServer: "Jedi", or "Default" without Pylance), changing the active interpreter and restarting the language server in quick succession leaves extra run-jedi-language-server....

Open Graph Description: Type: Bug Behaviour With Jedi as language server (python.languageServer: "Jedi", or "Default" without Pylance), changing the active interpreter and restarting the language server in quick successio...

X Description: Type: Bug Behaviour With Jedi as language server (python.languageServer: "Jedi", or "Default" without Pylance), changing the active interpreter and restarting the language serve...

Opengraph URL: https://github.com/microsoft/vscode-python/issues/26296

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Jedi: overlapping language server restarts leak Jedi processes and completion hangs","articleBody":"## Type: Bug\n\n## Behaviour\n\nWith Jedi as language server (`python.languageServer: \"Jedi\"`, or `\"Default\"` without Pylance), changing the\nactive interpreter and restarting the language server in quick succession leaves extra\n`run-jedi-language-server.py` processes running. Completion in Python files then hangs (the suggest widget\nstays at \"Loading...\" / no results) until the window is reloaded.\n\nEach interpreter change stops the Jedi server and starts a new one with the new interpreter. When the next\nstop or restart arrives while a start is still in progress, the server that is being started is not stopped\nand stays running without being connected/tracked.\n\nA related symptom: when `python.analysis.restartLanguageServer` runs before the extension has started Jedi\nfor the first time (e.g. while it is still resolving the interpreter at startup), it starts a server that is\nnever connected. Completion then shows nothing in the whole window until a reload.\n\nAlso, the Jedi handler of `python.analysis.restartLanguageServer` does not return the restart promise, so\n`await vscode.commands.executeCommand('python.analysis.restartLanguageServer')` resolves immediately. Callers\ntherefore cannot wait for the restart to finish to avoid overlapping it.\n\n### Expected\n\n- At any time at most one Jedi server process per workspace folder, regardless of how quickly interpreter\n  changes and restarts follow each other (a pending start is cancelled/stopped, or requests are serialized).\n- `python.analysis.restartLanguageServer` resolves after the new server is running, as with Pylance.\n\n### Actual\n\n- After \"switch away, switch back, restart\" sequences, more than one `run-jedi-language-server.py` process\n  runs for one workspace folder (expected: 1).\n- Completion hangs until `Developer: Reload Window`.\n\n## Steps to reproduce\n\n1. Settings: `\"python.languageServer\": \"Jedi\"`. Workspace with a virtual environment `.venv` and at least one\n   other interpreter available (e.g. a global Python).\n2. Open a `.py` file and wait until completion works.\n3. Run the following sequence of calls from an extension. We hit this through our own extension, which\n   switches the interpreter away and back so that language servers pick up changed `.pth` files; the snippet\n   shows the calls it makes (it waits up to 1 s between the two switches until the venv's `python.exe` is\n   released):\n\n   ```ts\n   import { PythonExtension } from '@vscode/python-extension';\n\n   const api = await PythonExtension.api();\n   const folder = vscode.workspace.workspaceFolders![0];\n   await api.environments.updateActiveEnvironmentPath(otherPythonPath, folder);\n   await api.environments.updateActiveEnvironmentPath(venvPythonPath, folder);\n   await vscode.commands.executeCommand('python.analysis.restartLanguageServer');\n   ```\n\n   Doing the same by hand (Python: Select Interpreter twice quickly, then Python: Restart Language Server)\n   may also work, but is timing dependent.\n4. Count the Jedi processes (Windows PowerShell):\n\n   ```powershell\n   Get-CimInstance Win32_Process -Filter \"Name='python.exe'\" |\n     Where-Object CommandLine -match 'run-jedi-language-server' |\n     Select-Object ProcessId, CommandLine\n   ```\n\n5. Try completion in the open `.py` file.\n\n## Diagnostic data\n\n- Python extension version: 2026.10.0 (ms-python.python-2026.10.0-win32-x64)\n- Python Environments extension: 1.42.0\n- VS Code version: 1.127.0 (4fe60c8b1cdac1c4c174f2fb180d0d758272d713), x64\n- OS: Windows 11 Enterprise 10.0.22631\n- Language server: Jedi (Pylance not installed / `python.languageServer: \"Jedi\"`)\n- Python version: 3.14.5\n\n## Notes\n\nWe have only seen this with Jedi. Pylance does not run inside the selected interpreter, so an interpreter\nchange does not replace its process.\n","author":{"url":"https://github.com/AndreasReichel","@type":"Person","name":"AndreasReichel"},"datePublished":"2026-11-16T08:42:40Z","url":"https://github.com/microsoft/vscode-python/issues/26296"}

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:68b4d65e-7b4d-40cb-3635-995ff3218889
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id96E8:332DCA:216FD1:2EBF80:6AFD70AF
html-safe-nonced06f134c6d7da2335e42b989112522cdd4cd5e212a7d58423b111b4ed253840d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkU4OjMzMkRDQToyMTZGRDE6MkVCRjgwOjZBRkQ3MEFGIiwidmlzaXRvcl9pZCI6Ijg2OTgxOTI1ODU5NzUyMzA2MzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf9c1174e71b182441ebee8036ae9c4476dce15e7be091d2fb3811fcc1ba48f7c
hovercard-subject-tagissue:6417504011
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/vscode-python/26296/issue_layout
twitter:imagehttps://opengraph.githubassets.com/31ba3d5fc9528e3b90539309b4474f9924ba36563cfb27306833333e42c09545/microsoft/vscode-python/issues/26296
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/31ba3d5fc9528e3b90539309b4474f9924ba36563cfb27306833333e42c09545/microsoft/vscode-python/issues/26296
og:image:altType: Bug Behaviour With Jedi as language server (python.languageServer: "Jedi", or "Default" without Pylance), changing the active interpreter and restarting the language server in quick successio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndreasReichel
hostnamegithub.com
expected-hostnamegithub.com
Nonee54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032
turbo-cache-controlno-preview
go-importgithub.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id106462765
octolytics-dimension-repository_nwomicrosoft/vscode-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id49946255
octolytics-dimension-repository_parent_nwoDonJayamanne/pythonVSCode
octolytics-dimension-repository_network_root_id49946255
octolytics-dimension-repository_network_root_nwoDonJayamanne/pythonVSCode
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
release5be0bf2b8cf26f8897d31e6bc3c232d328b12a54
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/vscode-python/issues/26296#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fvscode-python%2Fissues%2F26296
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%2Fvscode-python%2Fissues%2F26296
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%2Fvscode-python
Reloadhttps://github.com/microsoft/vscode-python/issues/26296
Reloadhttps://github.com/microsoft/vscode-python/issues/26296
Reloadhttps://github.com/microsoft/vscode-python/issues/26296
microsofthttps://github.com/microsoft
vscode-pythonhttps://github.com/microsoft/vscode-python
Codehttps://github.com/microsoft/vscode-python
Issues346 (346)https://github.com/microsoft/vscode-python/issues
Pull requests57 (57)https://github.com/microsoft/vscode-python/pulls
Discussionshttps://github.com/microsoft/vscode-python/discussions
Actionshttps://github.com/microsoft/vscode-python/actions
Wikihttps://github.com/microsoft/vscode-python/wiki
Security and quality2 (2)https://github.com/microsoft/vscode-python/security
Insightshttps://github.com/microsoft/vscode-python/insights
https://github.com/microsoft/vscode-python
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/26296
New issuehttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/26296
#26300https://github.com/microsoft/vscode-python/pull/26300
Jedi: overlapping language server restarts leak Jedi processes and completion hangshttps://github.com/microsoft/vscode-python/issues/26296#top
#26300https://github.com/microsoft/vscode-python/pull/26300
https://github.com/AndreasReichel
AndreasReichelhttps://github.com/AndreasReichel
on Nov 16, 2026https://github.com/microsoft/vscode-python/issues/26296#issue-6417504011
github-actionshttps://github.com/apps/github-actions
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on Nov 16, 2026https://github.com/microsoft/vscode-python/issues/26296#event-36255167744
vs-code-engineeringhttps://github.com/apps/vs-code-engineering
Karthik Nadig (karthiknadig)https://github.com/karthiknadig
on Nov 16, 2026https://github.com/microsoft/vscode-python/issues/26296#event-36255971205
vs-code-engineeringhttps://github.com/apps/vs-code-engineering
triage-neededNeeds assignment to the proper sub-teamhttps://github.com/microsoft/vscode-python/issues?q=state%3Aopen%20label%3A%22triage-needed%22
on Nov 16, 2026https://github.com/microsoft/vscode-python/issues/26296#event-36255972374
Karthik Nadig (karthiknadig)https://github.com/karthiknadig
on Nov 16, 2026https://github.com/microsoft/vscode-python/issues/26296#event-36311024338
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/vscode-python/issues/26296
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/vscode-python/issues/26296
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.